
function turnOn(dname) {
	document.getElementById(dname).style.visibility = "visible";
}
function turnOff(dname) {
	document.getElementById(dname).style.visibility = "hidden";
}
function changeToBold(dname){
    document.getElementById(dname).style.fontWeight = "bold";
}
function changeBackNotBold(dname){
    document.getElementById(dname).style.fontWeight = "normal";
}

function openWindow (url)
{
    obj = window.open(url);
    obj.focus();
}
// popup- window configuration

// only show popup if ShowPopup = 1  
var ShowPopup

function setShowPopup(bool)
{
    ShowPopup = bool 
}

function OpenTB(dhref)
{
    //var P=window.location.protocol + "//" + window.location.host + dhref;
    //alert("setHRef " + dhref + " P=" + P);
    popupTB = window.open(dhref,"TBPopup","width=700,height=500,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
    popupTB.focus();
}
function setHRef(dpopup,dhref)
{
    //var P=window.location.protocol + "//" + window.location.host + dhref;
    //alert("setHRef " + dhref + " P=" + P);
    document.getElementById(dpopup).setAttribute("src", dhref, 0);
}

function showFrame(dname)
{
	if (ShowPopup==1)
	{
        document.getElementById(dname).style.visibility = "visible";
	}
	else
	{
	    document.getElementById(dname).style.visibility = "hidden";
	}
}

function hideFrame(dname) 
{
	var ele = parent.document.getElementById(dname);
	if(ele == null)
	    window.close();
	else
	    ele.style.visibility = "hidden";
}


