



//  Force getElementById to work

if(!document.getElementById){
	if(document.all)
	document.getElementById=function(){
		if(typeof document.all[arguments[0]]!="undefined")
		return document.all[arguments[0]]
		else
		return null
	}
	else if(document.layers)
	document.getElementById=function(){
		if(typeof document[arguments[0]]!="undefined")
		return document[arguments[0]]
		else
		return null
	}
}




//  Show and Hide objects

function showObject(id) {
	document.getElementById(id).style.visibility = "visible";
}
function hideObject(id) {
	document.getElementById(id).style.visibility = "hidden";
}




//  Popup windows

function popWindow(windowURL,windowID) {
	//if (imageWidth == 0) imageWidth = screen.width;
	//if (imageHeight == 0) imageHeight = screen.height;
	var windowWidth = 320;
	var windowHeight = 400;
	var posX = screen.width - (windowWidth+80);
	var posY = (screen.height * 0.1);
	windowURL += "?popup=1";
	newWindow = window.open(windowURL,windowID,"width="+ windowWidth +",height="+ windowHeight +",scrollbars=yes,resizable=no,left="+ posX +",top="+ posY);
	newWindow.focus();
}



