
////
// Open window function
////

if (window.location.href.split('/')[2] == 'www.nexgenre.com' || window.location.href.split('/')[2] == 'www.nexgen-re.com') {
	window.location = 'http://www.nexgen-reinsurance.com';
};

function popUp(whatURL, width, height){

	// set default window size if we do not have inputs for both width and height
	if  ( !((width > 0) && (height > 0)) ) {
		width = 660;
		height = 500;
	}

	// open window
	features = 'status=no,toolbar=no,location=no,menu=no,resizable=yes,scrollbars=yes,width=' + width + ',height=' + height;
	nexgenWindow = window.open(whatURL, 'nexgenWindow', features);

	if (navigator.appName == "Netscape") {
		// focus
		if (window.focus) nexgenWindow.focus();
	} else {
		// resize (neeeded in MSIE if Window was already open)
		if (window.resizeTo) nexgenWindow.resizeTo(width,height);
		// focus (delay needed for MSIE)
		if (window.focus) setTimeout('nexgenWindow.focus()',1000);
	}

}









