//  newWin.js
//  created 12 April 2004 by Ray Dahl
//  JavaScript to open a new window for supplemental content
//  if the window exists new content will be loaded into the window

//  variable declaration
var loadWin;
//  Set your window properties here
var winProps = "width=760,height=600,dependent=yes,left=60,top=60,toolbars=yes,scrollbars=yes,resizable=yes";
var fielddescp
// var winName = "junior"   //  Uncomment this variable if you do not want to name the new window in the script call
function newwin(page,winName,field) { //  remove ",winName" if you uncomment the winName variable
    
switch (page) {
case 'res' :
 page = "../../html/FieldDescriptions/residenceRecord.html#"+field
break
case 'par' :
 page =  "../../html/FieldDescriptions/parcelRecord2.html#"+field

 break
case 'dts' :
page = "../../html/FieldDescriptions/detachedStructureRecord.html#"+field
break
case 'cu' :
page = "../../html/FieldDescriptions/commUnit.html#"+field
break
case 'val' :
page = "../../html/FieldDescriptions/valuationRecord.html#"+field
break
case 'lnd' :
page = "../../html/Fielddescriptions/landrecord.cfm#"+field
break
case 'valh' :
page = "../../html/FieldDescriptions/valuationHRecord.html#"+field
break
case 'cgr' :
page = "../../html/FieldDescriptions/commercialGroupRecord.html#"+field
break
case 'csec' :
page = "../../html/FieldDescriptions/commercialRecord.html#"+field
break
case 'cdu' :
page = "../../html/FieldDescriptions/condoUnit.html#"+field
break
}
 
	
    if(!loadWin || loadWin.closed){
       loadWin = open(page, winName, winProps ); 
    }else{
        loadWin.location=page;
        loadWin.focus();   
    }
}
   
//  To call this script use something like the following
//  <a href=javascript:newWin('myNewPage.cfm', 'junior');>Link to Page in New Window</a>
//
//  If you uncomment the winName variable the link will look like the following
//  <a href=javascript:newWin('myNewPage.cfm');>Link to Page in New Window</a>