<!--
var Client="Prudential Open House";
var photoTitle="";

function PopupWindow(photoName, photoWidth, photoHeight, photoCaption, photoCount, mlsNumber, currentImage, broker)
{
	//alert(document.body.clientHeight);
 	ClosePopup()

 	photoTitle=Client;
	
 	if (photoCaption != ""){
  		photoTitle=photoTitle + "%20-%20" + photoCaption
	}
	var URL="/mlslistings/MlsPic.asp?Photo=" + photoName + "&Width=" + photoWidth + "&Height=" + photoHeight + "&Caption=" + photoCaption + "&PhotoTitle=" + photoTitle +"&photoCount=" + photoCount + "&mlsNumber=" + mlsNumber + "&currentImage=" + currentImage + "&broker=" + broker;
 	var windowWidth=parseInt(photoWidth) + 39;
 	var windowHeight=parseInt(photoHeight) + 30;
	var w = document.body.clientWidth;
   	var	h = document.body.clientHeight;
	var l = window.screenLeft;
	var leftPos = ((w-windowWidth)/2) + l;
	var topPos = 50
	//var topPos = (h-windowHeight)/2;
	//alert(document.body.clientHeight);
	//alert("Windows Height " + windowHeight + ", Window Width " + windowWidth + ", Client Width " + w + ", Client Height " + h);

    popupwindow=window.open(URL, "PhotoWindow", "width=" + windowWidth + ",height=" + windowHeight + ",toolbars=no,top=" + topPos + ",left=" + leftPos + "");
}

function ClosePopup()
{
 	if (window.popupwindow && !(window.popupwindow.closed))
  		window.popupwindow.close();
}

function DisplayImage(sPictureName)   
{
	var newWind = window.open ('OHPIC.asp?PIC=sPictureName','window2','resizable=no,directories=no,status=no,menubar=no,width=450,height=320')
	if (newWind.opener == null) {  // for Nav 2.0x
    newWind.opener = self  // this creates and sets a new property
	}
}

function CloseWindow()   
{
	NewWind.close()
}

function PopupPrintTourSheet(broker, mlsNumber, propertyType, propertyPrintType)
{
	//alert("PopupPrintTourSheet");
 	ClosePopup();
	
 	if (propertyPrintType == "PT"){
	var windowWidth = 640;
	var printHeadTail = "FALSE";
	}else{
	var windowWidth = 800;
	
	}
 	var windowHeight = 500;
	
	var w = document.body.clientWidth;
   	var	h = document.body.clientHeight;
	var l = window.screenLeft;
	var leftPos = ((w-windowWidth)/2) + l;
	var topPos = 50;
	
	//alert("document.body.clientWidth " + document.body.clientWidth);
	//alert("document.body.clientHeight " + document.body.clientHeight);
	//alert("window.screenLeft " + window.screenLeft);
	//alert("leftPos " + leftPos);
	//alert("topPos " + topPos);
	
	var URL="/mlslistings/get_property.asp?brkr=" + broker + "&LN=" + mlsNumber + "&type=" + propertyType + "&VTS=TRUE&TST=" + propertyPrintType + "&PHT=" + printHeadTail;

    popupwindow=window.open(URL, "PopupWindow", "width=" + windowWidth + ",height=" + windowHeight + ",toolbars=no,top=" + topPos + ",left=" + leftPos + ",scrollbars=yes");
}


-->