// JavaScript Document

function swapImage(imgName,theSrc) {
	eval("document.images."+imgName+".src='"+theSrc+"'");
}

function confirmSubmit(text){
	var agree = confirm(text);
	if(agree){
		return true;
	}else{
		return false;
	};
};

popUp = 0;

function popWinC(URL,name,w,h){
	if(popUp){
		popUp.close();
	};
	var winPosX = (screen.width - w)*.5;
	var winPosY = (screen.height - h)*.5;
	if(screen.width > (screen.height*2)){
		winPosX = ((screen.width*.5)-w)*.5;
	};
	props = 'height='+h+',width='+w+',top='+winPosY+',left='+winPosX;
	popUp=window.open(URL,name,props);
	popUp.focus();
};