function showAndHide(id,childId,img,sepId){
    if (document.getElementById(childId).style.display!="none"){
        document.getElementById(childId).style.display="none";
        document.getElementById(id).style.backgroundColor="#ECECEC";
        img.src="p/layout/closed.gif";
        document.getElementById(sepId).style.backgroundColor="white";
    }         
    else {
        document.getElementById(childId).style.display="block";           
        document.getElementById(id).style.backgroundColor="white";
        img.src="p/layout/opened.gif";
        document.getElementById(sepId).style.backgroundColor="#ECECEC";
    }
}
function showHide(element,image,indicator) {
    if(indicator != null){
        if(indicator)
            document.getElementById(element).style.display = "inline";
        else
            document.getElementById(element).style.display = "none";
    }
    else {
        if(document.getElementById(element).style.display!="none"){
            document.getElementById(element).style.display = "none";
            if(image != null)
                document.getElementById(image).src="p/layout/icon_open.gif";
        }
        else {
            document.getElementById(element).style.display = "block";
            if(image != null)
                document.getElementById(image).src="";
        }
    }
}
function openUrl(selector) {
    if( selector != null && selector != "" ){
        //var fenster = window.open(selector.value,"popup","height=700,width=900,resizable=yes,location=yes,menubar=yes,toolbar=yes,status=yes,scrollbars=yes");
        //window.location.reload();
        //fenster.focus();
        window.location=selector.value;
    }
}

function openPlugIn(sURL, sFeatures)
{
window.open(sURL, "", sFeatures, "");
return false;
}

//--------------------- Change Links -----------------------//
/*
function changeLinks() { 
 
if(navigator.appName.indexOf("Explorer") != -1){
var allPageTags = new Array(); 
 var anchors = new Array();
 var allPageTags=document.getElementsByTagName("div"); 
   for (i=0; i<allPageTags.length; i++) { 
    if (allPageTags[i].className=="text_gray" || allPageTags[i].className=="text") { 
      anchors = allPageTags[i].getElementsByTagName("a");
      for (j=0; j<anchors.length; j++) { 
        L=anchors[j];
        L.innerHTML = L.innerHTML + " &raquo;";
      }
    } 
  } 
} 
}
*/


