// JavaScript Document
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
// end JavaScript -->



<!-- 
function imagwindow(url, name)
{
  var w=400;  //width & height of hires popup
  var h=380;
 
	//pop up on the right
	var screenW = 640, screenH = 480;
	if (parseInt(navigator.appVersion)>3) {
	 screenW = screen.width;
	 screenH = screen.height;
	}

	x=screenW - w -20;
	y=10;
	var options='width=' + w + ',height=' + h +',status=0,toolbar=0,menubar=0,location=0,resizeable=0,scrollbars=no,left=' +x+',top=' +y;
	var win = window.open(url,name,options);
	win.focus();
}

function change_parent(URL)  {
	if (window.opener && !window.opener.closed)  {
		window.opener.location=URL;
		window.opener.focus();
	}
	else {
		window.open(URL, 'NEW');
	}
}


function clipwindow(url, name)
{
    var win = window.open(url, name,"status=0,toolbar=0,menubar=0,location=0,resizeable=1,scrollbars=yes,width=670,height=725,left = 300,top = 159");
	win.focus();
}

function clipwindow2(url, name)
{
    var win = window.open(url, name,"status=0,toolbar=0,menubar=0,location=0,resizeable=1,scrollbars=yes,width=478,height=343,left = 150,top = 159");
	win.focus();
}

function clipwindow3(url, name)
{
    var win = window.open(url, name,"status=0,toolbar=0,menubar=0,location=0,resizeable=0,scrollbars=no,width=940,height=585,left = 150,top = 159");
	win.focus();
}

function clipwindow4(url, name)
{
    var win = window.open(url, name,"status=0,toolbar=0,menubar=0,location=0,resizeable=0,scrollbars=yes,width=940,height=585,left = 150,top = 159");
	win.focus();
}

// -->

function request(url, name)
{
    var win = window.open(url, name,"status=0,toolbar=0,menubar=0,location=0,resizeable=0,scrollbars=yes,width=600,height=400,left = 150,top = 159");
	win.focus();
}

function redirectForm(myForm) {
var w = window.open('about:blank','Popup_Window','status=0,toolbar=0,menubar=0,location=0,resizeable=1,scrollbars=yes,width=940,height=585,left = 150,top = 159');
myForm.target = 'Popup_Window';
return true;
}


function validateEmail()
{
  if (document.form2000.email.value == "") {
    alert( "Valid E-mail Address Required!" );
    return false ;
  }
}

// end JavaScript -->


<!-- start JavaScript
function validateMe()
{
  if (document.formiframefinal.suburb_array.value == "Enter suburb name or first few letters") {
    alert( "No Suburb Inserted Yet!" );
    return false ;
  }
 
 if (document.formiframefinal.suburb_array.value == "") {
    alert( "No Suburb Inserted Yet!" );
    return false ;
  }

/*
  if (document.formiframefinal.idpricerange.value == "zzz") {
    alert( "Please Select A Price Range!" );
    return false ;
  }
 
{
var chks = document.getElementsByName('categoryarray[]');
var hasChecked = false;
for (var i = 0; i < chks.length; i++)
{
if (chks[i].checked)
{
hasChecked = true;
break;
}
}
if (!hasChecked)
{
alert("Please select at least one Property Category!");
chks[0].focus();
return false;
}
*/

return true;
}
  
// end JavaScript -->


<!-- start JavaScript
function onImgErrorSmall(source)
{
source.src = "images/no-image-100px.gif";
// disable onerror to prevent endless loop
source.onerror = "";
return true;
}

function onImgErrorLarge(source)
{
source.src = "images/no-image-200px.gif";
// disable onerror to prevent endless loop
source.onerror = "";
return true;
}

function onImgErrorSmallEmag(source)
{
source.src = "images/no-image-90pxEmag.gif";
// disable onerror to prevent endless loop
source.onerror = "";
return true;
}

function onImgErrorLargeEmag(source)
{
source.src = "images/no-image-400pxEmag.gif";
// disable onerror to prevent endless loop
source.onerror = "";
return true;
}
// end JavaScript -->



<!-- start JavaScript
function LaunchPopup1() {
popup1 = open("includes/areaindex_towns.php","popup_1","scrollbars=no,width=500,height=400,resizable=yes,status=1")
}

function FillFormFields(v) {
if(v.length < 5) { return; }
var levelOne = v.split('~ ~');
for(var i = 0; i < levelOne.length; i++) {
	var levelTwo = levelOne[i].split('| |');
	eval('document.formiframefinal.' + levelTwo[0] + '.value = levelTwo[1]');
	}
}
// end JavaScript -->

<!-- start JavaScript
function LaunchPopup2() {
popup2 = open("property_search_logs_register.php","popup_2","scrollbars=no,width=500,height=470,resizable=yes,status=1")
}

function FillFormFieldsRegister(w) {
if(w.length < 5) { return; }
var levelOne = w.split('~ ~');
for(var j = 0; j < levelOne.length; j++) {
	var levelTwo = levelOne[j].split('| |');
	eval('document.formiframeregister.' + levelTwo[0] + '.value = levelTwo[1]');
	}
}

// end JavaScript -->

<!-- start JavaScript
// document.oncontextmenu = function() {alert("© Property Trader"); return false;} 
// end JavaScript -->



<!--
var forsale = new Array("100,000","200,000","300,000","400,000","500,000","600,000","700,000","800,000","900,000","1,000,000","1,200,000","1,400,000","1,600,000","1,800,000","2,000,000","2,300,000","2,600,000","3,000,000","3,500,000","4,000,000","5,000,000","6,000,000","8,000,000","10,000,000","15,000,000","Any Price");
var forsaleval = new Array("100000","200000","300000","400000","500000","600000","700000","800000","900000","1000000","1200000","1400000","1600000","1800000","2000000","2300000","2600000","3000000","3500000","4000000","5000000","6000000","8000000","10000000","15000000","20000000");
var tolet = new Array("1,000","2,000","3,000","4,000","5,000","6,000","7,000","8,000","9,000","10,000","Any Price");
var toletval = new Array("1000","2000","3000","4000","5000","6000","7000","8000","9000","10000","20000");
function set_pricerange(){
  var select_pricestatus= document.formiframefinal.pricestatus;
  var select_pricerange= document.formiframefinal.pricerange;
  var selected_pricestatus= select_pricestatus.options[select_pricestatus.selectedIndex].value;
  select_pricerange.options.length=0;
  if (selected_pricestatus == "For Sale"){
    for(var i=0; i < forsale.length; i++)
   select_pricerange.options[select_pricerange.options.length] = new Option(forsale[i],forsaleval[i]);
  }
  if (selected_pricestatus == "To Let"){
    for(var i=0; i < tolet.length; i++)
   select_pricerange.options[select_pricerange.options.length] = new Option(tolet[i],toletval[i]);
  }
}  
-->

