﻿
//
//This file supports opening a window that displays the Property Search application.
//
//History:
//2008.09.30  Released version 1.0.
//2009.08.31  Updated url value for use with new Property Search application, and increased popup width. 
//2009.09.08  Removed streetName from signature.
//

//Opens a window from eservices based on shape description properties created in GetShapeDescription.
function OpenPropertySearchWindow(baseUrl, pin)
{
   	//url = baseUrl + '?IDValue=&theBldgNum=&theStreetDir=&theStreetName=' + streetName + '&theStreetType=&MRefValue=' + pin + ' %20%20%20%20%20%20%20%20%20%20%20%20%20%20&DisplayValue=1&Owner=';
	url = baseUrl + '?pin=' + pin;
	leftPosition = (screen.width) ? (screen.width  - 800)/2 : 100;
	topPosition  = (screen.height) ? (screen.height - 600)/2 : 100;
    assessmentWindow = window.open(url,'Assessment','width=800,height=600,top=' + topPosition + ',left=' + leftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=yes,scrollbars=yes,resizable=yes,dependent=yes');
    if (assessmentWindow.focus)
    {
        assessmentWindow.focus();
    }
}

