function showLayer(id)
{
	var layerID = getElemRefs(id);
	if (layerID && layerID.css) layerID.css.visibility = "visible";
}
function hideLayer(id)
{
	var layerID = getElemRefs(id);
         if (layerID && layerID.css) layerID.css.visibility = "hidden";
}
function getElemRefs(id)
{
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}
function openFenster(link,fenster,weite,hoehe)
  {
  open(link,fenster,"width="+weite+",height="+hoehe+", resizable=yes,toolbar=no,scrollbars=yes");
  }

function addbookmark(bookmarkurl,bookmarktitle)
{
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

function changehanPic (id) {
   for (i = 0; i < document.tariffee.han01.length; ++i)
    if (document.tariffee.han01.options[i].selected == true)
	 bild = (document.tariffee.han01.options[i].value);
    var nupic = new Image()
	nupic.src = "http://device.geschaeftskundentarife.com/pic/"+bild+"m.jpg";
	var neuesbild = document.getElementById(id);
	neuesbild.src = nupic.src;
}
function changehanPic2 (id) {
   for (i = 0; i < document.tariffee.han02.length; ++i)
    if (document.tariffee.han02.options[i].selected == true)
	 bild = (document.tariffee.han02.options[i].value);
    var nupic = new Image()
	nupic.src = "http://device.geschaeftskundentarife.com/pic/"+bild+"m.jpg";
	var neuesbild = document.getElementById(id);
	neuesbild.src = nupic.src;
}
function FlashMovie(src, movie, width, height, version, quality, menu, bgcolor, flashvars)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0' width='" +width+ "' height='" +height+ "' id='" +movie+ "'>");
	document.write("<param name='movie' value='" +src+ "' />");
	document.write("<param name='FlashVars' value='" +flashvars+ "'>");
	document.write("<param name='quality' value='" +quality+ "' />");
	document.write("<param name='menu' value='" +menu+ "' />");
	document.write("<param name='bgcolor' value='" +bgcolor+ "' />");
	document.write("<embed src='" +src+ "' swLiveConnect='true' menu='" +menu+ "' FlashVars='" +flashvars+ "' quality='" +quality+ "' bgcolor='" +bgcolor+ "' width='" +width+ "' height='" +height+ "' name='" +movie+ "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}