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

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


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








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



