// Function to Open a popup window
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=600,left = 250,top = 30');");
}

// Function to Open a popup window
function popUp2(URL,tbar,scbar,w,h) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar="+tbar+",scrollbars="+scbar+",location=0,statusbar=0,menubar=0,resizable=1,width="+w+",height="+h+",left = 175,top = 80');");
}

//Function to Refreash Map
function Refreshmap() {
    parent.main.document.location='map.asp?highlight=on';
}

//Function to Refreash Map
function Refreshmap2() {
    parent.main.document.location='map.asp?label=on';
}


//Function to get screen size 
function ScreenSize()
{
  var width = screen.width;
  parent.main.document.location='map.asp?w='+ width; 
  }


//Function to get screen size //**NOT BEING USED**  
function SetCookie()
{
  var today = new Date();
  var width = screen.width;
  var expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000);
  document.cookie = "ScreenWidth=" + width + ";expires=" + expiry.toGMTString(); 
  }



//Message box for Disclaimer  
function msgDisclaimer(){
     alert ("DISCLAIMER:\r The City of Vineland has made every effort to accurately verify all of the information contained as part of this web site.  However, some of the data provided is based on information obtained from other agencies and based on educated assumptions and estimates.  As a result, we encourage you to independently verify all the information contained herein since the city is unable to guarantee the accuracy of all the information provided." );
}

//Turn Loading Splash on/off
function splashload(splash, ValueShow){
      splash.style.visibility = ValueShow; 
}


//Makes sure bottom frame loads after top frame
function refreshFrame() {
frames['layers'].window.location.href = "l-uez.asp"; // frame 2's page
}


//Redirects the index page depending on the resolution
function redirectPage() {
var url640x480 = "index_800.htm";
var url800x600 = "index_800.htm";
var url1024x768 = "index_1024.htm";
if ((screen.width == 640) && (screen.height == 480)) 
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width > 1023) && (screen.height > 767))
window.location.href= url1024x768;
else window.location.href= url640x480;
}



