﻿
IE4 = document.all;

function newConfirm(title,mess,icon,defbut,mods) {
   if (IE4) {
      icon = (icon==0) ? 0 : 2;
      defbut = (defbut==0) ? 0 : 1;
      retVal = makeMsgBox(title,mess,icon,4,defbut,mods);
      retVal = (retVal==6);
   }
   else {
      retVal = confirm(mess);
   }
   return retVal;
}

var browserName=navigator.appName;

function showWindow(url){
    if (browserName=="Netscape")
    {
        window.open(url,"Link","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
    }
    else
    {
        if (browserName=="Microsoft Internet Explorer")
        {
            window.open(url,"Link","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
        }
    }
   }
   
function showControlledWindow(url){
    if (browserName=="Netscape")
    {
        window.open(url,"Link","toolbar=0,location=0,height=600,width=800,directories=0,status=1,menubar=0,scrollbars=1,resizable=1");
    }
    else
    {
        if (browserName=="Microsoft Internet Explorer")
        {
            window.open(url,"Link","toolbar=0,height=600,width=800,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1");
        }
    }
   }