	function GetXmlHttpObject(handler)
		{ 
		var objXmlHttp=null
		
		if (navigator.userAgent.indexOf("Opera")>=0)
		{
		alert("This example doesn't work in Opera") 
		return 
		}
		if (navigator.userAgent.indexOf("MSIE")>=0)
		{ 
		var strName="Msxml2.XMLHTTP"
		if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
		{
		strName="Microsoft.XMLHTTP"
		} 
		try
		{ 
		objXmlHttp=new ActiveXObject(strName)
		objXmlHttp.onreadystatechange=handler 
		return objXmlHttp
		} 	
		catch(e)
		{ 
		alert("Error. Scripting for ActiveX might be disabled") 
		return 
		} 
		} 
		if (navigator.userAgent.indexOf("Mozilla")>=0)
		{
		objXmlHttp=new XMLHttpRequest()
		objXmlHttp.onload=handler
		objXmlHttp.onerror=handler 
		return objXmlHttp
		}
		}

	//var url = "ajax.php?param="; // The server-side scripts	
		
		
		
		function profile_list(id,status,action,userstatus,adminuserid){
			
			var id = id;
			var status=status;
			//alert(adminuserid);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse);
			xmlHttp.open("GET","profilelist.php?id="+id+"&status="+status+"&action="+action+"&userstatus="+userstatus+"&adminuserid="+adminuserid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function grantee_list(clientid,status,action){
			
			var ans;
			ans=confirm("Are you sure you want to change status?");
			
			
			if(ans==true){
				var clientid = clientid;
				var status=status;
				//alert(action);
				var myRandom=parseInt(Math.random()*99999999);  // cache buster
				xmlHttp=GetXmlHttpObject(handleHttpResponse1);
				xmlHttp.open("GET","granteelist.php?clientid="+clientid+"&status="+status+"&action="+action);
				xmlHttp.send(null);
			}
			
			
		}
		
		function handleHttpResponse1() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function organization_list(organizationid,status,action){
			
			var organizationid = organizationid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse2);
			xmlHttp.open("GET","organizationlist.php?organizationid="+organizationid+"&status="+status+"&action="+action);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse2() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function grantee_list2(clientid,status,action,myloginid){
			
			var clientid = clientid;
			var status=status;
			//alert(myloginid);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse1);
			xmlHttp.open("GET","granteelist.php?clientid="+clientid+"&status="+status+"&action="+action+"&myloginid="+myloginid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse1() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function deletesent(messageid,admindelete,frmid,frmusertypeid){
			
			var messageid = messageid;
			var status="deletemessage";
			
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse2);
			xmlHttp.open("GET","sendlist.php?messageid="+messageid+"&admindelete="+admindelete+"&status="+status+"&frmid="+frmid+"&frmusertypeid="+frmusertypeid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse2() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function deleteinbox(messageid,admindelete,toid,tousertypeid){
			
			var messageid = messageid;
			var status="deletemessage";
			
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse3);
			xmlHttp.open("GET","pmlist.php?messageid="+messageid+"&admindelete="+admindelete+"&status="+status+"&toid="+toid+"&tousertypeid="+tousertypeid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse3() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function profile_list_paging(start,sortval,adminuserid){
			
			var start = start;
			//alert("12343");
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse452);
			xmlHttp.open("GET","profilelist.php?start="+start+"&sortval="+sortval+"&adminuserid="+adminuserid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse452() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function profile_list_sorting(sortval,userstatus,adminuserid){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj5);
			xmlHttp.open("GET","profilelist.php?sortval="+sortval+"&userstatus="+userstatus+"&adminuserid="+adminuserid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj5() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function profile_list_status(userstatus,adminuserid){
			
			var userstatus = userstatus;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj6);
			xmlHttp.open("GET","profilelist.php?userstatus="+userstatus+"&adminuserid="+adminuserid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj6() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function grantee_list_paging(start,csortval,path){
			
			var start = start;
		   //alert("granteelist.php?start="+start+"&csortval="+csortval+"&"+path);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj7);
			xmlHttp.open("GET","granteelist.php?start="+start+"&csortval="+csortval+"&"+path);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj7() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function grantee_list_sorting(csortval,clientstatus){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj8);
			xmlHttp.open("GET","granteelist.php?csortval="+csortval+"&clientstatus="+clientstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj8() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function grantee_list_status(clientstatus,path){
			
			var clientstatus = clientstatus;
		   //alert("granteelist.php?clientstatus="+clientstatus+""+path);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse91212);
			xmlHttp.open("GET","granteelist.php?clientstatus="+clientstatus+"&"+path);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse91212() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function directory_list_paging(start,csortval){
			
			var start = start;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse10113);
			xmlHttp.open("GET","directorylist.php?start="+start+"&csortval="+csortval);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse10113() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function directory_list_sorting(csortval,clientstatus){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj11);
			xmlHttp.open("GET","directorylist.php?csortval="+csortval+"&clientstatus="+clientstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj11() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function directory_list_status(clientstatus){
			
			var clientstatus = clientstatus;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj12);
			xmlHttp.open("GET","directorylist.php?clientstatus="+clientstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj12() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
			function directory_list(clientid,status,action){
			
			var clientid = clientid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj13);
			xmlHttp.open("GET","directorylist.php?clientid="+clientid+"&status="+status+"&action="+action);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj13() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function org_list_paging(start,csortval,granttype,organizationname,organizationstate,grantstatusid,granttotal){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj14);
			xmlHttp.open("GET","organizationlist.php?start="+start+"&csortval="+csortval+"&granttype="+granttype+"&organizationname="+organizationname+"&organizationstate="+organizationstate+"&grantstatusid="+grantstatusid+"&granttotal="+granttotal);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj14() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function org_list_search_paging(start,organizationname,organizationcity,organizationstate){
			
			//alert(organizationname);
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj99);
	xmlHttp.open("GET","resultorganizationslist.php?start="+start+"&organizationname="+organizationname+"&organizationcity="+organizationcity+"&organizationstate="+organizationstate);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj99() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function org_list_sorting(csortval,organizationstatus,granttype,organizationname,organizationstate,grantstatusid,granttotal){
			
			var start = start;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj15);
			xmlHttp.open("GET","organizationlist.php?csortval="+csortval+"&organizationstatus="+organizationstatus+"&granttype="+granttype+"&organizationname="+organizationname+"&organizationstate="+organizationstate+"&grantstatusid="+grantstatusid+"&granttotal="+granttotal);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj15() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function org_list_status(organizationstatus){
			
			var organizationstatus = organizationstatus;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj16);
			xmlHttp.open("GET","organizationlist.php?organizationstatus="+organizationstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj16() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function pm_list_paging(start,csortval,toid,tousertypeid){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseajj16);
			xmlHttp.open("GET","pmlist.php?start="+start+"&csortval="+csortval+"&toid="+toid+"&tousertypeid="+tousertypeid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseajj16() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function send_list_paging(start,csortval,frmid,frmusertypeid){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj17);
			xmlHttp.open("GET","sendlist.php?start="+start+"&csortval="+csortval+"&frmid="+frmid+"&frmusertypeid="+frmusertypeid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj17() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
function blog_list_paging(start,userId,userTypeId){
			
			var start = start;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse1812121);
			xmlHttp.open("GET","allbloglist.php?start="+start+"&userid="+userId+"&usertypeid="+userTypeId);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse1812121() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
	function my_blog_list_paging(start,userId,userTypeId){
			

			var start = start;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse183);
			xmlHttp.open("GET","mybloglist.php?start="+start+"&userid="+userId+"&usertypeid="+userTypeId);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse183() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
function chk(nm,val,orgid,userid){
			
			//alert(orgid+"&&&&&"+userid);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj24);
				if(nm.checked==true){
					xmlHttp.open("GET","ajax2.php?assuid=yes&assignedchk=yes&orgid="+orgid+"&userid="+userid);
			xmlHttp.send(null);	
				}
				if(nm.checked==false){
					xmlHttp.open("GET","ajax2.php?assuid=yes&assignedchk=no&orgid="+orgid+"&userid="+userid);
			xmlHttp.send(null);		
				}
		}
		function handleHttpResponseaj24() {
			if (xmlHttp.readyState == 4) {
				var rs=xmlHttp.responseText;
				var rs1=rs.split("&");
				//alert(rs);
			
					
				var pclss=document.getElementById("prorawd")
				if(rs1[1]=="yes"){
				alert(rs1[0]);
				window.location.reload(true);	
				}
				if(rs1[0]=="ass"){
					alert("Assigned Successfully.");
					pclss.className="prorawsel2";
					window.location.reload(true);	

				}
				if(rs=="no"){
					alert("Unassigned Successfully.");
					pclss.className="prorawsel1";
					window.location.reload(true);	

				}
				
				
				
			//  document.getElementById("showmsg").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function event_list_status(eventstatus){
			
			var eventstatus = eventstatus;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj25);
			xmlHttp.open("GET","eventlist.php?eventstatus="+eventstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj25() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function event_list(eventid,status,action,eventstatus){
			
			var eventid = eventid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj26);
			xmlHttp.open("GET","eventlist.php?eventid="+eventid+"&status="+status+"&action="+action+"&eventstatus="+eventstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj26() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function event_list_paging(start,csortval,today,eventstatus){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj27);
			xmlHttp.open("GET","eventlist.php?start="+start+"&csortval="+csortval+"&today="+today+"&eventstatus="+eventstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj27() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function cal_mon(Sec,req_month,year){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj28);
			xmlHttp.open("GET","evecal.php?Sec="+Sec+"&req_month="+req_month+"&year="+year);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj28() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("divcal").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function cal_mon_eve(Sec,today,req_month,req_year){
			
				
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj29);
			xmlHttp.open("GET","eventlist.php?Sec="+Sec+"&today="+today+"&req_month="+req_month+"&req_year="+req_year);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj29() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
			
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function eventdetails(eventid){
			
			var eventid = eventid;
			

			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj30);
			xmlHttp.open("GET","eventdetails.php?eventid="+eventid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj30() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				document.getElementById("eventdetailsdiv").style.display="block";
			  document.getElementById("eventdetailsdiv").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		
		function sendpm(clientid){
			var clientid = clientid;
			action="send";
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj31);
			xmlHttp.open("GET","sendpmdir.php?action="+action+"&clientid="+clientid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj31() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				document.getElementById("sendpmdir").style.display="block";
			  document.getElementById("sendpmdir").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function submitpm(){
			var val=document.getElementById("messagedetails").value;
			var clientid=document.getElementById("tomemberid").value;
			if(val==""){
				alert("Please enter message");	
			}else{
			action="submit";
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj32);
			xmlHttp.open("GET","sendpmdir.php?action="+action+"&val="+val+"&clientid="+clientid);
			xmlHttp.send(null);
			}
		}
		
		function handleHttpResponseaj32() {
			if (xmlHttp.readyState == 4) {
				//alert(xmlHttp.responseText);
			
					document.getElementById("sendpmdir").style.display="block";
			  document.getElementById("sendpmdir").innerHTML=xmlHttp.responseText;
				
			  
			}
		}
		
		
		function news_list_status(newsstatus){
			
			var newsstatus = newsstatus;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj33);
			xmlHttp.open("GET","newslist.php?newsstatus="+newsstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj33() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function news_list(newsid,status,action,newsstatus){
			
			var newsid = newsid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj34);
			xmlHttp.open("GET","newslist.php?newsid="+newsid+"&status="+status+"&action="+action+"&newsstatus="+newsstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj34() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function news_list_paging(start,csortval,today,newsstatus){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj35);
			xmlHttp.open("GET","newslist.php?start="+start+"&csortval="+csortval+"&today="+today+"&newsstatus="+newsstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj35() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
			function news_list_sublist(start,csortval,today,newsstatus){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj355);
			xmlHttp.open("GET","newslettersublist.php?start="+start+"&csortval="+csortval+"&today="+today+"&newsstatus="+newsstatus);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj355() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function newsdetails(newsid){
			
			var newsid = newsid;
			

			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj36);
			xmlHttp.open("GET","newsdetails.php?newsid="+newsid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj36() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				document.getElementById("newsdetailsdiv").style.display="block";
			  document.getElementById("newsdetailsdiv").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function eventregcamp_list_paging(start,eventid){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj37);
			xmlHttp.open("GET","reguserslist.php?start="+start+"&eventid="+eventid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj37() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function eventregcampin_list_paging(start,eventid){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj38);
			xmlHttp.open("GET","regusersinlist.php?start="+start+"&eventid="+eventid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj38() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function orgevent_list_sorting(csortval,organizationstatus,eventid){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj3888);
			xmlHttp.open("GET","sendinvitationlist.php?csortval="+csortval+"&organizationstatus="+organizationstatus+"&eid="+eventid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj3888() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function orgeventin_list_sorting(csortval,organizationstatus,eventid){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseaj39);
			xmlHttp.open("GET","invitedlist.php?csortval="+csortval+"&organizationstatus="+organizationstatus+"&eid="+eventid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponseaj39() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		
		function directory_list_paging2(start,csortval,firstname,lastname,email,organization,status,granteeroleid){
			
			var start = start;
			
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse102323);
			xmlHttp.open("GET","resultgrantee1.php?start="+start+"&csortval="+csortval+"&firstname="+firstname+"&lastname="+lastname+"&email="+email+"&organization="+organization+"&status="+status+"&granteeroleid="+granteeroleid);
			xmlHttp.send(null);
		}
		

		
		function handleHttpResponse102323() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function oranizationinfo(val){
			
			var orgid = val;
			
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse1000);
			xmlHttp.open("GET","organizeinfo.php?val="+orgid);
			xmlHttp.send(null);
		}
		

		
		function handleHttpResponse1000() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("oranizeinfo").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
	
	
	function deleteinquiry(val){
			
			var inquiryid = val;
			var action="delete";
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsedeleteinquiry);
			xmlHttp.open("GET","inquirajax.php?inquiryid="+inquiryid+"&action="+action);
			xmlHttp.send(null);
		}
		

		
		function handleHttpResponsedeleteinquiry() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("inquiryajax").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
			function newsletterfunction(){
			var email = document.getElementById('email').value;
			//var email=document.getElementById('email').value;
			//alert(email);
			var mode="yes";
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponseletter);
			xmlHttp.open("GET","newsletterajax.php?email="+email+"&mode="+mode);
			xmlHttp.send(null);
		}
		

		
		function handleHttpResponseletter() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("newsajax").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
	function organization_list_search(organizationid,status,action,organizationname,organizationcity,organizationstate){
			
			var organizationid = organizationid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse29);
			xmlHttp.open("GET","resultorganizationslist.php?organizationid="+organizationid+"&status="+status+"&action="+action+"&organizationname="+organizationname+"&organizationcity="+organizationcity+"&organizationstate="+organizationstate);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse29() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}	
	
	   function programmerlist_pageination(start,path){
			
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse29);
			xmlHttp.open("GET","programmangerlist.php?start="+start+"&"+path);
			xmlHttp.send(null);
		}
		
		
		function delete_reimb_list(reimbursementid){
			
			var actiondelete = "delete";
			var con=confirm("Are you sure to delete the reimbursment?");
		   
		   if(con==true) {
				var myRandom=parseInt(Math.random()*99999999);  // cache buster
				xmlHttp=GetXmlHttpObject(handleHttpResponseaj89);
				xmlHttp.open("GET","newpmindexreimreqlist.php?reimbursementiddel="+reimbursementid+"&actiondelete="+actiondelete);
				xmlHttp.send(null);
		   }
		 }
		
		function handleHttpResponseaj89() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("remreqindexcontainer").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function delete_reimb_list_gr(reimbursementid,grantapplicationid,organizationid){
			
			var actiondelete = "delete";
			var con=confirm("Are you sure to delete the reimbursment?");
		   
		   if(con==true) {
				var myRandom=parseInt(Math.random()*99999999);  // cache buster
				xmlHttp=GetXmlHttpObject(handleHttpResponseaj79);
				xmlHttp.open("GET","pmindexreimreqlist.php?reimbursementiddel="+reimbursementid+"&actiondelete="+actiondelete+"&grantapplicationid="+grantapplicationid+"&organizationid="+organizationid);
				xmlHttp.send(null);
		   }
		 }
		
		function handleHttpResponseaj79() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("remreqindexcontainer").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
	 function make_status_grant_admin(grantapplicationid,organizationid){
			
			var start = start;
			var action = "makearchive";
			var con=confirm("Please note that moving this grant to the Grant Archive will also archive all PAID reimbursements for this grant.");
			if(con==true) {
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse69);
			xmlHttp.open("GET","grantindexlist.php?grantapplicationid="+grantapplicationid+"&action="+action+"&organizationid="+organizationid);
			xmlHttp.send(null);
			} 
		}
		
		function handleHttpResponse69() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("grantindexcontainer").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		 function delete_grant_status(grantapplicationid,organizationid){
			
			var start = start;
			var actiondelete = "makegrantdelete";
			var con=confirm("Please note that all the related information for this grant will be deleted and this action is NOT RECOVERABLE. Please accept if you still wish to delete this grant application.");
			if(con==true) {
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse68);
			xmlHttp.open("GET","grantindexlist.php?grantapplicationiddel="+grantapplicationid+"&actiondelete="+actiondelete+"&organizationid="+organizationid);
			xmlHttp.send(null);
			} 
		}
		
		function handleHttpResponse68() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("grantindexcontainer").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		function newpmreimlist_pageination(start){
			
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse79);
			xmlHttp.open("GET","newpmindexreimreqlist.php?start="+start);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse79() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("remreqindexcontainer").innerHTML=xmlHttp.responseText;
			  
			}
		}	
		
		
		
