<!--

//opens a new popup window containing the page from parameter "url":
var newWin;
function WinOpen(url,title,w,h){
	w=parseInt(w);
	h=parseInt(h);
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	//if (mac) win.resizeTo(w+25,h+50);
	newWin.focus();
}

//opens a new popup window containing the image from parameter:
var newWinImg;
function OpenImage(imgFile){
	if (new String(newWinImg)!="undefined" && newWinImg!=null) if (!newWinImg.closed) newWinImg.close();
	var newWinImg=window.open("","ProjectNewWindowImage","width=100,height=100,top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	newWinImg.document.write('<html><head><title>Project :: New Window Image</title></head><body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#ffffff" onload="window.resizeTo(parseInt(document.images[\'img\'].width)+10,parseInt(document.images[\'img\'].height)+50)"><img src="' + imgFile + '" name="img" /></body></html>');
	newWinImg.document.close();
	newWinImg.focus();
}

function LoadImage(imgname,img) {
	document.images[imgname].src=img;
}

//used for paging:
function GoToPageNo(page){
	document.frmPaging.page.value=page;
	document.frmPaging.submit();
}

//used for paging:
function GoToRecNo(start){
	document.frmMain.start.value=start;
	document.frmMain.submit();
}

var visBlinkMes=0;
function BlinkMessage(){
	if (document.getElementById && document.getElementById("divBlinkMes")!=null) {
		var obj=document.getElementById("divBlinkMes");
		if (visBlinkMes==0) {
			obj.style.visibility="hidden";
			visBlinkMes=1;
		} else {
			obj.style.visibility="visible";
			visBlinkMes=0;
		}
		setTimeout("BlinkMessage()",500);
	}
}

var visBlinkTGo=0;
function BlinkTimeToGo(){
	if (document.getElementById && document.getElementById("divBlinkTGo")!="null" && document.getElementById("divBlinkTGo")!=null) {
		var obj=document.getElementById("divBlinkTGo");
		if (visBlinkTGo==0) {
			obj.style.visibility="hidden";
			visBlinkTGo=1;
		} else {
			obj.style.visibility="visible";
			visBlinkTGo=0;
		}
		setTimeout("BlinkTimeToGo()",500);
	}
}

function OpenTermsWindow()
{
	WinOpen("termsandconditions_popup.asp","NHPterms",660,600)
}

function OpenEmailTermsWindow()
{
	WinOpen("termsemail.asp","NHPemailterms",660,600)
}

function OpenWebsiteTermsWindow()
{
	WinOpen("termswebsite.asp","NHPwebsiteterms",660,600)
}

function IncorrectLoginEA() {
	alert("Estate Agents:\nIncorrect username and/or password.");
}

function IncorrectLoginBuyer() {
	alert("Buyers:\nIncorrect username and/or password.");
}
//-->