// JavaScript Document

var pop //create global variable without assigning a value so that its value is null

function popUp(URL,w,h){

if(pop!=null && !pop.closed){ // if popUp has been opened, and popUp hasn't already been closed
pop.close() //close it in order to re-assign properties
}

if (!pop.closed && pop.location) {
	pop.location.href = URL;
} else {
	if(pop != null) pop = window.open(URL,"winMain","width="+w+",height="+h+",resizable=1,scrollbars=1");
	if (!pop.opener) pop.opener = self;
}

if (window.focus) {pop.focus()}
return false;
}


//

var newwindow = '';

function popitup(url) {
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	}
	else {
		newwindow=window.open(url,'name','height=200,width=150');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

//

<!--
//tmtC_winOpen
var winAdmin,winGallery,winManager,winWebmail,winChgPW,winReview,rightFrame,winSPR,winLogout,winNews,winCDBaby,winLink,winFlintRiver,winArticles,winFLV,winRTE;
//tmtC_winOpenEnd

function spr_winOpen(u,id,f,df){
	if(eval(id)==null||eval(id+".closed")){
	eval(id+"=window.open('"+u+"','"+id+"','"+f+"')");eval(id+".focus()");}
	else if(df){eval(id+".focus()");}
	else{eval(id+"=window.open('"+u+"','"+id+"','"+f+"')");eval(id+".focus()");}
}
//-->

function popSPR(url){	
winSPR = spr_winOpen(url,'winSPR','width=325,height=460,left=0,top=0,scrollbars=yes,status=yes,resizable=no',1);
}
//-->
