function ajax_loadcontents(obj) 
{
    document.getElementById("ajaxglobalwrapper").style.visibility="visible";
	var url = "loadcontents.php";
    url = url+"?q1="+obj;
    passUrl(url);
}

/*
 * Function    : passUrl
 * Description : This function is used to pass the parameters to the corresponding PHP file by the GET method.
 * Inputs      : A URL string which would have a concatenated list of parameters.
 * Outputs     : None 
 * Returns     : None
 */ 

function passUrl(url)
{
    url = url+"&sid="+Math.random();
    xmlHttp.open("GET", url, true);
    xmlHttp.onreadystatechange = stateChanged;
    xmlHttp.send(null);	
}