    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;               window.location.href='index.php?name='+name+'&id='+id+'&parent_category='+parent_category+'&category='+category;         }	function loadBillCategoryChange2(self,id,name){               var category=self;               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;		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;		var category=document.getElementById('category').value;		var parent_category='';		window.location.href='index.php?name=mptrack';			}        function highlightleft(objcell,flag)        {                if(flag){        if(objcell.style.backgroundColor==""){            objcell.style.backgroundColor="#A9D0F5";        }                }else{        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;                        }        function redbill(url,value)        {           if(!(checkstring(url))){           var billurl=url+'&sort='+value;           window.document.location.href=billurl;                  }                 else{                   var billurl1=url+'?sort='+value;                  window.document.location.href=billurl1;                     }          }            function checkstring(str){                var iChars = "?";                for (var i = 0; i < str.length; i++) {  	            if (iChars.indexOf(str.charAt(i)) != -1) {  	                         return false;                         break;  	              }                                      }                 return true;            }		        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;        }	function sendrequest1(http_request)	{		if(http_request.readyState ==4)		   {			   if(http_request.status ==200)			   {				resText=http_request.responseText;							   }			    else {								}		   }	}
