
var runPageValidation = false;

function Page_Validation() {
	
	if(!runPageValidation) {
		runPageValidation = true;
		return true;
	}
	
	return false;
}

function openWindow(imageURL) {
	
	var top = (screen.availHeight - 460) / 2;
	var left = (screen.availWidth - 460) / 2;
	
	var win = window.open("DisplayImage.aspx?File=" + imageURL, "43252435345345345453", "scrollbars=no,resizable=no,width=460,height=400,left=" + left + ",top=" + top);
	win.focus();
}

function openWindowFurniturePack(imageURL) {
   var win = window.open("DisplayImage.aspx?File=" + imageURL, "4325243534345345454", "scrollbars=no,resizable=no,width=440,height=460");
   win.focus();
}

function openWindowMap() {
	var win = window.open("/images/map.gif", "4345453", "scrollbars=no,resizable=no,width=550,height=420");
	win.focus();
}

function openWindowCurrency() {
	var win = window.open("http://www.xe.com/pca/input.cgi", "4345544453", "scrollbars=no,resizable=no,width=550,height=130");
	win.focus();
}

function openWindowPrintFriendlyVersion(PropertyID) {
	var win = window.open("PrintFriendly.aspx?PropertyID=" + PropertyID, "434553", "scrollbars=yes,resizable=yes,menubar=yes,width=600,height=500");
	win.focus();
}

function ShowDiv(div) {
	if(typeof(div) == "string")
		document.getElementById(div).style.display = "block";
	else
		document.getElementById(div).style.display = "none";
}

function HideDiv(div) {
	if(typeof(div) == "string")
		document.getElementById(div).style.display = "none";
	else
		document.getElementById(div).style.display = "block";
}

function LoadFlash()
{
	document.getElementById("flashobjshow").innerHTML = document.getElementById("flashobjhide").innerHTML;
}
