<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

<!--
function swapClass()
{ //v1.4 by PVII
	var i,x,tB,j=0,tA=new Array(),arg=swapClass.arguments;
	if(document.getElementsByTagName)
	{
		for(i=4;i<arg.length;i++)
		{
			tB=document.getElementsByTagName(arg[i]);
			for(x=0;x<tB.length;x++)
			{
				tA[j]=tB[x];j++;
			}
		}
		for(i=0;i<tA.length;i++)
		{
			if(tA[i].className)
			{
				if(tA[i].id==arg[1])
				{
					if(arg[0]==1)
					{
						tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];
					}else{
						tA[i].className=arg[2];
					}
				}else if(arg[0]==1 && arg[1]=='none')
				{
					if(tA[i].className==arg[2] || tA[i].className==arg[3])
					{
						tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];
					}
				}else if(tA[i].className==arg[2])
				{
					tA[i].className=arg[3];
				}
			}
		}
	}
}
// the following PVII (www.projectseven.com) function writes the styles that control menu hiding and showing
// so that browsers with script disabled can see a fully expanded menu without having to toggle
// the entire menu onLoad, allowing the onLoad event to simply expose a single menu
//-->
<!--
	function writeStyles(op,a){ //v1.5 by PVII
		if(op==0||document.getElementById)
		{
			var tS="<sty"+"le type=\"text/css\">";
			tS+=a+"<"+"/sty"+"le>";document.write(tS);document.close();
		}
	}
	writeStyles(1,'.closed div{ display:none;}.open div{ display:block;}');
//-->

//Browser Support Code
function ajaxFunction(data, page){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById(data);
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	
	if ( document.getElementById("location1").checked == 1 ) {
		var location1 = encodeURIComponent(document.getElementById("location1").value);
	}else{
		var location1 = 0;	
	}
	
	if ( document.getElementById("location2").checked == 1 ) {
		var location2 = encodeURIComponent(document.getElementById("location2").value);
	}else{
		var location2 = 0;	
	}

	if ( document.getElementById("three").checked == 1 ) {
		var three = encodeURIComponent(document.getElementById("three").value);
	}else{
		var three = 0;
	}
	
	if ( document.getElementById("four").checked == 1 ) {
		var four = encodeURIComponent(document.getElementById("four").value);
	}else{
		var four = 0;
	}
	
	if ( document.getElementById("price1").checked == 1 ) {
		var price1 = encodeURIComponent(document.getElementById("price1").value)
	}else{
		var price1 = 0;
	}
	
	if ( document.getElementById("price2").checked == 1 ) {
		var price2 = encodeURIComponent(document.getElementById("price2").value);
	}else{
		var price2 = 0;
	}
	
	if ( document.getElementById("price3").checked == 1 ) {
		var price3 = encodeURIComponent(document.getElementById("price3").value);
	}else{
		var price3 = 0;
	}
	
	if ( document.getElementById("price4").checked == 1 ) {
		var price4 = encodeURIComponent(document.getElementById("price4").value);
	}else{
		var price4 = 0;	
	}
	
	var id = encodeURIComponent(document.getElementById("id").value);
	
	var parameters="location1="+location1+"&location2="+location2+"&three="+three+"&four="+four+"&price1="+price1+"&price2="+price2+"&price3="+price3+"&price4="+price4+"&id="+id;
	ajaxRequest.open("POST", page, true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
	ajaxRequest.send(parameters); 
}

//Browser Support Code
function ajaxFunction2(data, page){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById(data);
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	
	if ( document.getElementById("location1").checked == 1 ) {
		var location1 = encodeURIComponent(document.getElementById("location1").value);
	}else{
		var location1 = 0;	
	}
	
	if ( document.getElementById("location2").checked == 1 ) {
		var location2 = encodeURIComponent(document.getElementById("location2").value);
	}else{
		var location2 = 0;	
	}
	
	if ( document.getElementById("price1").checked == 1 ) {
		var price1 = encodeURIComponent(document.getElementById("price1").value)
	}else{
		var price1 = 0;
	}
	
	if ( document.getElementById("price2").checked == 1 ) {
		var price2 = encodeURIComponent(document.getElementById("price2").value);
	}else{
		var price2 = 0;
	}
	
	if ( document.getElementById("price3").checked == 1 ) {
		var price3 = encodeURIComponent(document.getElementById("price3").value);
	}else{
		var price3 = 0;
	}
	
	if ( document.getElementById("price4").checked == 1 ) {
		var price4 = encodeURIComponent(document.getElementById("price4").value);
	}else{
		var price4 = 0;	
	}
	
	var blockType = encodeURIComponent(document.getElementById("blockType").value);
	var bed = encodeURIComponent(document.getElementById("bed").value);
	var bath = encodeURIComponent(document.getElementById("bath").value);
	var car = encodeURIComponent(document.getElementById("car").value);
	
	var parameters="location="+location+"&location2="+location2+"&price1="+price1+"&price2="+price2+"&price3="+price3+"&price4="+price4+"&blockType="+blockType+"&bed="+bed+"&bath="+bath+"&car="+car;
	ajaxRequest.open("POST", page, true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
	ajaxRequest.send(parameters); 
}

//Browser Support Code
function ajaxFunction3(data, page){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById(data);
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	
	if ( document.getElementById("three").checked == 1 ) {
		var three = encodeURIComponent(document.getElementById("three").value);
	}else{
		var three = 0;
	}
	
	if ( document.getElementById("four").checked == 1 ) {
		var four = encodeURIComponent(document.getElementById("four").value);
	}else{
		var four = 0;
	}
	
	if ( document.getElementById("price1").checked == 1 ) {
		var price1 = encodeURIComponent(document.getElementById("price1").value)
	}else{
		var price1 = 0;
	}
	
	if ( document.getElementById("price2").checked == 1 ) {
		var price2 = encodeURIComponent(document.getElementById("price2").value);
	}else{
		var price2 = 0;
	}
	
	if ( document.getElementById("price3").checked == 1 ) {
		var price3 = encodeURIComponent(document.getElementById("price3").value);
	}else{
		var price3 = 0;
	}
	
	if ( document.getElementById("price4").checked == 1 ) {
		var price4 = encodeURIComponent(document.getElementById("price4").value);
	}else{
		var price4 = 0;	
	}
	
	var parameters="three="+three+"&four="+four+"&price1="+price1+"&price2="+price2+"&price3="+price3+"&price4="+price4;
	ajaxRequest.open("POST", page, true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
	ajaxRequest.send(parameters); 
}

//Browser Support Code
function ajaxFunction4(data, page){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById(data);
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	
	if ( document.getElementById("location2").checked == 1 ) {
		var location2 = encodeURIComponent(document.getElementById("location2").value);
	}else{
		var location2 = 0;	
	}

	if ( document.getElementById("three").checked == 1 ) {
		var three = encodeURIComponent(document.getElementById("three").value);
	}else{
		var three = 0;
	}
	
	if ( document.getElementById("four").checked == 1 ) {
		var four = encodeURIComponent(document.getElementById("four").value);
	}else{
		var four = 0;
	}
	
	if ( document.getElementById("price1").checked == 1 ) {
		var price1 = encodeURIComponent(document.getElementById("price1").value)
	}else{
		var price1 = 0;
	}
	
	if ( document.getElementById("price2").checked == 1 ) {
		var price2 = encodeURIComponent(document.getElementById("price2").value);
	}else{
		var price2 = 0;
	}
	
	if ( document.getElementById("price3").checked == 1 ) {
		var price3 = encodeURIComponent(document.getElementById("price3").value);
	}else{
		var price3 = 0;
	}
	
	if ( document.getElementById("price4").checked == 1 ) {
		var price4 = encodeURIComponent(document.getElementById("price4").value);
	}else{
		var price4 = 0;	
	}
	
	var id = encodeURIComponent(document.getElementById("id").value);
	
	var parameters="location2="+location2+"&three="+three+"&four="+four+"&price1="+price1+"&price2="+price2+"&price3="+price3+"&price4="+price4+"&id="+id;
	ajaxRequest.open("POST", page, true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
	ajaxRequest.send(parameters); 
}