
var strWinProp, strImgProp ;

var win = null;

function decodestr(s) {
var result=""
for(var i=0;i<s.length;++i)
if(s.charAt(i)=="+") result+=" "
else result+=s.charAt(i)
return result }

function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function prop_page(href,string) {

    location.href = href + '?' + string }

function open_ed_bio() {

  window.open('/prescott/bio-ed.htm','PGP',strBioProp) }

function open_request_property_window() {

  window.open('/request info form/request_prescott_info.htm','PGP',strWinProp) }

function xopen_info_request_window() {

  win = window.open('/request_info.htm','PGP',strWinProp)
  if(win.window.focus){win.window.focus();}
}

function open_info_request_window() {
  NewWindow('/request_info.htm','PGP','536','550','yes') }

function open_fh_info_request_window() {

  window.open('/request info form/request_prescott_info.htm','PGP',strWinProp) }

function open_payson_info_request_window() {

  window.open('/request info form/request_payson_info.htm','PGP',strWinProp) }

function open_wp_info_request_window() {

  wwindow.open('/request info form/request_prescott_info.htm','PGP',strWinProp) }
  
function open_pc_info_request_window() {

  window.open('request_prescottc_info.htm','PGP',strWinProp) }


function open_hass_info_request_window() {

  window.open('/prescott/hassayampa/request_hassayampa_info.htm','PGP',strWinProp) }
  
function open_sedona_info_request_window() {

  window.open('/request info form/request_sedona_info.htm','PGP',strWinProp) }

function open_email_pattermann_window() {

  window.open('/email form/email_pattermann.htm','PGP',stremailProp) }

function init_pgp() {

  intHeight = 550 ;  //Adjust for the Icon Bar at the bottom of the window.
  intWidth = 536 ;   //Adjust for the end of screen (don't know why?)
  PGHeight = 512 ;  //Adjust for the Icon Bar at the bottom of the window.
  PGWidth = 622 ;   //Adjust for the end of screen (don't know why?)
  imgHeight = 548 ;
  imgWidth = 556 ;
  pfhheight = 414 ;
  pfhwidth = 458 ;
  Picwidth = 666 ;
  Picheight = 616 ;
  vtwidth = 472 ;
  vtheight = 464 ;
  emailheight = 580 ;
  emailwidth = 580;
  bioWidth = 410;
  bioHeight = 300;
  
  stremailProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=yes"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=no"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width="+emailwidth    //Standard 640,800/788, 800/788
               + ",height="+emailheight  //Standard 480,600/541, 600/566               
               + ",top=25"              //Offset of windows top edge from screen.
               + ",left=75"             //Offset of windows left edge from screen.
               + ",screenX=25"          //Offset of windows left edge from screen.
               + ",screenY=75"          //Offset of windows left edge from screen.
               + ""; 

  strWinProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=yes"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=yes"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width="+intWidth    //Standard 640,800/788, 800/788
               + ",height="+intHeight  //Standard 480,600/541, 600/566               
               + ",top=25"             //Offset of windows top edge from screen.
               + ",left=75"            //Offset of windows left edge from screen.
               + ",screenX=25"         //Offset of windows left edge from screen.
               + ",screenY=75"         //Offset of windows left edge from screen.
               + ""; 

 strBioProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=yes"   //Displays scrollbars is document is larger than window.
               + ",titlebar=no"     //Enable/Disable titlebar resize capability.
               + ",width="+bioWidth    //Standard 640,800/788, 800/788
               + ",height="+bioHeight  //Standard 480,600/541, 600/566               
               + ",top=25"             //Offset of windows top edge from screen.
               + ",left=75"            //Offset of windows left edge from screen.
               + ",screenX=25"         //Offset of windows left edge from screen.
               + ",screenY=75"         //Offset of windows left edge from screen.
               + ""; 

  strPGProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=yes"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width="+PGWidth    //Standard 640,800/788, 800/788
               + ",height="+PGHeight  //Standard 480,600/541, 600/566               
               + ",top=25"              //Offset of windows top edge from screen.
               + ",left=75"             //Offset of windows left edge from screen.
               + ",screenX=25"             //Offset of windows left edge from screen.
               + ",screenY=75"             //Offset of windows left edge from screen.
               + ""; 

 
  strPicProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=yes"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=no"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width="+Picwidth    //Standard 640,800/788, 800/788
               + ",height="+Picheight  //Standard 480,600/541, 600/566               
               + ",top=25"              //Offset of windows top edge from screen.
               + ",left=75"             //Offset of windows left edge from screen.
               + ",screenX=25"             //Offset of windows left edge from screen.
               + ",screenY=75"             //Offset of windows left edge from screen.
               + ""; 
 
  strImgProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=yes"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=no"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width="+imgWidth    //Standard 640,800/788, 800/788
               + ",height="+imgHeight  //Standard 480,600/541, 600/566               
               + ",top=25"              //Offset of windows top edge from screen.
               + ",left=75"             //Offset of windows left edge from screen.
               + ",screenX=25"             //Offset of windows left edge from screen.
               + ",screenY=75"             //Offset of windows left edge from screen.
               + "";  

 strPFHProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=yes"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=no"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width="+pfhwidth    //Standard 640,800/788, 800/788
               + ",height="+pfhheight  //Standard 480,600/541, 600/566               
               + ",top=25"              //Offset of windows top edge from screen.
               + ",left=75"             //Offset of windows left edge from screen.
               + ",screenX=25"             //Offset of windows left edge from screen.
               + ",screenY=75"             //Offset of windows left edge from screen.
               + ""; 

strvtProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=no"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width="+vtwidth    //Standard 640,800/788, 800/788
               + ",height="+vtheight  //Standard 480,600/541, 600/566               
               + ",top=25"              //Offset of windows top edge from screen.
               + ",left=75"             //Offset of windows left edge from screen.
               + ",screenX=25"             //Offset of windows left edge from screen.
               + ",screenY=75"             //Offset of windows left edge from screen.
               + ""; 
 

}

init_pgp();
