	
	//Create a boolean variable to check for a valid Internet Explorer instance.
	var xmlhttp = false;
	var carrierFocus = false;
	
	//Check if we are using IE.
	try {
		//If the Javascript version is greater than 5.
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		//If not, then use the older active x object.
		try {
			//If we are using Internet Explorer.
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			//Else we must be using a non-IE browser.
			xmlhttp = false;
		}
	}
	
	//If we are using a non-IE browser, create a javascript instance of the object.
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		xmlhttp = new XMLHttpRequest();
	}

		var browserType;
		
		if (document.layers) {browserType = "nn4"}
		if (document.all) {browserType = "ie"}
		if (window.navigator.userAgent.toLowerCase().match("gecko")) {
		   browserType= "gecko"
		}
		


		
	

	/* ========================================================
	 *
	 * ======================================================== */
	function makeDate(dateElement) {
		if (dateElement.value.length == 6) {
			var temp = dateElement.value;
			var temp2 = dateElement.value;
			var val1 = temp.substring(0,2);
			var val2 = temp2.substring(2,4);
			var val3 = temp.substring(4);
			var valNewDate =  val1 + "/" + val2 + "/20" + val3; 
			dateElement.value = valNewDate;
		}
	}

//******************************************************************
//
//****************************************************************** 
  function isNumericDate(e){
   var keynum;
   var keychar;
   if (window.event) // IE
    {

	  keynum = e.keyCode;
    
	  
	    keychar = String.fromCharCode(keynum);
	    
	    var validChars = "0123456789/.";
	    if (validChars.indexOf(keychar) == -1){
	    	
		  if (window.event.keyCode == 13){
		    	return true;
	      }
	      return false
	    } else {
		  return true;
		}

    }
    else if(e.which) // Netscape/Firefox/Opera
    {
    	keynum = e.which
	  
	    keychar = String.fromCharCode(keynum)
	    var validChars = "0123456789/.";
	     
	    if (validChars.indexOf(keychar) == -1){
	      
		  if (event.which.keyCode == 13){
			
		    	  return true;
	
	      }
	      
	        
	      return false
	    } else {
	          
		  return true;
		}


    }
  }
	
	
	function showPhotoDiv(divID) {
		var PhotoDiv = document.getElementById(divID);	
		PhotoDiv.style.visibility = 'visible'; 
		PhotoDiv.style.width = 300;
		PhotoDiv.style.height = 300;
	}
	
	function hidePhotoDiv(divID) {
		var PhotoDiv = document.getElementById(divID);	
		PhotoDiv.style.visibility = 'hidden'; 
		PhotoDiv.style.width = 1;
		PhotoDiv.style.height = 1;
	}