function dodemo(url) {
	url = "demopop.html"
	w = screen.availWidth+1;
	h = screen.availHeight+1;
	args = "titlebar=0,toolbar=0,location=0,menubar=0,scrollbars=1,resizable=1,channelmode=0,directories=0,status=0,";
	args += "width=" + w + ",height=" + h + ",";
	args += "left=0,top=0";
	newwin_entry = window.open(url, "", args);
	newwin_entry.blur();
}

function only_once(){
    document.supportform.submit1.disabled = true;
    document.supportform.submit();
}
function only_once1(){
    document.loginform.submit1.disabled = true;
    document.loginform.submit();
}
function only_once2(){
    document.signupform.submit1.disabled = true;
    document.signupform.submit();
}
function only_once3(){
    document.addsiteform.submit1.disabled = true;
    document.addsiteform.submit();
}
function only_once4(){
    document.getcodeform.submit1.disabled = true;
    document.getcodeform.submit();
}
function only_once5(){
    document.profileform.submit1.disabled = true;
    document.profileform.submit();
}
function getQueryStrings() {
    var argList = new Object();

    if(window.location != null && window.location.search.length > 1) {
	var urlParms = window.location.search.substring(1);
	var argPairs = urlParms.split('&');

	for(var i = 0; i < argPairs.length; i++) {
	    var pos = argPairs[i].indexOf('=')

	    if(pos == -1)
		continue;
	    else {
		var argName = argPairs[i].substring(0, pos);
		var argVal = argPairs[i].substring(pos + 1);

		if(argVal.indexOf('+') != -1)
		    argVal = argVal.replace(/\+/g, ' ');

		argList[argName] = unescape(argVal);
	    }
	}
    }

    return argList;
}

function lenformat(fieldlen) {	
	var struname = document.signupform.username.value;
	struname.toString()
	
	if (struname.length > fieldlen) {
		document.signupform.username.value = "";			
	}			
}

