function foo2() {
    alert('foo2');
}

 var program = 'DE';
 var inclusive = false;
 var slang = 'e';
 
 function setProgram(programName)
 {
  program = programName;
 }
 
 function setInclude()
 {
 	inclusive = !inclusive;
 }
 
 function executeChoice(languageOfPage)
 {
   var confirmationMsg;
 	
 	 if(languageOfPage == "de")
 	 {
 	 	  confirmationMsg1 = "Wollen Sie die deutsche Version der BarcodeLibary inklusive Framework herunterladen?";
 	    confirmationMsg2 = "Wollen Sie die deutsche Version der BarcodeLibary ohne Framework herunterladen?";
 	    confirmationMsg3 = "Wollen Sie die französische Version der BarcodeLibary inklusive Framework herunterladen?"; 
      confirmationMsg4 = "Wollen Sie die französische Version der BarcodeLibary ohne Framework herunterladen?"; 	 
 	 }
 	 else
 	 {
 	 	  confirmationMsg1 = "Would you like to download the german Version of the BarcodeLibary together with Framework?";
 	    confirmationMsg2 = "Would you like to download the german Version of the BarcodeLibary without Framework?";
 	    confirmationMsg3 = "Would you like to download the french Version of the BarcodeLibary together with Framework?"; 
      confirmationMsg4 = "Would you like to download the french Version of the BarcodeLibary without Framework?"; 	 
 	}
   
   var wrongPw = true;
   switch(program){
     case "DE": if(inclusive)
                {
                  if(window.confirm(confirmationMsg1))
                    window.open("downloads/software/BarcodeLibrary_d.zip");
                }
                else
                {
                  if (window.confirm(confirmationMsg2))
                    window.open("downloads/software/BCL_German.zip");	
                } 
                break;     	      
     case "FR": if(inclusive)
                {
                  if(window.confirm(confirmationMsg3))
                    window.open("downloads/software/BarcodeLibrary_d.zip");
                }
                else
                {
                  if (window.confirm(confirmationMsg4))
                    window.open("downloads/software/BCL_French.zip");	
                } 
                break; 
     default: 
   }  
 }

function signIn(languageOfPage)
{
 var fileName;

 if(languageOfPage == "de")
 {
   fileName = "Anmeldung.pdf";
 }
 else
 {
   fileName = "e_Anmeldung.pdf";
 }
 window.open(fileName);	
}


// um Eml-Scannern zu entgehen...

function siusEmailLink(strName)	{
 document.write("<a href='mailto:");
 document.write(strName + "@sius.com");
 document.write("'>"); 
 document.write(strName + "@sius.com");
 document.write("</A>");
}

function siusSpecialLink(strName, strText)	{
 document.write("<a href='mailto:");
 document.write(strName + "@sius.com");
 document.write("'>"); 
 document.write(strText);
 document.write("</A>");
}

function agentEmailLink(strName, strDomain)	{
 document.write("<a href='mailto:");
 document.write(strName + "@" + strDomain);
 document.write("'>"); 
 document.write(strName + "@" + strDomain);
 document.write("</A>");
}


// set language of the desired user manual
function setLanguage(langName)
{
	slang = langName;
}


// get language specific user manual name
function getFileName(type)
{
 var nameOfFile;
 
 if(type == "appendix")
 {
  switch(slang)
	{
	case "e": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_3a_Anhang_e.pdf";
						break;
	case "f": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_3a_Anhang_f.pdf";
						break;
	case "i": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_3a_Anhang_i.pdf";
						break;
	case "n": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_3a_Anhang_n.pdf";
						break;
	case "s": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_3a_Anhang_s.pdf";
						break;
	case "sp": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_3a_Anhang_sp.pdf";
						break;
	}
 }
 else
 {
 	switch(slang)
	{
	case "e": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_2a_e.pdf";
						break;
	case "f": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_2a_f.pdf";
						break;
	case "i": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_2a_i.pdf";
						break;
	case "n": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_2a_n.pdf";
						break;
	case "s": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_2a_s.pdf";
						break;
	case "sp": nameOfFile = "downloads/docu/Bedienungsanleitung_System7_2a_sp.pdf";
						break;
	} 
 }
 
 return nameOfFile;  
}