// JavaScript Document
//Javascript querystring
function getQueryString ()
{
 var querystring = new Array;
 
 // parse current url into an array with the keys/values
 var q = String (document.location).split ('?')[1];
 if (!q) return false;
 q = q. split ('&');

 for (var i = 0 ; i < q.length; i++)
 {
   // for each key/value, split them at the '='
   // and add them to the qerystring array
   var o = q[i].split('=');
   querystring[o[0]] = o[1];
 }

 // return the querystring
 return querystring;
}
// Function to kick IE into action for CSS Rollovers
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dmenu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+=" over";
				}
				node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

function validate_form(arg1,arg2)
{
    valid = true;

    if ( document.getElementById(arg1).checked == false )
    {
        alert (arg2);
        valid = false;
    }

	return valid;
}
