function parameter(url, id)
{
	var popupURL = url+id;
	breite = 340;
	hoehe =  500;
	var modus = "width="+breite+", height="+hoehe+", dependent=0,toolbar=0,locationbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1";
	var popup = window.open(popupURL,"STREAM24", modus);
	popup.focus();
}

function inquiry_popup(url)
{
	var popupURL = url;
	breite = 580;
	hoehe =  330;
	var modus = "width="+breite+", height="+hoehe+", dependent=0,toolbar=0,locationbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1";
	var popup = window.open(popupURL,"STREAM24", modus);
	popup.focus();
}

function ondemand_edit(url, w, h)
{
   var padding;
   (navigator.appName == "Microsoft Internet Explorer") ? (padding = 10) : (padding = 0);

   var screenw = screen.availWidth;
   var screenh = screen.availHeight;
   var winw = (w + 15 + padding);
   var winh = (h + 15 + padding);
   var posx = (screenw / 2) - (winw / 2);
   var posy = (screenh / 2) - (winh / 2);
   var mywin = window.open(url,"mywin","top="+posy+",left="+posx+",width="+winw+",height="+winh+",menubar=no,locationbar=no,statusbar=no,resizable=yes,toolbar=no,dependent=yes,scrollbars=no");
   mywin.focus();
} 

function statuspopup(page, breit, hoch, sid)
{
	var popupURL = page;
	nr = sid;
	breite = breit;
	hoehe =   hoch;
	var modus = "width="+breite+", height="+hoehe+", dependent=0,toolbar=0,locationbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1";
	var popup = window.open(popupURL, nr, modus);
	popup.focus();
}


function reload_main(url)
{
	opener.location.href=url
}



function HideMP3Options(theValue) 
{ 
    var divs=document.getElementsByTagName("DIV"); 
    for (var i=0;i<divs.length;i++) 
    { 
        if (divs[i].className=="myDivs") 
        { 
        	divs[i].style.display=(( divs[i].id==theValue)?"none":"block"); 
        }
    } 
} 

function ShowMP3Options(theValue) 
{ 
    var divs=document.getElementsByTagName("DIV"); 
    for (var i=0;i<divs.length;i++) 
    { 
        if (divs[i].className=="myDivs") 
        { 
        	divs[i].style.display=(( divs[i].id==theValue)?"block":"none"); 
        }
    } 
} 


function check1(field) 
{
    if (field[0].checked == true) 
	{
        field[1].checked = false;
        field[2].checked = false;
    } 
} 

function check2(field) 
{
    if (field[1].checked == true) 
	{
        field[0].checked = false;
        field[2].checked = false;
    } 
} 

function check3(field) 
{
    if (field[2].checked == true) 
	{
        field[0].checked = false;
        field[1].checked = false;
    } 
} 

function HideRelaySettings(theValue) 
{ 
    var divs=document.getElementsByTagName("DIV"); 
    for (var i=0;i<divs.length;i++) 
    { 
        if (divs[i].className=="myDivs") 
        { 
        	divs[i].style.display=(( divs[i].id==theValue)?"none":"block"); 
        }
    } 
} 

function ShowRelaySettings(theValue) 
{ 
    var divs=document.getElementsByTagName("DIV"); 
    for (var i=0;i<divs.length;i++) 
    { 
        if (divs[i].className=="myDivs") 
        { 
        	divs[i].style.display=(( divs[i].id==theValue)?"block":"none"); 
        }
    } 
} 

function HideAllRelaySettings() 
{ 
	document.getElementById("relay").style.display="none"
	document.getElementById("masterrelay").style.display="none"
}


