var teststring3
var publicstring
var teststring

//////////////////////////////////////////////////////////////////
function contactusnow()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
		document.getElementById("contactusstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	var url="contactusnow.asp"
	url=url+"?sid="+Math.random()
	url=url+"&firstname="+document.getElementById("firstname").value
	url=url+"&lastname="+document.getElementById("lastname").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&phone="+document.getElementById("phone").value
	url=url+"&comments="+document.getElementById("comments").value

	xmlHttp.onreadystatechange=stateChangedcontactusnow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedcontactusnow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("contactusstatus").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
function andersonnow()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
		document.getElementById("contactusstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	var url="andersonnow.asp"
	url=url+"?sid="+Math.random()
	url=url+"&firstname="+document.getElementById("firstname").value
	url=url+"&lastname="+document.getElementById("lastname").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&phone="+document.getElementById("phone").value
	url=url+"&comments="+document.getElementById("comments").value

	xmlHttp.onreadystatechange=stateChangedandersonnow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedandersonnow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("contactusstatus").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
function educationnow2()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
		document.getElementById("contactusstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	var url="educationnow2.asp"
	url=url+"?sid="+Math.random()
	url=url+"&firstname="+document.getElementById("firstname").value
	url=url+"&lastname="+document.getElementById("lastname").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&phone="+document.getElementById("phone").value
	url=url+"&comments="+document.getElementById("comments").value

	xmlHttp.onreadystatechange=stateChangedcontactusnow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedcontactusnow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("contactusstatus").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////
function propmanagecontact()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
		document.getElementById("contactusstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	var url="propmanagecontact.asp"
	url=url+"?sid="+Math.random()
	url=url+"&firstname="+document.getElementById("firstname").value
	url=url+"&lastname="+document.getElementById("lastname").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&phone="+document.getElementById("phone").value
	url=url+"&comments="+document.getElementById("comments").value

	xmlHttp.onreadystatechange=stateChangedcontactusnow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedcontactusnow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("contactusstatus").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function contactus()
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="contactus.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedcontactus
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedcontactus() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function sellyourhousenow()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
		document.getElementById("sellyourhousestatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	var url="sellyourhousenow.asp"
	url=url+"?sid="+Math.random()
	url=url+"&Name="+document.getElementById("Name").value
	url=url+"&Address="+document.getElementById("Address").value
	url=url+"&City="+document.getElementById("City").value
	url=url+"&County="+document.getElementById("County").value
	url=url+"&State="+document.getElementById("State").value
	url=url+"&Zip="+document.getElementById("Zip").value
	url=url+"&Phone="+document.getElementById("Phone").value
	url=url+"&Email="+document.getElementById("Email").value
	url=url+"&Reason="+document.getElementById("reason").value
	xmlHttp.onreadystatechange=stateChangedsellyourhousenow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedsellyourhousenow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("sellyourhousestatus").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function sellyourhouse()
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="sellyourhouse.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedsellyourhouse
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedsellyourhouse() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function investorproperties()
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="investmentproperties.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedinvestmentproperties
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedinvestmentproperties() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function landproperties()
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="landproperties.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedinvestmentproperties
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedinvestmentproperties() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function becomeabuyer()
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="becomeabuyer.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedbecomeabuyer
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedbecomeabuyer() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function randomhouse()
{
	document.getElementById("randomhouse").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="randomhouse.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedrandomhouse
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedrandomhouse() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("randomhouse").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function viewhouse(str)
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewhouse.asp"
	url=url+"?sid="+Math.random()
	url=url+"&houseid="+str
	xmlHttp.onreadystatechange=stateChangedviewhouse
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewhouse() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
function becomeabuyernow()
{
	document.getElementById("becomeabuyerstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	
	if (document.getElementById("firstname").value.length==0)
	{ 
	document.getElementById("becomeabuyerstatus").innerHTML="Please Enter First Name"
	return
	}
	if (document.getElementById("lastname").value.length==0)
	{ 
	document.getElementById("becomeabuyerstatus").innerHTML="Please Enter Last Name"
	return
	}
	
	if (document.getElementById("email").value.length==0)
	{ 
	document.getElementById("becomeabuyerstatus").innerHTML="Please Enter Email"
	return
	}
	
	if (document.getElementById("email").value.length > 150)
	{ 
	document.getElementById("becomeabuyerstatus").innerHTML="Email Too Long"
	return
	}
	
	var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
    if (!document.getElementById("email").value.match(re)) {
        document.getElementById("becomeabuyerstatus").innerHTML="Please Enter Valid Email"    
        return
    }
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var w = document.getElementById("state").selectedIndex
	var url="becomeabuyernow.asp"
	url=url+"?firstname="+document.getElementById("firstname").value
	url=url+"&lastname="+document.getElementById("lastname").value
	url=url+"&address="+document.getElementById("address").value
	url=url+"&city="+document.getElementById("city").value
	url=url+"&state="+document.getElementById("state").options[w].text
	url=url+"&zip="+document.getElementById("zip").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&phone="+document.getElementById("phone").value
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedbecomeabuyernow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedbecomeabuyernow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function becomearenttoown()
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="becomerenttoown.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedbecomearenttoown
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedbecomearenttoown() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
function becomearenttoownnow()
{
	document.getElementById("becomearenttoownstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	
	if (document.getElementById("firstname").value.length==0)
	{ 
	document.getElementById("becomearenttoownstatus").innerHTML="Please Enter First Name"
	return
	}
	if (document.getElementById("lastname").value.length==0)
	{ 
	document.getElementById("becomearenttoownstatus").innerHTML="Please Enter Last Name"
	return
	}
	
	if (document.getElementById("email").value.length==0)
	{ 
	document.getElementById("becomearenttoownstatus").innerHTML="Please Enter Email"
	return
	}
	
	if (document.getElementById("email").value.length > 150)
	{ 
	document.getElementById("becomearenttoownstatus").innerHTML="Email Too Long"
	return
	}
	
	var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
    if (!document.getElementById("email").value.match(re)) {
        document.getElementById("becomearenttoownstatus").innerHTML="Please Enter Valid Email"    
        return
    }
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var w = document.getElementById("state").selectedIndex
	var url="becomerenttoownnow.asp"
	url=url+"?firstname="+document.getElementById("firstname").value
	url=url+"&lastname="+document.getElementById("lastname").value
	url=url+"&address="+document.getElementById("address").value
	url=url+"&city="+document.getElementById("city").value
	url=url+"&state="+document.getElementById("state").options[w].text
	url=url+"&zip="+document.getElementById("zip").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&phone="+document.getElementById("phone").value
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedbecomearenttoownnow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedbecomearenttoownnow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
function investorbustournow()
{
	document.getElementById("investorbustourstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	
	if (document.getElementById("firstname").value.length==0)
	{ 
	document.getElementById("investorbustourstatus").innerHTML="Please Enter First Name"
	return
	}
	if (document.getElementById("lastname").value.length==0)
	{ 
	document.getElementById("investorbustourstatus").innerHTML="Please Enter Last Name"
	return
	}
	
	if (document.getElementById("email").value.length==0)
	{ 
	document.getElementById("investorbustourstatus").innerHTML="Please Enter Email"
	return
	}
	
	if (document.getElementById("email").value.length > 150)
	{ 
	document.getElementById("investorbustourstatus").innerHTML="Email Too Long"
	return
	}
	
	var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
    if (!document.getElementById("email").value.match(re)) {
        document.getElementById("investorbustourstatus").innerHTML="Please Enter Valid Email"    
        return
    }
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var w = document.getElementById("state").selectedIndex
	var url="investorbustournow.asp"
	url=url+"?firstname="+document.getElementById("firstname").value
	url=url+"&lastname="+document.getElementById("lastname").value
	url=url+"&address="+document.getElementById("address").value
	url=url+"&city="+document.getElementById("city").value
	url=url+"&state="+document.getElementById("state").options[w].text
	url=url+"&zip="+document.getElementById("zip").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&phone="+document.getElementById("phone").value
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedbecomeainvestorbustournow
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedbecomeainvestorbustournow() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("investorbustourstatus").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
function showproperties(str)
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="showproperties.asp"
	url=url+"?area="+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedshowproperties
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedshowproperties() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
function showlandproperties(str)
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="showlandproperties.asp"
	url=url+"?area="+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedshowproperties
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedshowlandproperties() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
function showanderson(str)
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="anderson.asp"
	url=url+"?area="+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedshowanderson
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedshowanderson() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
function showblog(str,str2)
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="showblog.asp"
	url=url+"?startat="+str
	url=url+"&stopat="+str2
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedshowblog
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedshowblog() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function viewhomepage()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewhomepage.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewhomepage
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewhomepage() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function linkspage()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewlinks.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewlinks
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewlinks() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function areafacts()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewareafacts.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewareafacts
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewareafacts() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////
/////////////////////////////////////////
function anderson()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="anderson.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedanderson
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedanderson() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function biznas()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewbiznas.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewbiznas
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewbiznas() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function propertymanagement()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewpropertymanage.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewpropertymanagement
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewpropertymanagement() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function educationpage()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="vieweducation.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedvieweducation
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedvieweducation() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function investorforum()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewinvestorforum.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedinvestorforum
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedinvestorforum() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////////
function showforumtopic(str,str2,str3,str4)
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewshowforumtopic.asp"
	url=url+"?sid="+Math.random()
	url=url+"&catid="+str
	url=url+"&threadid="+str4
	url=url+"&startat="+str2
	url=url+"&stopat="+str3
	xmlHttp.onreadystatechange=stateChangedshowforumtopic
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedshowforumtopic() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////
/////////////////////////////////////////////

function postmessage(str,str2)
{
	document.getElementById("emailstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	if (document.getElementById("email").value == "")
	{
	document.getElementById("emailstatus").innerHTML="Please Type In Email or Name."
	return	
	}
	if (document.getElementById("message").value == "")
	{
	document.getElementById("emailstatus").innerHTML="Please Type In Message."
	return
	}
	publicstring = str
	teststring = str2
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewpostmessage.asp"
	url=url+"?sid="+Math.random()
	url=url+"&forumid="+str
	url=url+"&email="+document.getElementById("email").value
	url=url+"&message="+document.getElementById("message").value
	xmlHttp.onreadystatechange=stateChangedpostmessage
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedpostmessage() 
{ 
	if (xmlHttp.responseText == "Found Email")
		{
		showforumtopic(teststring,"","",publicstring)
		}
		else
		{
		document.getElementById("emailstatus").innerHTML=xmlHttp.responseText
		}
}
///////////////////////

function postreply(str,str2,str3)
{
	document.getElementById("replyemailstatus"+str).innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	if (document.getElementById("replyemail").value == "")
	{
	document.getElementById("replyemailstatus"+str).innerHTML="Please Type In Email or Name."
	return	
	}
	if (document.getElementById("replymessage").value == "")
	{
	document.getElementById("replyemailstatus"+str).innerHTML="Please Type In Message."
	return
	}
	publicstring = str2
	teststring = str
	teststring3 = str3
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewpostreply.asp"
	url=url+"?sid="+Math.random()
	url=url+"&threadid="+str2
	url=url+"&replyid="+str
	url=url+"&replyemail="+document.getElementById("replyemail").value
	url=url+"&replymessage="+document.getElementById("replymessage").value
	xmlHttp.onreadystatechange=stateChangedpostreply
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedpostreply() 
{ 
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{
			if (xmlHttp.responseText == "Found Email")
			{
			showforumtopic(teststring3,"","",publicstring)
			}
			else
			{
			document.getElementById("replyemailstatus"+teststring).innerHTML=xmlHttp.responseText
			}
		}
}
/////////////////////////////////////////////

function showreplybox(str,str2,str3)
{
	
	publicstring = str
	if (document.getElementById("reply"+publicstring).innerHTML != "")
	{
		document.getElementById("reply"+publicstring).innerHTML = ""
		return
	}
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewshowreplybox.asp"
	url=url+"?sid="+Math.random()
	url=url+"&replyid="+str
	url=url+"&threadid="+str2
	url=url+"&catid="+str3
	xmlHttp.onreadystatechange=stateChangedshowreplybox
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedshowreplybox() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("reply"+publicstring).innerHTML=xmlHttp.responseText
	} 
}
///////////////////////

/////////////////////////////////////////////
function checkemail(str)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewcheckemail.asp"
	url=url+"?sid="+Math.random()
	url=url+"&email="+str
	xmlHttp.onreadystatechange=stateChangedcheckemail
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedcheckemail() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		publicstring = xmlHttp.responseText
	} 
}
///////////////////////

/////////////////////////////////////////
function testimonials()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewtestimonial.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewtestimonial
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewtestimonial() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function investorbustour()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewinvestorbustour.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewinvestorbustour
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewinvestorbustour() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function highestbiddersale()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewhighestbidder.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewhighestbidder
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewhighestbidder() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////

/////////////////////////////////////////
function renttoown()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewrenttoown.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedviewrenttoown
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedviewrenttoown() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
/////////////////////////////////////////
/////////////////////////////////////////

/////////////////////////////////////////
function recentlysold()
{
document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="recentlysold.asp"
	url=url+"?sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedshowproperties
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedrecentlysold() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}

//////////////////////////////////////////////////////////////////
function unsubscribe()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	document.getElementById("unsubscribestatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	var url=" unsubscribenow.asp"
	url=url+"?sid="+Math.random()
	url=url+"&email="+document.getElementById("email").value
	url=url+"&program="+document.getElementById("program").value
	xmlHttp.onreadystatechange=stateChangedunsubscribe
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedunsubscribe() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("unsubscribestatus").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
function sendtestimonial()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	document.getElementById("testimonialresult").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	var url="sendtestimonial.asp"
	url=url+"?sid="+Math.random()
	url=url+"&name="+document.getElementById("name").value
	url=url+"&message="+document.getElementById("message").value
	xmlHttp.onreadystatechange=stateChangedsendtestimonial
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedsendtestimonial() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("testimonialresult").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////

//////////////////////////////////////////////////////
function insertreturnkey(str)
{
	document.getElementById(str).value = document.getElementById(str).value + "<br>"
} 
//////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
function searchme(str)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	} 
	var url="search.asp"
	url=url+"?searchfor="+document.getElementById("searchforum").value
	url=url+"&forumid="+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedsearchme
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedsearchme() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
} 
/////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////
function showthread(str)
{
	document.getElementById("mainbody").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewshowthread.asp"
	url=url+"?sid="+Math.random()
	url=url+"&catid="+str
	xmlHttp.onreadystatechange=stateChangedshowthread
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedshowthread() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("mainbody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////

//////////////////////
function addnewthread(str)
{
	
	if (document.getElementById("threadname").value == "")
	{
	document.getElementById("forumstatus").innerHTML="Please Enter Thread Name"	
	return	
	}
	publicstring = str
	document.getElementById("forumstatus").innerHTML="<img src='http://www.cheaprichmondhouses.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	}
	var url="viewaddnewthreadnow.asp"
	url=url+"?sid="+Math.random()
	url=url+"&threadname="+document.getElementById("threadname").value
	url=url+"&email="+document.getElementById("email").value
	url=url+"&catid="+str
	xmlHttp.onreadystatechange=stateChangedaddnewthread
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedaddnewthread() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		if (xmlHttp.responseText == "Found Email")
		{
		showthread(publicstring)
		}
		else
		{
		document.getElementById("forumstatus").innerHTML=xmlHttp.responseText
		}
	} 
}
/////////////////////////////////////////////

/////////////////////////////////////////
function GetXmlHttpObject()
{ 
	var objXMLHttp=null
		if (window.XMLHttpRequest)
		{
		objXMLHttp=new XMLHttpRequest()
		}
		else if (window.ActiveXObject)
		{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
		}
	return objXMLHttp
} 


//HOVERING IMAGE CODE STUFF//
var trailimage=["test.jpg", 300, 225]
var offsetfrommouse=[15,-150] //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=0 //duration in seconds image should remain visible. 0 for always.

if (document.getElementById || document.all)
{
document.write('<div id="trailimageid"></div>')
}

function gettrailobj()
{
    if (document.getElementById)
	{
    return document.getElementById("trailimageid").style
	}
    else if (document.all)
	{
    return document.all.trailimagid.style
	}
}
function truebody()
{
    return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function hidetrail()
{
   gettrailobj().innerHTML = " ";
	gettrailobj().display="none"
	document.onmousemove=""
	gettrailobj().left="-500px"
}

function followmouse(e)
{
    var xcoord=offsetfrommouse[0]
    var ycoord=offsetfrommouse[1]
        if (typeof e != "undefined")
        {
        xcoord+=e.pageX
        ycoord+=e.pageY
        }
        else if (typeof window.event !="undefined")
        {
        xcoord+=truebody().scrollLeft+event.clientX
        ycoord+=truebody().scrollTop+event.clientY
        }
        
		var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
        var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
        
		if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
		{
        gettrailobj().display="none"
		}
        else 
		{
        gettrailobj().display=""
        gettrailobj().left=xcoord+"px"
        gettrailobj().top=ycoord+"px"
		}
		
}

function Image_onmouseover(str)
{
    trailimage[0] = str
    document.getElementById("trailimageid").innerHTML = "<img src='"+trailimage[0]+"' border='0' width='"+trailimage[1]+"px' height='"+trailimage[2]+"px'>"
     gettrailobj().visibility="visible"
     document.onmousemove=followmouse
	 gettrailobj().display="inline";
	gettrailobj().position="absolute";
}

if (displayduration>0)
{
setTimeout("hidetrail()", displayduration*1000)
}

document.onmousemove=followmouse


