<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}
MM_reloadPage(true);

// -->
var pop = '';




/*function openVRX(PropertyID)
{

var w = screen.width;
var winwidth;
var winheight;
var winurl;
if (w >= 900)
{
winwidth=895;
winheight=579;
winurl = 'http://delivery.vrxstudios.com/properties/vrxframe.asp?did=50223&pid=' + PropertyID
}
else
{
winwidth=600;
winheight=490;
winurl = 'http://delivery.vrxstudios.com/50223/map.htm?id=' + PropertyID
}
var win = window.open(winurl,'vrxmap','width=' + winwidth + ',height=' + winheight + ',top=5,left=5,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
win.focus();
}*/


function openwin(nm,wd,ht)
{

   var name=nm;

   if (!wd)

  {
	 width=600;
	}
	else 
	{
	width=wd;
	}
   if(!ht)
   {
  height=600;
   }
   else
   {
  height=ht;
   }
   if (pop && !pop.closed) {
    pop.close();
   }
   pop=eval("window.open('"+name+"','NewWIN','chrome[4],toolbar=no,left=20,top=20,width="+width+",height="+height+",directories=no,menubar=no,SCROLLBARS=yes')");

   if (!pop.opener) popUpWin.opener = self;

}



function openVRX(PropertyID)
{
var w = screen.width;
var winwidth;
var winheight;
var winurl;
if (w >= 900)
{
winwidth=895;
winheight=579;
winurl = 'http://delivery.vrxstudios.com/50223/doublewide.htm?id=' +PropertyID + '&container=11'
}
else
{
winwidth=600;
winheight=490;
winurl = 'http://delivery.vrxstudios.com/50223/map.htm?id=' + PropertyID
}
var win = window.open(winurl,'vrxmap','width=' + winwidth + ',height=' +winheight +',top=5,left=5,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
win.focus();
}
function show(id)
{
 document.getElementById(id).className='visibleobject';

}
function hide(id)
{
 document.getElementById(id).className='invisibleobject';
}
function toggle_display(id)
{
	//alert(id);
 if (document.getElementById(id).className=='visibleobject')  
  { hide(id); }
 else
 { show(id); }
}

function checkEnter(e){
//alert("ok"); //e is event object passed from function invocation
var characterCode

if(e && e.which){ //if which property of event object is supported (NN4)
e = e
characterCode = e.which //character code is contained in NN4's which property
}
else{
e = event
characterCode = e.keyCode //character code is contained in IE's keyCode property
}

if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
subSearchForm(); //submit the form
return false
}
else{
return true
}

}
