function fenster_open_js(string,w_width,w_height,w_left,nr)
	{
        fenster=window.open(string,'fenster_open'+nr,'dependent=yes,toolbar=no,left='+w_left+',top=0,directories=no,status=yes,scrollbars=yes,menubar=yes,resizable=yes,width='+w_width+',height='+w_height);
		if(fenster.focus != null)fenster.focus();
       }  		

function fenster_open_hlk(string,w_width,w_height,w_left,nr)
	{
        fenster=window.open(string,'fenster_open'+nr,'dependent=no,toolbar=no,left='+w_left+',top=220,directories=no,status=no,location=no,scrollbars=yes,menubar=no,resizable=yes,width='+w_width+',height='+w_height);
		if(fenster.focus != null)fenster.focus();
       }  		
	   
	   
function fenster_open_fl(string)
	{   
	   var file_sel = 1;
	   if(file_sel == 1){ 
		  //string = ('files/' + string); 
          datei=window.open(string,"displayWindow","toolbar=no,width=720,height=580,left=100,top=0,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,location=no");
		  if(datei.focus != null)datei.focus();
          }        
	   }          	   
  
function fenster_open_output_table(string,w_width,w_height,w_left,nr,w_file)
	{
	
	   //Printaugabe CAD-Symbole 
	   if(w_file == 12){
		 string = ('p_global_info_open_10.php?' + string);
	   //Excelausgabe CAD-Symbole  
	   }else if(w_file == 22){ 
	      string = "p_symbib_excel_01.php?<?=SID?>";
		 // string = ('p_symbol_excel_01.php?<?=SID?>' + string);				  
	   }	   		 
		 
		  
        fenster=window.open(string,'fenster_open'+nr,'dependent=yes,toolbar=no,left='+w_left+',top=0,directories=no,status=yes,scrollbars=yes,menubar=yes,resizable=yes,width='+w_width+',height='+w_height);
		if(fenster.focus != null)fenster.focus();
         		
     }//end function		  

function CheckAriFormularEk(mesg_1,mesg_2,mesg_3,mesg_4,mesg_5,mesg_6,mesg_7,mesg_8,mesg_9,mesg_10,mesg_11,mesg_12)
    {

     if(document.formek.ansprechpartner.value == "")
      {
	   alert (mesg_2);
       document.formek.ansprechpartner.focus();
       return false;
      }

     if(document.formek.firma.value == "")
      {
	   alert (mesg_1);
       document.formek.firma.focus();
       return false;
      }

     if(document.formek.strasse.value == "")
      {
       alert (mesg_3);
       document.formek.strasse.focus();
       return false;
      }

     if(document.formek.plz.value == "")
      {
       alert (mesg_4);
       document.formek.plz.focus();
       return false;
      }

     //var plzzahl = 1;
     //  for(i=0;i<document.formek.plz.value.length;++i)
     //    if(document.formek.plz.value.charAt(i) < "0"
     //    || document.formek.plz.value.charAt(i) > "9")
     //      plzzahl = -1;
     //  if(plzzahl == -1)
     //  {
     //    alert (mesg_5);
     //    document.formek.plz.focus();
     //    return false;
     //   }

     if(document.formek.ort.value == "")
      {
       alert (mesg_6);
       document.formek.ort.focus();
       return false;
      }

     if(document.formek.telefon.value == "")
      {
       alert (mesg_7);
       document.formek.telefon.focus();
       return false;
      }	  
	  
     if(document.formek.fax.value == "")
      {
       alert (mesg_8);
       document.formek.fax.focus();
       return false;
      }	  
	  
     if(document.formek.email.value == "")
      {
       alert (mesg_9);
       document.formek.email.focus();
       return false;
      }

     if(document.formek.email.value.indexOf('@') == -1)
      {
       alert (mesg_10);
       document.formek.email.focus();
       return false;
      }

     if(document.formek.qm1.value == "" ||
	    document.formek.qm2.value == "" ||
	    document.formek.qm3.value == "" ||
		document.formek.qm4.value == "" )
	 	 
      {
       alert (mesg_11);
       //document.formek.qm1.focus();
       return false;
      }
  
     if(document.formek.branche.value == "")
      {
       alert (mesg_12);
       document.formek.branche.focus();
       return false;
      }	  
     if(document.formek.fertigungsprogramm.value == "")
      {
       alert (mesg_13);
       document.fertigungsprogramm.focus();
       return false;
      }	  
   }//end function

function CheckAriFormularKontakt(mesg_1,mesg_2,mesg_3,mesg_6,mesg_9,mesg_10)
    {
     if(document.kontakt.Firma.value == "")
      {
	   alert (mesg_1);
       document.kontakt.Firma.focus();
       return false;
      }

     if(document.kontakt.Ansprechpartner.value == "")
      {
	   alert (mesg_2);
       document.kontakt.Ansprechpartner.focus();
       return false;
      }

     if(document.kontakt.Strasse.value == "")
      {
       alert (mesg_3);
       document.kontakt.Strasse.focus();
       return false;
      }

     if(document.kontakt.Ort.value == "")
      {
       alert (mesg_6);
       document.kontakt.Ort.focus();
       return false;
      }

     if(document.kontakt.email.value == "")
      {
       alert (mesg_9);
       document.kontakt.email.focus();
       return false;
      }

     if(document.kontakt.email.value.indexOf('@') == -1)
      {
       alert (mesg_10);
       document.kontakt.email.focus();
       return false;
      }
   }//end function

function CheckAriFormular()
    {
     if(document.Formular1.Firma.value == "")
      {
       alert("Bitte geben Sie den Firmennamen ein!");
       document.kontakt.Firma.focus();
       return false;
      }

     if(document.kontakt.Name.value == "")
      {
       alert("Bitte geben Sie Ihren Namen ein!");
       document.kontakt.Name.focus();
       return false;
      }

     if(document.kontakt.Strasse.value == "")
      {
       alert("Bitte geben Sie Ihre Stra&szlig;enangabe ein!");
       document.kontakt.Strasse.focus();
       return false;
      }

     if(document.kontakt.PLZ.value == "")
      {
       alert("Bitte geben Sie Ihre Postleitzahl ein!");
       document.kontakt.PLZ.focus();
       return false;
      }
/*
     var plzzahl = 1;
       for(i=0;i<document.kontakt.PLZ.value.length;++i)
         if(document.kontakt.PLZ.value.charAt(i) < "0"
         || document.kontakt.PLZ.value.charAt(i) > "9")
           plzzahl = -1;
       if(plzzahl == -1)
       {
         alert("Bitte geben Sie die Postleitzahl numerisch ein!");
         document.kontakt.PLZ.focus();
         return false;
        }
*/
     if(document.kontakt.Ort.value == "")
      {
       alert("Bitte geben Sie Ihre Ortsangabe ein!");
       document.kontakt.Ort.focus();
       return false;
      }

     if(document.kontakt.from_address.value == "")
      {
       alert("Bitte geben Sie Ihre E-Mail-Addresse ein!");
       document.kontakt.from_address.focus();
       return false;
      }

     if(document.kontakt.from_address.value.indexOf('@') == -1)
      {
       alert("In Ihrer E-Mail-Addresse fehlt das  @ -Zeichen!");
       document.kontakt.from_address.focus();
       return false;
      }

     if(document.kontakt.Mitteilung.value == "" &&
	    document.kontakt.Prospekt_1.checked == false &&
		document.kontakt.Prospekt_3.checked == false &&
		document.kontakt.Prospekt_4.checked == false &&
		document.kontakt.Prospekt_5.checked == false &&
		document.kontakt.Prospekt_6.checked == false &&
		document.kontakt.Prospekt_7.checked == false &&
		document.kontakt.Prospekt_8.checked == false &&
		document.kontakt.Prospekt_9.checked == false &&
		document.kontakt.Prospekt_10.checked == false &&
		document.kontakt.Prospekt_11.checked == false &&
	    document.kontakt.Prospekt_12.checked == false )
	 	 
      {
       alert("Bitte schreiben Sie uns eine Mitteilung oder kreuzen Sie eine Prospektanforderung an!");
       document.kontakt.Mitteilung.focus();
       return false;
      }

   }
   
   
   
   
   
function MM_reloadPage(init) {  //Updated by PVII. Reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) history.go(0);

}//end function

function P7_swapClass(){ //v1.4 by PVII

 var i,x,tB,j=0,tA=new Array(),arg=P7_swapClass.arguments;

 if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);

  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){

  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){

  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}

  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){

  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}

  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}

}//end function
	 
