function act(imgName) {
  if (document.images) 
    document.images[imgName].src = eval(imgName + "a.src");
}

function inact(imgName) {
  if (document.images)
    document.images[imgName].src = eval(imgName + "n.src");
}

var newWindow
function openwindow(url) {
	newWindow=window.open(url,'popup','width=500,height=400,toolbar=no,copyhistory=yes,scrollbars=yes,resizable=yes,directories=no,menubar=yes,status=yes,location=yes');
}
var popWindow = '';
function popUp(url,name,features) {
	if (!popWindow.location){
		popWindow = window.open(url,name,features);
		popWindow.focus()
	}
	else {
	    popWindow.close();
		popWindow = window.open(url,name,features);
		popWindow.focus()
	}
}

var tracker=null;
function writeNow(obj) {
var iedom=document.getElementById
if (iedom){
if (tracker==null){tracker=obj}
document.getElementById(tracker).style.visibility = "hidden";
document.getElementById(obj).style.visibility = "visible";
tracker=obj;
}
else if (document.layers){
if (tracker==null){tracker=obj}
document.layers[tracker].visibility = "hide";
document.layers[obj].visibility = "show";
tracker=obj;} 
}

