if (top.location != self.location) {
	top.location = self.location
}
//setTimeout('location.href = self.location;',300000);

function HandleOnClose() {
//alert(event.clientY);
   if (event.clientY < 0)
    {
      prompt('Are you sure you want to leave the page?');
   	}
}





function propertyAlert(propID)
{

URLName =  "haveyouregistered.asp?propID=" + propID
		msgWindow = window.open('','browserChild','scrollbars=yes,resizeable=yes,width=300,height=300,top=100,left=200');
    	msgWindow.location.href = URLName;
		msgWindow.focus();
}


function callPrint(scriptName)
{
URLName =  "library/printPage.asp?page=" + scriptName

		msgWindow = window.open('','browserChild','scrollbars=yes,resizeable=yes,width=600,height=600,top=100,left=200');
    	msgWindow.location.href = URLName;
		msgWindow.focus();
}

function mapWindow()
{
URLName =  "map.asp"

		msgWindow = window.open('','browserChild','scrollbars=yes,resizeable=yes,width=470,height=600,top=100,left=100');
    	msgWindow.location.href = URLName;
		msgWindow.focus();
}

function multiMapWindow(URL)
{
URLName =  URL

		mapWin = window.open('','MultiMap','scrollbars=yes,resizeable=yes,width=750,height=550,top=100,left=100');
    	mapWin.location.href = URLName;
		mapWin.focus();
}

function pictureWindow(vTour,image)
{
URLName =  "showPic.asp?flash=" + vTour + "&image=" + image

		msgWindow = window.open('','browserChild','scrollbars=yes,resizeable=yes,width=420,height=300,top=100,left=100');
    	msgWindow.location.href = URLName;
		msgWindow.focus();
}

function openSendPWD()
{
URLName =  "library/sendpwd.asp"
		pwdWin = window.open('','pwd','scrollbars=no,resizeable=no,width=350,height=175,top=100,left=100');
    	pwdWin.location.href = URLName;
		pwdWin.focus();
}


function CC_Menu(ObjCell, TxtCell, ImgID){
		ObjCell.style.backgroundColor = '#ACACCD';
		ObjCell.style.cursor = "hand";
		document.getElementById(TxtCell).style.color = "#CC0033";
		document.getElementById(ImgID).src = "images/arrow1.gif";
	}
	
function CC_Menu_Return(ObjCell, TxtCell, ImgID){
		ObjCell.style.backgroundColor = '#FFFFFF';
		ObjCell.style.cursor = "hand";
		document.getElementById(TxtCell).style.color = "#000000";
		document.getElementById(ImgID).src = "images/arrow.gif";
	}
	
function CC_Menu1(ObjCell, TxtCell, ImgID){
		ObjCell.style.backgroundColor = '#ACACCD';
		ObjCell.style.cursor = "hand";
		document.getElementById(TxtCell).style.color = "#CC0033";
	}
	
function CC_Menu_Return1(ObjCell, TxtCell, ImgID){
		ObjCell.style.backgroundColor = '#ACACCD';
		ObjCell.style.cursor = "hand";
		document.getElementById(TxtCell).style.color = "#CC0033";
	}
	
function CC_SubMenu(ObjCell, TxtCell, ImgID){
		ObjCell.style.backgroundColor = '#ACACCD';
		ObjCell.style.cursor = "hand";
		document.getElementById(TxtCell).style.color = "#CC0033";
		document.getElementById(ImgID).src = "images/arrow1.gif";
	}
	
function CC_SubMenu_Return(ObjCell, TxtCell, ImgID){
		ObjCell.style.backgroundColor = '#FFFFFF';
		ObjCell.style.cursor = "hand";
		document.getElementById(TxtCell).style.color = "#000000";
		document.getElementById(ImgID).src = "images/arrow.gif";
	}	
function REB_Button(ObjCell)
	{
		ObjCell.style.border = "1px solid #000000";
		ObjCell.style.padding = "2px 4px 2px 4px";
		ObjCell.style.backgroundColor = "#ACACCD";
		ObjCell.style.fontWeight = "bold";
		ObjCell.style.fontSize = "7.5pt";
		ObjCell.style.cursor = "hand";
	}

function REB_Button_Return(ObjCell)
	{
		ObjCell.style.border = "1px solid #000000";
		ObjCell.style.padding = "2px 4px 2px 4px";
		ObjCell.style.backgroundColor = "#F1F1F1";
		ObjCell.style.fontWeight = "bold";
		ObjCell.style.fontSize = "7.5pt";
	}

function enquiryForm()
{
	showerr1 = false;
	errorMSG = "Form Error:\n\n";
	formFocus = ""
	if (document.fidessa.Name.value.length < 1)
 	{
		showerr1 = true;
		document.fidessa.Name.style.backgroundColor = "#FF0000";
		formFocus = document.fidessa.Name
		errorMSG +=" - Please enter your Name\n";
	} 
	if (document.fidessa.Phone.value.length < 1)
 	{
		showerr1 = true;
		document.fidessa.Phone.style.backgroundColor = "#FF0000";
		formFocus = document.fidessa.Phone
		errorMSG +=" - Please enter your Phone Number\n";
	} 

	if (showerr1 == true)
	{
		alert(errorMSG);
		formFocus.focus();
	}
	else
	{
		document.fidessa.submit();
	}
}

function checkViewing()
{
	showerr1 = false;
	errorMSG = "Form Error:\n\n";
	formFocus = ""
	if (document.reqView.reqname.value.length < 1)
 	{
		showerr1 = true;
		formFocus = document.reqView.reqname
		errorMSG +=" - Please enter your Name.\n";
	} 
	if (document.reqView.reqphone.value.length < 1)
 	{
		showerr1 = true;
		
		errorMSG +=" - Please enter your Phone Number.\n";
	} 

	if (showerr1 == true)
	{
		alert(errorMSG);
		if ((document.reqView.reqphone.value.length < 1)&&(document.reqView.reqname.value.length < 1))
		{
		formFocus = document.reqView.reqname
		}
		else
		{
		formFocus = document.reqView.reqphone
		}
		formFocus.focus();
	}
	else
	{
		document.reqView.submit();
	}
}


function checkForm()
{
	showerr1 = false;
	errorMSG = "Form Error:\n\n";
	formFocus = ""
	if (document.fidessa.From.value.length < 1)
 	{
		showerr1 = true;
		formFocus = document.fidessa.From
		errorMSG +=" - Please enter your email address.\n";
	} 
	if (document.fidessa.To.value.length < 1)
 	{
		showerr1 = true;
		formFocus = document.fidessa.To
		errorMSG +=" - Please enter the recipient email address.\n";
	} 

	if (showerr1 == true)
	{
		alert(errorMSG);
		formFocus.focus();
	}
	else
	{
		document.fidessa.submit();
	}
}

function whiteForm()
{
		document.fidessa.Name.style.backgroundColor = "#FFFFFF";
		document.fidessa.Phone.style.backgroundColor = "#FFFFFF";
}
function resetForm()
{
		document.fidessa.Name.style.backgroundColor = "#FFFFFF";
		document.fidessa.Phone.style.backgroundColor = "#FFFFFF";
		document.fidessa.Name.focus();
}
function sendProperty(propID)
{
URLName =  "library/sendProperty.asp?propID=" + propID

		msgWindow = window.open('','browserChild','scrollbars=yes,resizeable=yes,width=430,height=130,top=100,left=200');
    	msgWindow.location.href = URLName;
		msgWindow.focus();

}

function sendPage(page)
{
URLName =  "library/sendToFriend.asp?page=" + page

		msgWindow = window.open('','browserChild','scrollbars=yes,resizeable=yes,width=430,height=300,top=100,left=200');
    	msgWindow.location.href = URLName;
		msgWindow.focus();
}
function regAlert()
{
showerr1 = false;
	errorMSG = "Form Error:\n\n";
	if (document.fidessa.email.value.length < 4)
 	{
		showerr1 = true;
		errorMSG +=" - Please enter a valid email address.\n";
	} 
	if (document.fidessa.password.value.length < 6)
 	{
		showerr1 = true;
		errorMSG +=" - Please enter a password of at least 6 characters.\n";
	} 
	if (document.fidessa.companyName.value.length < 2)
 	{
		showerr1 = true;
		errorMSG +=" - Please enter your company name.\n";
	} 
	if (document.fidessa.phone.value.length < 6)
 	{
		showerr1 = true;
		errorMSG +=" - Please enter your telephone number.\n";
	} 
	if ((document.fidessa.sizeFrom.value.length < 1)||(document.fidessa.sizeTo.value.length < 1))
 	{
		showerr1 = true;
		errorMSG +=" - Please enter a size range.\n";
	} 
	if ((isNaN(document.fidessa.sizeFrom.value))||(isNaN(document.fidessa.sizeTo.value)))
 	{
		showerr1 = true;
		errorMSG +=" - Please enter a Numric size range.\n";
	} 
	if (showerr1 == true)
	{
		alert(errorMSG);
	}
	else
	{
		document.fidessa.submit();
	}

}
function editAlert()
{
showerr1 = false;
	errorMSG = "Form Error:\n\n";
	if (document.editAlerts.editEmail.value.length < 4)
 	{
		showerr1 = true;
		errorMSG +=" - Please enter a valid email address.\n";
	} 
	if (document.editAlerts.editPassword.value.length < 6)
 	{
		showerr1 = true;
		errorMSG +=" - Please enter a password of at least 6 characters.\n";
	} 
	if (showerr1 == true)
	{
		alert(errorMSG);
	}
	else
	{
		document.editAlerts.submit();
	}

}
