



//  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
  }
}




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




function popWindow(windowURL, windowID, windowWidth, windowHeight) {

	var posX = ((screen.width / 2) - ((windowWidth) / 2))
	var posY = ((screen.height / 2) - ((windowHeight) / 2))
	newWindow = window.open(windowURL,windowID,"width="+ windowWidth +",height="+ windowHeight +",scrollbars=no,resizable=no,left="+ posX +",top="+ posY);
	newWindow.focus();
}








