var strHref = window.location.href;



function pdfCreatorCall()
{

}
function redirectSearch()
{
    var jsCountry = document.getElementById("selcountry").value;
	var jsRegion =  document.getElementById("selregion").value;
	var jsCity = document.getElementById("selcity").value;
	var jsMax =  document.getElementById("selMax").value;
	var jsMin =  document.getElementById("selMin").value;
	if((jsMin!="")&&(jsMax!="")){
		if(jsMin >jsMax){
		alert("Your Maximum value is less than the minimum value. please select another value");
		return false;
		}
	}
	window.location = "http://www.propertyalert.org/qsearch.php?varCountry="+ jsCountry + "&varRegion=" + jsRegion + "&varCity=" + jsCity + "&intMax=" + jsMax + "&intMin=" + jsMin;

}

function winOpen()
{
country=document.getElementById("country").value;
broker=document.getElementById("broker").value;
address1=document.getElementById("address1").value;
address2=document.getElementById("address2").value;
city=document.getElementById("city").value;
property=document.getElementById("property").value;
refno=document.getElementById("refno").value;
region=document.getElementById("region").value;
 window.open("http://www.propertyalert.org/contactagent.php?country="+country+"&address1="+address1+"&address2="+address2+"&broker="+broker+"&city="+city+"&region="+region+"&property="+property+"&refno="+refno+"","","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=700,height=500");
}

function updateregion()
{
	var sel_country = document.FrmRegForm.selcountry.value;
	var sel_region = document.FrmRegForm.selregion;
	while ( sel_region.options.length )
		sel_region.options[0] = null;
	sel_region.options[0] = new Option('loading...', -1);
	frames['thread'].location.href = 'list_region.php?country=' + sel_country;
	
}
// JavaScript Document