function login()
{ 
	if(document.getElementById("contactno").value!=""){	 
		xmlHttp=GetXmlHttpObject(loginResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("action=login")
		document.getElementById("accountDetails").innerHTML="<h2>Please wait while we retrieve your records</h2>"
	} 
} 

function loginResults() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("rightcontent").style.display="none"
		document.getElementById("leftcontent").style.width="680px"

		document.getElementById("accountDetails").innerHTML=xmlHttp.responseText 
	} 
} 



function toolbar(myVal,myUnit)
{ 
	if(myVal!=""){	 
		xmlHttp=GetXmlHttpObject(toolbarResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("strata="+ myVal + "&unit="+ myUnit + "&action=toolbar")
		document.getElementById("accountSelected").innerHTML="<h2>Please Wait</h2>"
	} 
} 

function toolbarResults() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("accountSelected").innerHTML=xmlHttp.responseText 
		document.location.href = "#aToolBar"
	} 
} 



function strata(myVal)
{ 
	if(myVal!=""){	 
		xmlHttp=GetXmlHttpObject(strataResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("strata="+ myVal + "&action=strata")
		document.getElementById("accountMoreDetails").innerHTML="<h2>Please Wait</h2>"
	} 
} 

function strataResults() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("accountMoreDetails").innerHTML=xmlHttp.responseText 
		document.location.href = "#aMD"
	} 
} 


function yourdetails()
{ 
	xmlHttp=GetXmlHttpObject(strataResults)
	xmlHttp.open("POST", "demoaccounts.asp" , true)
	xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
	xmlHttp.send("action=yourdetails")
	document.getElementById("accountMoreDetails").innerHTML="<h2>Please Wait</h2>"
} 


function yourdetailsUPDATE()
{ 
	xmlHttp=GetXmlHttpObject(strataResults)
	xmlHttp.open("POST", "demoaccounts.asp" , true)
	xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
	xmlHttp.send("action=yourdetailsUPDATE")
	document.getElementById("accountMoreDetails").innerHTML="<a name='aMD'></a><h2>Please Wait</h2>"

} 


function yourdetailsSAVE()
{ 
	myVals = "action=yourdetailsSAVE"
	xmlHttp=GetXmlHttpObject(strataResults)
	xmlHttp.open("POST", "demoaccounts.asp" , true)
	xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
	xmlHttp.send(myVals)
	document.getElementById("accountMoreDetails").innerHTML="<h2>Please Wait</h2>"
} 







function invoices(strata,unit)
{ 
	if(strata!="" && unit!=""){	 
		xmlHttp=GetXmlHttpObject(invoicesResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("strata="+ strata + "&unit="+ unit + "&action=invoices")
		document.getElementById("accountMoreDetails").innerHTML="<h2>Please Wait</h2>"
	} 
} 

function invoicesResults() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("accountMoreDetails").innerHTML=xmlHttp.responseText 
	} 
} 


function paid(strata,unit)
{ 
	if(strata!="" && unit!=""){	 
		xmlHttp=GetXmlHttpObject(invoicesResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("strata="+ strata + "&unit="+ unit + "&action=paid")
		document.getElementById("accountMoreDetails").innerHTML="<h2>Please wait, this may take a few seconds</h2>"
	} 
} 


function manager(myVal,myUnit)
{ 
	if(myVal!=""){	 
		xmlHttp=GetXmlHttpObject(managerResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("strata="+ myVal + "&unit="+ myUnit + "&action=manager")
		document.getElementById("accountMoreDetails").innerHTML="<h2>Please Wait</h2>"
	} 
} 

function managerResults() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("accountMoreDetails").innerHTML=xmlHttp.responseText 
	} 
} 


function upmeeting(myVal)
{ 
	if(myVal!=""){	 
		xmlHttp=GetXmlHttpObject(upmeetingResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("strata="+ myVal + "&action=upmeeting")
		document.getElementById("accountMoreDetails").innerHTML="<h2>Please Wait</h2>"
	} 
} 

function upmeetingResults() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("accountMoreDetails").innerHTML=xmlHttp.responseText 
	} 
} 



function pastmeeting(myVal)
{ 
	if(myVal!=""){	 
		xmlHttp=GetXmlHttpObject(pastmeetingResults)
		xmlHttp.open("POST", "demoaccounts.asp" , true)
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8' ); 
		xmlHttp.send("strata="+ myVal + "&action=pastmeeting")
		document.getElementById("accountMoreDetails").innerHTML="<h2>Please Wait</h2>"
	} 
} 

function pastmeetingResults() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("accountMoreDetails").innerHTML=xmlHttp.responseText 
	} 
} 