<!--

// Copyright (c) 2000 internet.com Corp. 
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.
// http://www.webreference.com/js/column7/attributes.html

function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}

function privacy() {
  myRemote = launch("http://www.realestateinfo.com.au/privacy_big.htm", "Title", "height=500,width=450,screenX=50,left=50,screenY=50,top=50,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0", "myWindow");
}
function hansBackground() {
  myRemote = launch("about-hans.htm", "Title", "height=500,width=700,screenX=50,left=50,screenY=50,top=50,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0", "myWindow");
}
var exit = true;
function leave() {
	//alert ("about to pupup");
	// if the cookie wasn't found, this is your first visit
	if (exit) 
	{
			//alert ("ere comes the to pupup");
		if (screen.height<=600)
			{
				//window.open('popup_subscribe.htm','','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,height=520,width=650,screenX=1,left=1,screenY=1,top=1');
				showModalDialog('popup_subscribe.htm',window,'dialogWidth=' + 660 + 'px;dialogHeight=' + 520 + 'px;status:0;help:0;scroll:1');
			}
		else
			{
				//window.open('popup_subscribe.htm','','toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,height=685,width=642,screenX=1,left=1,screenY=1,top=1');	
				showModalDialog('popup_subscribe.htm',window,'dialogWidth=' + 660 + 'px;dialogHeight=' + 700 + 'px;status:0;help:0;scroll:1');
			}
	}
}

function referPopup( hash ) {
	if (exit) 
	{
			//alert ("ere comes the to pupup");
		if (screen.height<=600)
			{
				showModalDialog('http://www.realestateinfo.com.au/refer-on-popup.php?order_hash='+hash,window,'dialogWidth=' + 660 + 'px;dialogHeight=' + 520 + 'px;status:0;help:0;scroll:1');
			}
		else
			{
				showModalDialog('http://www.realestateinfo.com.au/refer_on_popup.php?order_hash='+hash,window,'dialogWidth=' + 660 + 'px;dialogHeight=' + 700 + 'px;status:0;help:0;scroll:1');
			}
	}

}

function exitPopup(  ) {
	if (exit) 
	{
			//alert ("ere comes the to pupup");
		if (screen.height<=600)
			{
				showModalDialog('http://www.realestateinfo.com.au/exit_popup.htm',window,'dialogWidth=' + 660 + 'px;dialogHeight=' + 520 + 'px;status:0;help:0;scroll:1');
			}
		else
			{
				showModalDialog('http://www.realestateinfo.com.au/exit_popup.htm',window,'dialogWidth=' + 660 + 'px;dialogHeight=' + 700 + 'px;status:0;help:0;scroll:1');
			}
	}

}

function onLeavePopup( page )
{
    if(exit) {
        if(screen.height<=600)
        {
            showModalDialog(page,window,'dialogWidth=' + 650 + 'px;dialogHeight=' + 520 + 'px;status:0;help:0;scroll:1');
        }
        else 
        {
			showModalDialog(page,window,'dialogWidth=' + 650 + 'px;dialogHeight=' + 665 + 'px;status:0;help:0;scroll:1');
        }
    }
}
var popup = true;
function popupSize(page, width, height)
{
	if(popup)
		showModalDialog(page,window,'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;status:0;help:0;scroll:1');
}

// -->

