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 class=\"green\" href='mailto:");
    document.write(strName + "@sius.com");
    document.write("'>");
    document.write(strName + "@sius.com");
    document.write("</A>");
}

function siusSpecialLink(strName, strText) {
    document.write("<a class=\"green\" href='mailto:");
    document.write(strName + "@sius.com");
    document.write("'>");
    document.write(strText);
    document.write("</A>");
}

function agentEmailLink(strName, strDomain) {
    document.write("<a  class=\"green\"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 "d": nameOfFile = "downloads/docu/Appendix_System7_d.pdf";
             break;
         case "e": nameOfFile = "downloads/docu/Appendix_System7_e.pdf";
             break;
         case "f": nameOfFile = "downloads/docu/Appendix_System7_f.pdf";
             break;
         case "i": nameOfFile = "downloads/docu/Appendix_System7_i.pdf";
             break;
         case "n": nameOfFile = "downloads/docu/Appendix_System7_n.pdf";
             break;
         case "s": nameOfFile = "downloads/docu/Appendix_System7_s.pdf";
             break;
         case "sp": nameOfFile = "downloads/docu/Appendix_System7_sp.pdf";
             break;
         case "ru": nameOfFile = "downloads/docu/Appendix_System7_ru.pdf";
             break;
         default: nameOfFile = "downloads/docu/Appendix_System7_e.pdf";
             break;
     }
 }
 else {
     switch (slang) {
         case "d": nameOfFile = "downloads/docu/Usermanual_System7_d.pdf";
             break;
         case "e": nameOfFile = "downloads/docu/Usermanual_System7_e.pdf";
             break;
         case "f": nameOfFile = "downloads/docu/Usermanual_System7_f.pdf";
             break;
         case "i": nameOfFile = "downloads/docu/Usermanual_System7_i.pdf";
             break;
         case "n": nameOfFile = "downloads/docu/Usermanual_System7_n.pdf";
             break;
         case "s": nameOfFile = "downloads/docu/Usermanual_System7_s.pdf";
             break;
         case "sp": nameOfFile = "downloads/docu/Usermanual_System7_sp.pdf";
             break;
         case "ru": nameOfFile = "downloads/docu/Usermanual_System7_e.pdf";
             break;
         default: nameOfFile = "downloads/docu/Usermanual_System7_e.pdf";
             break;
     }
 }
 
 return nameOfFile;  
}
