function load_ajax(var1,divid,type,var2,var3,var4,var5){ 		var url='load_constituency.php';		var1=document.getElementById('state').value;		var post_data='?state='+var1+'&divid='+divid+'&type='+type+'&var2='+var2+'&var1='+var3+'&var4='+var4+'&var5='+var5+'';		document.getElementById(divid).innerHTML = "<FONT SIZE='2' COLOR='red'><img src='images/ajax-loader.gif' border='0'></font>";		if(window.XMLHttpRequest)		{			http_request=new XMLHttpRequest();		if(http_request.overrideMimeType)		{			http_request.overrideMimeType('text/html');			}					}else if(window.ActiveXObject)		{			try{				http_request = new ActiveXObject("Msxml2.XMLHTTP");				}catch(e)				{				try{					http_request = new ActiveXObject("Microsoft.XMLHTTP");					}catch(e){}				}				}		http_request.onreadystatechange=function(){sendrequest(http_request,divid);};	http_request.open('GET',url+post_data,true);	http_request.send(null);			}	function sendrequest(http_request,divid)	{		if(http_request.readyState ==4)		   { 			   if(http_request.status ==200)			   {				resText=http_request.responseText;				document.getElementById(divid).innerHTML=resText;			   }			    else {			document.getElementById(divid).innerHTML = "<FONT SIZE='4' COLOR='red'>Query not submitted!</FONT>";					}		   }	}	function loadBillCategoryChange1(self,id,name)	{				var category=document.getElementById('category').value;		var parent_category=self;//=document.getElementById('parent_category').value;	window.location.href='index.php?name='+name+'&id='+id+'&parent_category='+parent_category+'&category='+category;			}	function loadBillCategoryChange2(self,id,name)	{				var category=self;//document.getElementById('category').value;		var parent_category=document.getElementById('parent_category').value;	window.location.href='index.php?name='+name+'&id&='+id+'&parent_category='+parent_category+'&category='+category;			}	function loadBillCategoryChange3(self,id,name)	{				var bill_id=self;//document.getElementById('category').value;		var category=document.getElementById('category').value;		var parent_category='';		window.location.href='index.php?name='+name+'&id='+id+'&parent_category='+parent_category+'&category='+category+'&action=bill_details&bill_id='+bill_id;			}	function loadBillCategoryChange4(self,id,name)	{				var bill_id=self;//document.getElementById('category').value;		var category=document.getElementById('category').value;		var parent_category='';		window.location.href='index.php?name=mptrack';			}	function highlight(objcell,flag)		{			if(flag){				objcell.style.backgroundColor="#E3E3E3";			}else{				objcell.style.backgroundColor="";			}		}        function highlightleft(objcell,flag)        {                if(flag){        if(objcell.style.backgroundColor==""){            objcell.style.backgroundColor="#A9D0F5";//"#9bbcdd";        }                }else{        //alert(objcell.style.backgroundColor);        if(objcell.style.backgroundColor=="#A9D0F5"||objcell.style.backgroundColor=="rgb(169, 208, 245)"){            objcell.style.backgroundColor="";        }                }        }        function highlight1(objcell,flag)        {                if(flag){                        objcell.style.backgroundColor="#FFFFFF";                }else{                        objcell.style.backgroundColor="";                }        }        function redirectbill(url)        {                window.document.location.href=url;                //window.open(url, '_blank');        }		        function redirectnews(url)                {                window.document.location.href=url;                }        function viewAllBillTypes()                {                        if(document.getElementById('billtype').style.display=='none')                                {                        document.getElementById('plusm').innerHTML='[-] View All Bill Types';                        document.getElementById('billtype').style.display='';                                }else                                {                                        document.getElementById('parent_category').value='';                        document.getElementById('plusm').innerHTML='[+] View All Bill Types';                        document.getElementById('billtype').style.display='none';                                }                }        function viewAllBillTypes2()                {                        if(document.getElementById('billtype2').style.display=='none')                                {                        document.getElementById('plusm2').innerHTML='[-] View All Categories';                        document.getElementById('billtype2').style.display='';                                }else                                {                        document.getElementById('category').value='';                        document.getElementById('plusm2').innerHTML='[+] View All Categories';                        document.getElementById('billtype2').style.display='none';                                }                }        function goToPage(pageno,name,id)        {                window.location.href="index.php?name="+name+"&pageno="+pageno+"&id="+id;        }