function checkEmail()

{

if (document.frmEmail.txtFriendEmail.value == "")

	{

	alert("Please enter your friend's email address");

	document.frmEmail.txtFriendEmail.focus();

	return false;

	}

else if (document.frmEmail.txtEmail.value == "")

	{

	alert("Please enter your email address");

	document.frmEmail.txtEmail.focus();

	return false;

	}

else

	{

	return true;

	}

}







function popPhoto(url)

{

var winTop = (screen.height / 2) - 300;

var winLeft = (screen.width / 2) - 300;

var winProps = "height=600, left=" + winLeft + ", resizable=yes, scrollbars=auto, top=" + winTop + ", width=600"

var popPhoto = window.open(url, "winPopPhoto", winProps);

}





function popEmail(url)

{

var winTop = (screen.height / 2) - 300;

var winLeft = (screen.width / 2) - 242;

var winProps = "height=600, left=" + winLeft + ", resizable=yes, scrollbars=auto, top=" + winTop + ", width=485"

var popEmail = window.open(url, "winPopEmail", winProps);

}





function showPhoto(intTotal, intPhoto)
{
for (looper = 1; looper <= intTotal; looper++)
	{
	showHide('divPhoto' + looper,0,'holdPhotos');
	}

showHide('divPhoto' + intPhoto,1,'holdPhotos');
}



function showEmail()

{

showHide('divPhoto1',0,'holdEmail');

showHide('divEmailForm',1,'holdEmail');

}



function showHide(eID, action, holderLayer)

{

var vNum = navigator.appVersion;

var nsOnly = (vNum.indexOf("5.0") == -1 != vNum.indexOf("NT 5.0") == 1);



if (navigator.userAgent.indexOf("Mozilla") != -1)

	{

	// Mozilla Code

	if (action)

		{

		action = "visible";

		}

	else

		{

		action = "hidden";

		}

	

	eval("document.getElementById('" + eID + "').style.visibility='" + action + "';");

	}

else if (navigator.appName.indexOf("Microsoft") == -1 && nsOnly)

	{

	// Netscape Code

	if (action)

		{

		//action = "show";

		action = "visible";

		}

	else

		{

		action = "hide";

		}



	eval("document." + holderLayer + ".layers['" + eID + "'].visibility='" + action + "';");

	}

else

	{

	if (action)

		{

		action = "visible";

		}

	else

		{

		action = "hidden";

		}

	

	if (navigator.appName.indexOf("Microsoft") == -1)

		{

		// Netscape 6 Code

		eval("document.getElementById('" + eID + "').style.visibility='" + action + "';");

		}

	else

		{

		// Microsoft Code

		eval(eID + ".style.visibility='" + action + "';");

		}

	}

}





function chgChoices(selTwo,choices)
{
var looper;

for (looper = selTwo.options.length; looper > 0; looper--)
	{
	selTwo.options[1] = null;
	}

for (looper = 0; looper < choices.length; looper++)
	{
	selTwo.options[looper+1] = new Option(choices[looper],choices[looper]);
	}
}



function doDevSite(strCountry)
{
var myFrm = document.frmDevelop;
var strSelected = myFrm.selDevelop.options[myFrm.selDevelop.selectedIndex].value;

if (myFrm.selDevelop.selectedIndex != 0)
	{
	window.location.href = "http://www.propertylook.com.au/plcj/res/default.asp?locnCode=" + strSelected + "&amp;ctrycode=" + strCountry;
	}
}