<!--

  var win=null;
  function NewWindow(mypage,myname,w,h,scroll,pos){
  if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
  if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
  else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
  win=window.open(mypage,myname,settings);}
  // -->

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 checkemail(){
if ((form1.mail_to.value == "") || 
(form1.mail_to.value.indexOf('@') == -1) || 
(form1.mail_to.value.indexOf('.') == -1)) {
alert("The e-mail address you have entered is not valid.");
return false;
}
}

function outliner(tricker)
{
		if(tricker.value== "For Sale")
		{
			Sell1.className = "expanded";
			Sell2.className = "expanded";
			ActiveRent.className = "collapsed";
			ActiveSell.className = "expanded";
			Rent1.className = "collapsed";
			Rent2.className = "collapsed";
			document.searchform.status.value="For Sale";
			return;
		}else{
			Sell1.className = "collapsed";
			Sell2.className = "collapsed";
			ActiveRent.className = "expanded";
			ActiveSell.className = "collapsed";
			Rent1.className = "expanded";
			Rent2.className = "expanded";
			document.searchform.status.value="For Rent";
			return;
		}
}

function outlineradv(tricker)
{
		if(tricker.value== "For Sale")
		{
			Selladv.className = "expanded";
			Rentadv.className = "collapsed";
			return;
		}else{
			Selladv.className = "collapsed";
			Rentadv.className = "expanded";
			return;
		}
}

//-->