I'm trying to make this ajax subscriptions script to work and it works allmost fine except 1 thing... The "blogid" allways gets to be "2" nomatter what I put in the hidden blogid field?

Can somebody please help me.

The form:
Code HTML4Strict:
<div id="insert_response">
    <form action="javascript:insert()" method="post">
    <input name="userid" type="hidden" id="userid" value="48"/>
    <input name="blogid" type="hidden" id="blogid" value="99"/>
    <input type="submit" name="Submit" value="Subscribe to this blog"/>

The js where something goes wrong:
Code JavaScript:
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
request_type = new XMLHttpRequest();
return request_type;
var http = createObject();
var nocache = 0;
function insert() {
document.getElementById('insert_response').innerHTML = "Subscribing..."
var userid = encodeURI(document.getElementById('userid').value);
var blogid = encodeURI(document.getElementById('blogid').value);
nocache = Math.random();
http.open('get', 'js/blog/subscribe_insert.php?userid='+userid+'&blogid='+blogid+'&nocache = '+nocache);
http.onreadystatechange = insertReply;
function insertReply() {
if(http.readyState == 4){ 
var response = http.responseText;
document.getElementById('insert_response').innerHTML = 'Subscription success...';

Please help... Thanks in advance :-)