function centerPop(popURL,popWidth,popHeight) {
   if (document.all)
      var xMax = screen.width, yMax = screen.height;
   else
      if (document.layers)
        var xMax = window.outerWidth, yMax = window.outerHeight;
          else
            var xMax = 640, yMax=480;
   var xOffset = (xMax - popWidth)/2, yOffset = (yMax - popHeight)/2 - 50;
   window.open(popURL,'','width='+popWidth+',height='+popHeight+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',scrollbars=yes,resizable=no,menubar=no,toolbar=no,location=no,directories=no,status=no');
}

function popup(url,width,height,winname) { 
	var url, width, height; 
	if (width == null) { width = 550; } // default width 
	if (height == null) { height = 350; } // default height 
	var xleft, xtop; if (document.all) { 
		xleft = (screen.width - width) / 2; 
		xtop = (screen.height - height) / 2; 
	} else { 
		if (document.layers) { 
			xleft = (window.outerWidth - width) / 2; 
			xtop = (window.outerHeight - height) / 2; 
		} else { 
			xleft = 320; 
			xtop = 240; 
		}
	}
	win=window.open("",winname,'toolbar=no,location=no,directories=no,status=no' 
	+',menubar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height 
	+'screenX='+xleft+',screenY='+xtop+',top='+xtop+',left='+xleft); 
	win.document.write('<head><title>DestinationSaipan</title></head>');
	win.document.write('<body leftmargin="0" topmargin="0">');
	win.document.write('<a href="javascript:window.close()"><img src="'+url+'" border="0"></a>'); 
	win.document.write('</body>'); 
}