
function popupMaster(sURL, iWidth, iHeight) { 
	posLeft = (screen.width - iWidth)/2; posTop = (screen.height - iHeight)/2; 
	hPopup = window.open(sURL, 'EDIT'+Math.round(Math.random() * 10000), 'left='+posLeft+',top='+posTop+',width=' + iWidth + ',height=' + iHeight + ',resizable=no,scrollbars=0'); 
	hPopup.focus(); 
}

function sideToggle(item) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   key=document.getElementById("x" + item);
   if (visible) {
     obj.style.display="none";
   } else {
      obj.style.display="block";
   }
}

function setDisplay(elementID,state)
{
	if(state == "hide")
	{
		document.getElementById(elementID).style.display = 'none';
	}
	else
	{
		document.getElementById(elementID).style.display = 'block';
	}
}