
<!--
    var popup = null;
    var popuplocation = "/CountriesPopUp.asp";
    var popupTimer;

    function openCountries() {
        popupTimer = setTimeout("openPopup()",500);
    }
    
    function stopOpenCountries() {
        clearTimeout(popupTimer);
    }
    
    function openPopup() {
        popup = window.open(popuplocation, "popup", "menubar=no, location=no, resizable=no, scrollbars=yes, status=0, width=595, height=400, top=100, left=165");
    }
    
    function openPopupList(loc, name, attributes) {
        var listwindow = window.open(loc, name, attributes);
    }
    function MM_openBrWindow(theURL,winName,features) { //v2.0
        var thewin = window.open(theURL,winName,features);
        thewin.focus;
    }
   
function check_searchcriteria(val) {

           // check it is not zero length
           if (val.length == "0") {
               alert("Please enter some search criteria");
               return false;
           }
           if (val.length == "1") {
               //just 1 letter/number
               alert("Please specify your search criteria");
               return false;
           }
           // check it is not only underscores
              var underscore = 0;
              for (var i=0;i<2;i++) {
                  if (val.charAt(i) == "_") {
                      underscore = underscore+1;
                  }
              }

           // check it is not only *'s in the field
           var stars = 0;  // this will change to one if something other than a * is found
           for (var i=0;i<val.length;i++) {
               if (val.charAt(i) != "*") {
                   stars = 1;
               }
           }
          
           if (stars == "0") {
               //nothing else found other than stars
               alert("There is too much data to bring back everything, please modify your search criteria");
               return false;
           }

           if (underscore > "1") {
               alert("Please modify your search criteria");
               return false;
           }
   return true;
   }

function check_vacancies(val) {

           // check it is not only underscores
              var underscore = 0;
              for (var i=0;i<2;i++) {
                  if (val.charAt(i) == "_") {
                      underscore = underscore+1;
                  }
              }

           if (underscore > "1") {
               alert("Please modify your search criteria");
               return false;
           }
   return true;
   }
   
   function gotoCountry(location) {
	window.open(location);
	self.close();
   }
	
   function redirectandclose(location) {
   	window.open(location);
   	self.close();
   }
   function confirmandredirectclose(location) {
   	if (window.confirm("You are leaving the site. Organon is not responsible for the contents of the site you are about to visit.")){
   	window.open(location);
   	self.close();
  	}
   }
   
   function confirmandredirect(location) {
	if (window.confirm("You are leaving the site. Organon is not responsible for the contents of the site you are about to visit.")){
	window.open(location);
	}
   }
   
    function GotoLink(objLink, strRef, strPopupType) {
      if (strRef != "") {
        switch (strPopupType) {
          case "download":
            MM_openBrWindow (strRef, 'download', 'width=400,height=250,resizable=yes,scrollbars');
            break;
          case "footer":
            MM_openBrWindow (strRef, 'footer', 'width=650,height=550,resizable=yes,scrollbars');
            break;
          case "organization":
            MM_openBrWindow (strRef, 'organization', 'width=400,height=300,resizable=yes,scrollbars');
            break;
          case "country":
            MM_openBrWindow (strRef, 'country', 'width=400,height=500,resizable=yes,scrollbars');
            break;
          default:
            MM_openBrWindow (strRef, 'default', 'width=500,height=400,resizable=yes,scrollbars');
            break;
        }
      }
    }

   function PopupToMain(location) {
	if (typeof(window.opener)== "object"){
		window.opener.location = location;
		self.close();
	}else{
		window.location = location;
	}
   }
 
function storechoice(strValue){
	var dtDate = new Date();
	
	var dtDay = dtDate.getDate();
	var dtMonth = dtDate.getMonth();
	var dtYear = dtDate.getFullYear()+1;

	var dtExpire = new Date(dtYear,dtMonth,dtDay)
	//alert(dtExpire);
	document.cookie = "s346=" + escape(strValue) + "; expires=" + dtExpire.toGMTString();
}   

function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	uploadWindow=window.open(URLtoOpen, windowName, windowFeatures); 
	uploadWindow.focus(); 
} 
// End the hiding -->
