// JavaScript Document
function popUp(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=760,height=570,left = 132,top = 99');");}

function ex(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=1000,height=768,left = 0,top = 0');");}

function al(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=998,height=760,left = 0,top = 0');");}

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v5.0
  var newURL='', userAgent=navigator.userAgent, version=0;
  if (userAgent.indexOf('Netscape') != -1) {
  	version = parseFloat(userAgent.substring(userAgent.indexOf('Netscape')+9,userAgent.length));
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?al(URL):ex(altURL);}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?al(URL):ex(altURL);}
  } else if (userAgent.indexOf('MSIE') != -1) {
  	version = parseFloat(userAgent.substring(userAgent.indexOf('MSIE')+4,userAgent.length));
    if (version >= IEvers)
     {if (IEpass>0) newURL=(IEpass==1)?al(URL):ex(altURL);}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?al(URL):ex(altURL);}
  } else if (OBpass>0) newURL=(OBpass==1)?al(URL):ex(altURL);
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}
