    var agt=navigator.userAgent.toLowerCase();
    var appVer = navigator.appVersion.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    
function Popup(mypage, myname, w, h) {
	var strURL = window.location.pathname;
	var re = /\./g;
	var re1 = /\//g
	strURL = strURL.replace(re,"REPLACEDOT");
	strURL = strURL.replace(re1,"REPLACESLASH");
	
	if(mypage.indexOf("?") == -1){
		mypage += '?HTTP_REFERER=' + escape(strURL);
	}else{
		mypage += '&HTTP_REFERER=' + escape(strURL);
	}
	
    if (navigator.appVersion.indexOf("AOL") != -1)
    {
      newHeight = h + 25;
      newWidth = w +25;
      winprops = 'height=' + newHeight + ',width=' + newWidth
      win = window.open(mypage, myname, winprops);
    }
    else if (appVer.indexOf("mac") != -1 && is_ie5up)
    {
      newHeight = h;
      newWidth = w - 16;
      winprops = 'height=' + newHeight + ',width=' + newWidth
      win = window.open(mypage, myname, winprops);
    }
    else
    {
     if (parseInt(navigator.appVersion) >= 4)
     {
      var offsetW = (screen.width - w) / 2;
      var offsetH = (screen.height - h) / 2;
      winprops = 'height='+ h +',width='+ w +',top='+ offsetH +',left='+ offsetW
      win = window.open(mypage, myname, winprops);
      win.window.focus();
     }
     else
     {
      newHeight = h + 25;
      newWidth = w + 25;
      winprops = 'height=' + newHeight + ',width=' + newWidth
      win = window.open(mypage, myname, winprops);
     } 
    }
   } 


function PopupPlus(mypage, myname, w, h, properties) {
	var strURL = window.location.pathname;
	var re = /\./g;
	var re1 = /\//g
	strURL = strURL.replace(re,"REPLACEDOT");
	strURL = strURL.replace(re1,"REPLACESLASH");
	
	if(mypage.indexOf("?") == -1){
		mypage += '?HTTP_REFERER=' + escape(strURL);
	}else{
		mypage += '&HTTP_REFERER=' + escape(strURL);
	}
	
    if (navigator.appVersion.indexOf("AOL") != -1)
    {
      newHeight = h + 25;
      newWidth = w +25;
      winprops = 'height=' + newHeight + ',width=' + newWidth + ',' + properties
      win = window.open(mypage, myname, winprops);
    }
    else if (appVer.indexOf("mac") != -1 && is_ie5up)
    {
      newHeight = h;
      newWidth = w - 16;
      winprops = 'height=' + newHeight + ',width=' + newWidth + ',' + properties
      win = window.open(mypage, myname, winprops);
    }
    else
    {
     if (parseInt(navigator.appVersion) >= 4)
     {
      var offsetW = (screen.width - w) / 2;
      var offsetH = (screen.height - h) / 2;
      winprops = 'height='+ h +',width='+ w +',top='+ offsetH +',left='+ offsetW + ',' + properties
      win = window.open(mypage, myname, winprops);
      win.window.focus();
     }
     else
     {
      newHeight = h + 25;
      newWidth = w + 25;
      winprops = 'height=' + newHeight + ',width=' + newWidth + ',' + properties
      win = window.open(mypage, myname, winprops);
     } 
    }
   } 
   
function PopupScroll(mypage, myname, w, h, scroll, toolbar) {
	scroll = 'yes';
    if (navigator.appVersion.indexOf("AOL") != -1)
    {
      newHeight = h + 25;
      newWidth = w + 25;
      winprops = 'height=' + newHeight + ',width=' + newWidth+',scrollbars='+scroll+',toolbar='+toolbar
      win = window.open(mypage, myname, winprops);
    }
    else if (appVer.indexOf("mac") != -1 && is_ie5up )
    {
      newHeight = h;
      newWidth = w - 16;
      winprops = 'height=' + newHeight + ',width=' + newWidth+',scrollbars='+scroll+',toolbar='+toolbar
      win = window.open(mypage, myname, winprops);
    }
    else
    {
     if (parseInt(navigator.appVersion) >= 4)
     {
      var offsetW = (screen.width - w) / 2;
      var offsetH = (screen.height - h) / 2;
      winprops = 'height='+ h +',width='+ w +',top='+ offsetH +',left='+ offsetW+',scrollbars='+scroll+',toolbar='+toolbar
      win = window.open(mypage, myname, winprops)
      win.window.focus();
     }
     else
     {
      newHeight = h + 25;
      newWidth = w + 25;
      winprops = 'height=' + newHeight + ',width=' + newWidth+',scrollbars='+scroll+',toolbar='+toolbar
      win = window.open(mypage, myname, winprops);
     } 
    }
   } 
   <!-- new popup -->
 function Popupmenu(URL) 
{
  var popup = window.open("Popupmenu",'toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=795,height=430');
  if(navigator.appName.substring(0,8) == 'Netscape')
  {
    popup.location = popupURL;
  }
}

