
<!--
    function changeClass(toBeActive)
	{	
        var makeInactive = ['newsTab','clinicalTab','contactTab'];
		//alert(makeInactive = getElementsByClassName('activeTab','div',''));
		var length = makeInactive.length;
		for(var i=0; i<length; i++){
			document.getElementById(makeInactive[i]).className = "inactiveTab";
		}
        document.getElementById(toBeActive).className = "activeTab";
	}
    
    function changeClassLong(toBeActive)
	{	
            document.getElementById('newsTab').className = "inactiveTabLong";
			document.getElementById('clinicalTab').className = "inactiveTab";
            document.getElementById('contactTab').className = "inactiveTab";
            if(document.getElementById('fourTab'))
                document.getElementById('fourTab').className = "inactiveTab";
                
            document.getElementById(toBeActive).className = "activeTab";
            if(toBeActive == 'newsTab')
                document.getElementById(toBeActive).className = "activeTabLong";
	}
	
	function clearDefault(el) {
          if (el.defaultValue==el.value) el.value = ""
    }
    
     function validateContact()
      {
            var name = document.getElementById("name").value;
            var e = document.getElementById("e").value;
            var comment = document.getElementById("comments").value;
            if( name == "" || comment == "" || !checkMail(e))
            {
                alert("Please be sure to fill in all fields and to enter valid email addresses. Thank You.");
                return false;
            }
            return true;
        }      
    
    function validateForm()
    {
        var val = document.getElementById("zipCode").value;
        if(val == "" || val == "ZIP" || !checkZip(val) || !IsNumeric(val))
        {
            alert("Please make sure you enter a valid Zip Code. Thank You.");
        }
        else
        {
            sndReq(val);
            document.getElementById('repBox').style.display = "block";
        }
            
      }  
      
      function validateColl()
      {
            var to = document.getElementById("ToColleague").value;
            var from = document.getElementById("From").value;
            if( to == "" || from == "" || !checkMail(to) || !checkMail(from) )
            {
                alert("Please be sure to fill in both fields and to enter valid email addresses. Thank You.");
                return false;
            }
            return true;
        }      
      
      function IsNumeric(sText)
     {
       var ValidChars = "0123456789.";
       var IsNumber=true;
       var Char;

     
       for (i = 0; i < sText.length && IsNumber == true; i++) 
          { 
          Char = sText.charAt(i); 
          if (ValidChars.indexOf(Char) == -1) 
             {
             IsNumber = false;
             }
          }
       return IsNumber;
       
       }
       
       function checkZip(zip)
       {
            var re5digit=/^\d{5}$/;
            if(re5digit.test(zip)) return true;
            else return false;
        }
       
       function checkMail(e)
        {
            var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
            if (filter.test(e)) return true;
            else return false;
        }
-->
