<!--
function fixPNG(myImage) // correctly handle PNG transparency in Win IE 5.5 or higher.
   {
    if (window.ie55up)
	 {
	 var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	 var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	 var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
	 var imgStyle = "display:inline-block;" + myImage.style.cssText 
	 var strNewHTML = "<span " + imgID + imgClass + imgTitle
	 strNewHTML += " style=\"" + "width:" + myImage.width + "px; height:" + myImage.height + "px;" + imgStyle + ";"
	 strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	 strNewHTML += "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>" 
	 myImage.outerHTML = strNewHTML
	 }
   }

function showLayer()
  {
  document.getElementById("layer").style.display = "block";
  document.getElementById("desc").style.display = "none";
  }


function hideLayer()
  {
  document.getElementById("layer").style.display = "none";
  }


function validate()
  { 
  var err; 
  err=0;

    if (document.bestellung.nname.value=="")
      { 
      document.bestellung.ERROR.value = '*Fehler: Geben Sie bitte Ihren Namen ein';err=1; 
      return false 
      }
    else document.bestellung.ERROR.value = ''; 

    if (document.bestellung.vname.value=="")
      { 
      document.bestellung.ERROR.value = '*Fehler: Geben Sie bitte Ihren Vornamen ein';err=1; 
      return false 
      }
    else document.bestellung.ERROR.value = ''; 

    if (document.bestellung.str.value=="")
      { 
      document.bestellung.ERROR.value = '*Fehler: Strasse fehlt';err=1; 
      return false 
      }
    else document.bestellung.ERROR.value = ''; 

    if (document.bestellung.plz.value=="")
      { 
      document.bestellung.ERROR.value = '*Fehler: Postleitzahl fehlt';err=1; 
      return false 
      }
    else document.bestellung.ERROR.value = ''; 

    if (document.bestellung.ort.value=="")
      { 
      document.bestellung.ERROR.value = '*Fehler: Ortsname fehlt';err=1; 
      return false 
      }
    else document.bestellung.ERROR.value = ''; 

    if (document.bestellung.tel.value=="")
      { 
      document.bestellung.ERROR.value = '*Fehler: Telefonnummer fehlt';err=1; 
      return false 
      }
    else document.bestellung.ERROR.value = '';

    if (document.bestellung.email.value.search("@") == -1 || document.bestellung.eMail.value.search("[.*]") == -1)
      { 
      document.bestellung.ERROR.value = '*Fehler: eMail-Adresse prüfen';err=1; 
      return false
      }
    else document.bestellung.ERROR.value = ''; 

    if (document.bestellung.agb.checked=="0")
      { 
      document.bestellung.ERROR.value = 'Die AGB müssen akzeptiert werden';err=1; 
      return false 
      }
    else document.bestellung.ERROR.value = ''; 
  } 



// tooltip
wmtt = null;
document.onmousemove = updateWMTT;

function updateWMTT(e)
  {
  x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
  y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
  if (wmtt != null)
    {
	wmtt.style.left = (x + 20) + "px";
	wmtt.style.top 	= (y + 20) + "px";
	}
  }

function showWMTT(id)
  {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"
  }

function hideWMTT()
  {
  wmtt.style.display = "none";
  }



//-->
