
window.onerror=null;
var win = null;

function NewWindow(mypage, myname, w, h, scroll) {
	closePopWin();

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize';
	
	if( mypage.indexOf("bmLocale") < 0 ) {
		if( mypage.indexOf("?") < 0 ) {   
			mypage = mypage + "?";
		}
		else {
			mypage = mypage + "&";
		}
		mypage = mypage + "bmLocale=en_US";    
	}

	win = window.open(mypage, myname, winprops);
}

function closePopWin() {
	if(win != null) { 
		if(!win.closed) { 
			win.close();
			win = null;
		} else {
			win = null;
		}
	}
}

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('</SCRIPT\> \n');
}
