function popUp(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=650,left = 290,top = 162');");
}

function popup_image(URL, WIDTH, HEIGHT)
{
	TOP = (screen.height-HEIGHT)/2;
	LEFT = (screen.width-WIDTH)/2;
	FEATURES = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+WIDTH+',height='+HEIGHT+',left='+LEFT+',top='+TOP;
	day = new Date();
	ID = day.getTime();	// calc unique ID for target window
	new_window = window.open(URL, ID, FEATURES);
}

//------------------------
// from nytimes.com
//------------------------
function nameIt() {
	window.name = 'nytimesmain';
	if (navigator.appName == "Microsoft Internet Explorer") {
		document.all.globalsearchform.style.visibility = "visible";
	}
}

function pop_me_up(pURL,features){ 
	new_window = window.open(pURL, "popup_window", features);
	new_window.focus();
}

function pop_me_up2(pURL,name,features){
	new_window = window.open(pURL,name,features);
	new_window.focus();
}

function changeImage(image_name,image_src) {
	document.images[image_name].src = image_src;
}

function goToURL(obj){
	var f = (obj.section) ? obj : obj.form;
	var selected = f.section.selectedIndex;
	var URL = f.section.options[selected].value;
	if (URL != "") document.location = URL;
	return false;
}

if (window.self != window.top) { 
	top.location.replace(window.location.pathname); 
}
