// for targed links in the popup window
window.name = "paternot_main";
this.focus();


// pop up window
var docs_popup;
var spPhoto;

// If the window already exists (but closed or in the background) bring it to the foreground.  Otherwise, open it.
function popup(url, name, w, h) {

	var temp;
	eval('temp = ' + name);
	
	if (!w) {w = 460;}
	if (!h) {h = 500;}

	temp = window.open(url, name, 'width=' + w + ',height=' + h + ',scrollbars,resizable');
	if (goodBrowser()) {
		temp.focus();
	}

	eval(name + ' = temp');
}

function goodBrowser() {

	if ( (navigator.appName == "Netscape" && (navigator.appVersion.substring(0,1) >= "3") ) || 
		(navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.substring(0,1) >= "4") ) ) {
		return true;
	} else {
		return false;
	}
}
