function colorCambio(typ,color)
{
if (color=='a'){
  color='#FFCC33';
  } else{
  color='#ebcebe';
  }
typ.bgColor=color;
}
 

function imp(sub) {
  if (sub==''){
  sub='./';
 }
    pop1 = window.open(sub+"impressum.html","impressum","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=350,screenX=100,screenY=100");
}

function imp2(sub) {
  if (sub==''){
  sub='./';
 }
    pop1 = window.open(sub,"Anfrage","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=350,height=500,screenX=100,screenY=100");
}


function imp3(sub) {
  if (sub==''){
  sub='./';
 }
    pop1 = window.open(sub,"Anfrage","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=580,height=260,screenX=100,screenY=100");
}

 
 
function findObj(n) {
  if(!(x=document[n])&&document.all) x=document.all[n]; 
  if(!x && document.getElementById) x=document.getElementById(n); 
  return x;
}
 
 
function showMenu(id,v,event,height) {
  var obj=findObj(id); 
  if (obj.style) obj=obj.style;
  if(v) obj.visibility='visible';
  else obj.visibility='hidden';
  
  if(event) {
    if(event.layerX) {
      obj.left=event.pageX-event.layerX;
      obj.top=event.pageY-event.layerY+height;
    } else {
      obj.left=event.clientX-event.offsetX;
      obj.top=event.clientY-event.offsetY+height;
    }
    
  }
}

 
 

function formCheck(theForm)
{
  if (theForm.Name.value == "")
  {
    alert("Bitte teilen Sie uns Ihren Namen mit.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Telefon.value == "" && theForm.Email.value == "")
  {
    alert("Bitte geben Sie Ihre Telefonnummer oder Ihre Email-Adresse ein.");
    theForm.Telefon.focus();
    return (false);
  }

  return (true);
}
