

var pie, pns, pop, pie4, pie5, pie6, pns4, pns5, pns6
    pie = (navigator.appName == "Microsoft Internet Explorer");
    pns = (navigator.appName == "Netscape");
    pop = (navigator.appName == "Opera");
    pie4 = (navigator.userAgent.indexOf("MSIE 4") > 0);
    pie5 = (navigator.userAgent.indexOf("MSIE 5") > 0);
    pie6 = (navigator.userAgent.indexOf("MSIE 6") > 0);
    pns4 = (pns && parseInt(navigator.appVersion) == 4);
    pns5 = (pns && parseInt(navigator.appVersion) == 5);
    pns6 = (pns && parseInt(navigator.appVersion) == 6);


function popUp(URL,wid,heg) {
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=' + wid +',height=' + heg + ',left=0,top=0');");
}

function popCity(URL,wid,heg) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' + wid +',height=' + heg + ',left=0,top=0');");
}

function popasp(URLASP) {
var aspop=window.open(URLASP,"MyWindow",'width=580,height=300,toolbar=0,scrollbars=1,location=0,menubar=0,directories=0,status=0, left=0, top=0');

aspop.focus();
}	





function popOther(URLOther) {
var Otherpop;

  if (pie4 || pie5 || pie6) {   Otherpop=window.open(URLOther,"MyWindow",'width=274,height=365,toolbar=0,scrollbars=0,location=0,menubar=0,directories=0,status=0, left=0, top=0');

  Otherpop.focus();
  }

  else if (pns4 || pns5 || pns6) {   Otherpop=window.open(URLOther,"MyWindow",'width=350,height=365,toolbar=0,scrollbars=0,location=0,menubar=0,directories=0,status=0, left=0, top=0');

  Otherpop.focus();
  }
  else {
Otherpop=window.open(URLOther,"MyWindow",'width=274,height=365,toolbar=0,scrollbars=0,location=0,menubar=0,directories=0,status=0, left=0, top=0');

  Otherpop.focus();
  }
}

function popCC(URLCC,ccWidth,ccHeight) {
var ccpop=window.open(URLCC,"MyWindow",'width='+ccWidth+',height='+ccHeight+',toolbar=0,scrollbars=1,location=0,menubar=0,directories=0,status=0, left=0, top=0');

ccpop.focus();
}	


function basicpop(BASICURL) {
var basicW = screen.width;
var basicH = screen.height-30;
var basicpop=window.open(BASICURL,"MyWindow",'width='+basicW+',height='+basicH+',resizable=1,toolbar=1,scrollbars=1,location=1,menubar=1,directories=1,status=1,left=0,top=0');

basicpop.focus();
}	