<!--
function new_window(theURL,winName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true") {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function new_imagepopup(theURL,winName,altName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true") {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  imagepopup = window.open('','',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
  with (imagepopup) {
    document.open();
    document.write('<title>'+winName+'</title>');
    document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
    document.write('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll=\"no\">'
  )
  document.write('<a href=\"javascript:self.close()\">');
  document.write('<img src=\"'+theURL+'\" border=\"0\" alt=\"'+altName+'\" title=\"'+altName+'\">')
  document.close();}
}

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    for (var i=0; i<preloadImages.arguments.length; i++) {
      rslt = newImage(preloadImages.arguments[i]);
    }
    preloadFlag = true;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

function checkkontakt()
{

	if (document.contactmailform.vorname.value =="") {
	 	alert("Sie haben keinen Vornamen angegeben!\n");
	  document.contactmailform.vorname.focus();
	  return false;
	 }

	if (document.contactmailform.name.value =="") {
	 	alert("Sie haben keinen Namen angegeben!\n");
	  document.contactmailform.name.focus();
	  return false;
	 }


	if (document.contactmailform.email.value!="") {
		if (document.contactmailform.email.value.indexOf('@',0)==-1 || document.contactmailform.email.value.indexOf('.',0)==-1) {
			alert("Die eingegebene E-Mail Adresse ist nicht korrekt!\n");
			document.contactmailform.email.focus();
		  return false;
		}
	}
	else {
		alert("Sie haben keine E-Mail Adresse angegeben!\n");
		document.contactmailform.email.focus();
		return false;
	}

	if (document.contactmailform.anliegen.value =="") {
	 	alert("Sie haben kein Anliegen angegeben!\n");
	  document.contactmailform.anliegen.focus();
	  return false;
	 }
	
}  

function checkorder()
{

	if (document.contactmailform.vorname.value =="") {
	 	alert("Sie haben keinen Vornamen angegeben!\n");
	  document.contactmailform.vorname.focus();
	  return false;
	 }

	if (document.contactmailform.name.value =="") {
	 	alert("Sie haben keinen Namen angegeben!\n");
	  document.contactmailform.name.focus();
	  return false;
	 }

	if (document.contactmailform.firma.value =="") {
	 	alert("Sie haben keinen Firmennamen angegeben!\n");
	  document.contactmailform.firma.focus();
	  return false;
	 }

	if (document.contactmailform.anschrift.value =="") {
	 	alert("Sie haben keine Anschrift angegeben!\n");
	  document.contactmailform.anschrift.focus();
	  return false;
	 }


	if (document.contactmailform.plz.value == "") {
	 	alert("Sie haben keine Postleitzahl angegeben!\n");
	  document.contactmailform.plz.focus();
	  return false;
	 }
	else { 
		var chkZ = 1;
		for(i=0;i<document.contactmailform.plz.value.length;++i)
		   if(document.contactmailform.plz.value.length < "5"
		   ||document.contactmailform.plz.value.charAt(i) < "0"
		   || document.contactmailform.plz.value.charAt(i) > "9")
		     chkZ = -1;
		 if(chkZ == -1) {
		   alert("Die Postleitzahl ist falsch!");
		   document.contactmailform.plz.focus();
		   return false;
		  }
	 }

	if (document.contactmailform.ort.value =="") {
	 	alert("Sie haben keinen Ort angegeben!\n");
	  document.contactmailform.ort.focus();
	  return false;
	 }

	if (document.contactmailform.telefon.value =="") {
	 	alert("Sie haben keine Telefonnummer angegeben!\n");
	  document.contactmailform.telefon.focus();
	  return false;
	 }

	if (document.contactmailform.email.value!="") {
		if (document.contactmailform.email.value.indexOf('@',0)==-1 || document.contactmailform.email.value.indexOf('.',0)==-1) {
			alert("Die eingegebene E-Mail Adresse ist nicht korrekt!\n");
			document.contactmailform.email.focus();
		  return false;
		}
	}
	else {
		alert("Sie haben keine E-Mail Adresse angegeben!\n");
		document.contactmailform.email.focus();
		return false;
	}
	
}

		if (document.images) {
		
		  var openNewWin=false;
		
		  var onLoadBeforeImage=null;
		  var winName='neuwin';
		  var ct=0;
			
		}
		

function popup(title,pic,size)
		{
		  var BildGroesse = size.split('x');
		  nname=title;
		  var ModX=0, ModY=0;
		  if (!document.layers && !document.all) { ModX=20;ModY=30; }
		  var breite=parseInt(BildGroesse[0])+ModX;
		  var hoehe=parseInt(BildGroesse[1])+ModY;
		  var Param = 'width='+breite+',height='+hoehe+',directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0';
		  if (document.layers)
		    Param += ',screenX='+(screen.width/2-breite/2)+',screenY='+(screen.height/2-hoehe/2);
		  else if (document.all)
		    Param += ',left='+(screen.width/2-breite/2)+',top='+(screen.height/2-hoehe/2);
		
		  if(!openNewWin)
		    if (window[winName] && !window[winName].closed)
		      window[winName].close();
		
		  winName='neuwin'+(ct++);
		  window[winName] = window.open('', winName, Param);

		  with (window[winName].document) {
		    open();
		    write('<html>\n<head>\n<title>'+nname+'</title>\n</head>\n');
		    write('<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>\n');
		    write('  <a href="javascript:self.close()"><img src="'+pic+'" width='+BildGroesse[0]+' height='+BildGroesse[1]+' border=0 alt='+nname+'></a>\n');
		    write('</body>\n</html>\n');
		    close();
		  }
		
		}

//-->