function openWindow(url, name, menu, w, h) 
{  
	name = name + new Date().getTime();
	if(menu == 0){
		 popupWin = window.open(url, name, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width='+w+',height='+h+',left=100,top=100');
	}else{
		 popupWin = window.open(url, name, 'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=0,resizable=1,copyhistory=0,width='+w+',height='+h+',left=100,top=100');
	}
}
function pop(tpage)
{
	window.open(tpage,"Overview", "height=600,width=700,left=5,top=5,status=no,toolbar=no,menubar=no,location=no");
}
function toggleDiv(divid){
	if(document.getElementById(divid).style.display == 'none'){
      document.getElementById(divid).style.display = 'block';
      switch(divid)
      {
      	case 'general':
      		document.getElementById('generalstatus').innerHTML = ' - ';
      	case 'server':
      		document.getElementById('serverstatus').innerHTML = ' - ';
      }
    }else{
      document.getElementById(divid).style.display = 'none';
      switch(divid)
      {
      	case 'general':
      		document.getElementById('generalstatus').innerHTML = ' + ';
      	case 'server':
      		document.getElementById('serverstatus').innerHTML = ' + ';
      }
    }
}

function changeIframeSrc(id, url) {
    if (!document.getElementById) return;
    var el = document.getElementById(id);
    if (el && el.src) {
        el.src = url;
        return false;
    }
    return true;
}
