// JavaScript Document// moo// send http requestsfunction sendHttpRequest(url,callbackFunc,respXml){   var xmlobj=null;    try{        xmlobj=new XMLHttpRequest();    }    catch(e){        try{            xmlobj=new ActiveXObject("Microsoft.XMLHTTP");        }        catch(e){            alert('AJAX is not supported by your browser!');            return false;        }   }   xmlobj.onreadystatechange=function(){      	   if(xmlobj.readyState==4){            if(xmlobj.status==200){                respXml?eval(callbackFunc+'(xmlobj.responseXML)'):eval(callbackFunc+'(xmlobj.responseText)');            }        }    }    // open socket connection    xmlobj.open('GET',url,true);    // send http header    xmlobj.setRequestHeader('Content-Type','text/html; charset=UTF-8');    // send http request    xmlobj.send(null);}// function showUser(item){	//item.erase('href');        	item.set('href', '#');	//alert(item.get('id'))	item.addEvent('click', function(){		//put whatever you want to happen on click in here		showPreload();		sendHttpRequest("maincontent.php?id="+(item.get('id').replace('ms_','')),"displayResult",false)	});}// loginfunction login(item){	//alert(item.get('id'))	item.addEvent('click', function(){		var id=item.get('id').replace('loginbtn','')		//alert("!"+$('loginform'+id));		$('loginform'+id).submit();	});	return;}// function showPreload(){	var chisiamoBoxVar = $('centercolumn');	chisiamoBoxVar.erase('html');	var newElementVar = new Element('div', {    	        'html': '<img src="./layout/img/loading.gif">'	});	newElementVar.inject(chisiamoBoxVar, 'bottom');}// function displayResult(result){    var chisiamoBoxVar = $('centercolumn');	var newElementVar = new Element('div', {    	        'html': result	}); 	//newElementVar.set('text', '');	chisiamoBoxVar.erase('html');	newElementVar.inject(chisiamoBoxVar, 'top');    accordian();            //links 	try{		var myArray = $('centercolumn').getElements('a[id^=ms_]');		myArray.each(showUser); 	}catch(e){		//alert("!!!!"+e)	}	}	
