function Popup(mypage, myname, w, h) {
	//alert(mypage);
	if (navigator.appVersion.indexOf("AOL") != -1)
    {
      newHeight = h + 25;
      newWidth = w + 25;
      winprops = 'height=' + newHeight + ',width=' + newWidth + ',scrollbars=2'
      win = window.open(mypage, myname, winprops);
    }
    else if (navigator.appVersion.indexOf("mac") != -1 && is_ie5up)
    {
      newHeight = h;
      newWidth = w - 16;
      winprops = 'height=' + newHeight + ',width=' + newWidth + ',scrollbars=2'
      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=2'
      win = window.open(mypage, myname, winprops);
      win.window.focus();
     }
     else
     {
      newHeight = h + 25;
      newWidth = w + 25;
      winprops = 'height=' + newHeight + ',width=' + newWidth + ',scrollbars=2'
      win = window.open(mypage, myname, winprops);
     } 
    }
   } 
   
   function PopupScroll(mypage, myname, w, h, scroll, toolbar) {
 	//scroll = 'yes';
	if (toolbar == 'no')
		{	toolbar = 'no';	}
	else
		{	toolbar = 'yes'; 	}
	
	if (scroll == 'no')
		{	scroll = 'no';		}
	else
		{	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 (navigator.appVersion.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 +',resizable=yes'
      //alert(winprops);
      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+',resizable=yes'
      //alert(winprops);
      win = window.open(mypage, myname, winprops);
     } 
    }
    return false;
   } 
   
   function PopupScrollWithResize(mypage, myname, w, h, scroll, toolbar,resizable) {

      //scroll = 'yes';

      if (toolbar == 'no')

            {     toolbar = 'no';   }

      else

            {     toolbar = 'yes'; }

      

      if (scroll == 'no')

            {     scroll = 'no';          }

      else

            {     scroll = 'yes';         }

      if (resizable == 'no')

            {     resizable = 'no';       }

      else

            {     resizable = 'yes';            }     

    if (navigator.appVersion.indexOf("AOL") != -1)

    {

      newHeight = h + 25;

      newWidth = w + 25;

      winprops = 'height=' + newHeight + ',width=' + newWidth+',scrollbars='+scroll+',resizable='+resizable+',toolbar='+toolbar

      win = window.open(mypage, myname, winprops);

    }

    else if (navigator.appVersion.indexOf("mac") != -1 && is_ie5up )

    {

      newHeight = h;

      newWidth = w - 16;

      winprops = 'height=' + newHeight + ',width=' + newWidth+',scrollbars='+scroll+',resizable='+resizable+',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+',resizable='+resizable+',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+',resizable='+resizable+',toolbar='+toolbar

      win = window.open(mypage, myname, winprops);

     } 
    }
      return false;
   }
   
  