
function openWindow(){
	var pbwin;

	//set default window size and coordinates:
	var newWinW = 800, newWinHt = 600, x = 0, y = 0;

	//if (topLeft != 1) {
		if (parseInt(navigator.appVersion)>3) {
			if (navigator.appName=="Netscape") {
				//Find the X coordinate for the new window
				windowWidth = self.outerWidth;
				widthDif = Math.round(windowWidth - newWinW);
				x = self.screenX + widthDif/2 ;

				//Find the Y coordinate for the new window (
				windowHeight = self.outerHeight;
				heightDif = Math.round(windowHeight - newWinHt);
				y = (self.screenY + (heightDif/2)) - 20 ;
			}
			else if (navigator.appName.indexOf("Microsoft")!=-1) {
				//Find the X coordinate for the new window
				screenWidth = screen.width;
				windowWidth = document.body.offsetWidth;
				widthDif = Math.round(screenWidth-windowWidth); // - newWinW);
				widthDif = widthDif/2
				x = widthDif; //(self.screenLeft) widthDif/2 ;

				//Find the Y coordinate for the new window (
				screenHeight = screen.height;
				windowHeight = document.body.offsetHeight;
				heightDif = Math.round(screenHeight-windowHeight); // - newWinHt);
				heightDif = heightDif/2;
				y = heightDif-50; //(self.screenTop ); heightDif;///2 ;
			}
		}
	url = "register.aspx?bp="true"";

	//str = "width=1000,height=800"+","+"resizable=no, toolbar=no, status=no, menubar=no, scrollbars=no,top="+y+",left="+x+'"';
	str = "width="+newWinW+",height="+newWinHt+",resizable=no, toolbar=no, status=yes, menubar=no, scrollbars=yes,top="+y+",left="+x+'"';
	//str = "width=300, height=300," + "resizable=no, toolbar=no, status=no, menubar=no, scrollbars="+parScroll+",top="+y+",left="+x+'';
	pbwin = window.open(url,"register", str);
	pbwin.focus();
	return false;
}