  // Common Javascript function library

  // -------------------------------------------------------------------
  // Mail To
  
        
      	function MailTo ( name, domain, tld, region, label){
					
          var theString = "<a href=\"mailto:";
			
					theString += name;
					theString += "@";
					theString += domain;
					theString += ".";
					theString += tld;
					theString += ".";
					theString += region;
					theString += "\">";
					theString += label;
					theString += "</a>";  
                      		
					document.write(theString);
					}
        
       
          
  //-------------------------------------------------------------------
  // Open window
        
        function openWindow(theURL,winName) { 
  				window.open(theURL,winName,
       		'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800,height=450,left=60,top=60');
				}
        
  //-------------------------------------------------------------------
  // Open large window
        
        function openLgWindow(theURL,winName) { 
  				window.open(theURL,winName,
       		'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800,height=600,left=60,top=60');
				}            
  // -------------------------------------------------------------------
  // Open very small window
        
        function openVeSmWindow(theURL,winName) { 
  				window.open(theURL,winName,
       				'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=630,height=330,left=135,top=70');
				}        
        
        
  // ------------------------------------------------------------------
  // getElement, ...
	function getElement(obj) {
				if (document.getElementById)  { return document.getElementById(obj); }
				if (document.all) { return document.all[obj];  } 
				if (document.layers)  { return getLayer(obj, document); }
				}      
        
  // ------------------------------------------------------------------
  // check email entry
				function isEmailValid(str) {
     				var regex = /^[\w_\.]*[\w_\.]@([\w]+\.)+[\w]*[\w]$/;
     				return regex.test(str);
				}        