// JavaScript Document
function pageChanger_property(listnum,adtype,roomnos,proptype,state,city,location,amtfrom,amtto,agent,builder,owner,allclient,post_duration,orderby)
{
adtype=adtype.replace('@','');
roomnos=roomnos.replace('@','');
proptype=proptype.replace('@','');
state=state.replace('@','');
city=city.replace('@','');
location=location.replace('@','');
amtfrom=amtfrom.replace('@','');
amtto=amtto.replace('@','');
agent=agent.replace('@','');
builder=builder.replace('@','');
owner=owner.replace('@','');
allclient=allclient.replace('@','');
post_duration=post_duration.replace('@','');
window.document.location='propertylist.php?listnum='+listnum+'&adtype='+adtype+'&roomnos='+roomnos+'&proptype='+proptype+'&state='+state+'&city='+city+'&location='+location+'&amtfrom='+amtfrom+'&amtto='+amtto+'&agent='+agent+'&builder='+builder+'&owner='+owner+'&allclient='+allclient+'&post_duration='+post_duration+'&orderby='+orderby;
}

function sortChanger_property(orderby,adtype,roomnos,proptype,state,city,location,amtfrom,amtto,agent,builder,owner,allclient,post_duration)
{
adtype=adtype.replace('@','');
roomnos=roomnos.replace('@','');
proptype=proptype.replace('@','');
state=state.replace('@','');
city=city.replace('@','');
location=location.replace('@','');
amtfrom=amtfrom.replace('@','');
amtto=amtto.replace('@','');
agent=agent.replace('@','');
builder=builder.replace('@','');
owner=owner.replace('@','');
allclient=allclient.replace('@','');
post_duration=post_duration.replace('@','');
window.document.location='propertylist.php?orderby='+orderby+'&adtype='+adtype+'&roomnos='+roomnos+'&proptype='+proptype+'&state='+state+'&city='+city+'&location='+location+'&amtfrom='+amtfrom+'&amtto='+amtto+'&agent='+agent+'&builder='+builder+'&owner='+owner+'&allclient='+allclient+'&post_duration='+post_duration;
}

function pageChanger_property_platinum(listnum,adtype,roomnos,proptype,state,city,location,amtfrom,amtto,agent,builder,owner,allclient,post_duration,orderby)
{
adtype=adtype.replace('@','');
roomnos=roomnos.replace('@','');
proptype=proptype.replace('@','');
state=state.replace('@','');
city=city.replace('@','');
location=location.replace('@','');
amtfrom=amtfrom.replace('@','');
amtto=amtto.replace('@','');
agent=agent.replace('@','');
builder=builder.replace('@','');
owner=owner.replace('@','');
allclient=allclient.replace('@','');
post_duration=post_duration.replace('@','');
window.document.location='propertylistplatinum.php?listnum='+listnum+'&adtype='+adtype+'&roomnos='+roomnos+'&proptype='+proptype+'&state='+state+'&city='+city+'&location='+location+'&amtfrom='+amtfrom+'&amtto='+amtto+'&agent='+agent+'&builder='+builder+'&owner='+owner+'&allclient='+allclient+'&post_duration='+post_duration+'&orderby='+orderby;
}

function sortChanger_property_platinum(orderby,adtype,roomnos,proptype,state,city,location,amtfrom,amtto,agent,builder,owner,allclient,post_duration)
{
adtype=adtype.replace('@','');
roomnos=roomnos.replace('@','');
proptype=proptype.replace('@','');
state=state.replace('@','');
city=city.replace('@','');
location=location.replace('@','');
amtfrom=amtfrom.replace('@','');
amtto=amtto.replace('@','');
agent=agent.replace('@','');
builder=builder.replace('@','');
owner=owner.replace('@','');
allclient=allclient.replace('@','');
post_duration=post_duration.replace('@','');
window.document.location='propertylistplatinum.php?orderby='+orderby+'&adtype='+adtype+'&roomnos='+roomnos+'&proptype='+proptype+'&state='+state+'&city='+city+'&location='+location+'&amtfrom='+amtfrom+'&amtto='+amtto+'&agent='+agent+'&builder='+builder+'&owner='+owner+'&allclient='+allclient+'&post_duration='+post_duration;
}
function setcomparison()
{
	var compid	=	document.complist.chkIds.value;
	if(compid=='')
	{
		alert("Select atleast Two properties to Compare");	
	}
	else
	{
		var optpage	=	"compare.php";
		var winl = (screen.width  - 800) / 2;
 		var wint = (screen.height - 600) / 2;
		openWindow(''+optpage+'?chkIds='+compid+'','myplan','width=800,height=600,scrollbars=yes,top='+wint+',left='+winl+'')	
	}
}

function openWindow(theURL,winName,features) 
{ //v2.0
	 window.open(theURL,winName,features);
}
