	function update_time( time_field ){
	
		var hour_field_name = time_field + "_hour";
		var str_hour_value = document.getElementById(hour_field_name).value;
		
		var min_field_name = time_field + "_minute";
		var str_min_value = document.getElementById(min_field_name).value;
		
		var ampm_field_name = time_field + "_ampm";
		var str_ampm_value = document.getElementById(ampm_field_name).value;
		
		//alert(str_hour_value + ':' + str_min_value + ' ' + str_ampm_value);
		document.getElementById(time_field).value = str_hour_value + ':' + str_min_value + ' ' + str_ampm_value;
	
	}

	function submitenter(myfield,e){

		var keycode;
		if (window.event) keycode = window.event.keyCode;
		else if (e) keycode = e.which;
		else return true;

		if (keycode == 13){
   			myfield.form.submit();
   			return false;
   		}else{
   			return true;
   		}
	
	}

	function view_calendar(str_form_name, str_field_name, dtm_value){
				
		alert('This function not currently available.');		
				
		//window.frames['calendar_frame'].location.href = "/pages/date_select.asp?display=true&form_name=" + str_form_name + "&field_name=" + str_field_name + "&field_value=" + dtm_value;
	
		//document.getElementById('calendar_frame').style.display = 'block';
			
	}
	function verif_date(str_date_box){
	
		str_date_box_value = str_date_box.value;
		bln_verif_date = false;
	
		if(str_date_box_value.search("/") > 0){
			arr_entry_value = str_date_box_value.split("/");
			bln_verif_date = true;
		}
		else if(str_date_box_value.search("-") > 0){
			arr_entry_value = str_date_box_value.split("-");
			bln_verif_date = true;
		}
		else if(str_date_box_value.length > 0){
			//alert(str_date_box_value.length);
			alert("Please enter date in mm/dd/yyyy format.")
			str_date_box.focus();
		}
		
		if(bln_verif_date == true){
		
			int_month 	= arr_entry_value[0] - 0;
			int_day		= arr_entry_value[1] - 0;
			int_year	= arr_entry_value[2] - 0;
			
			if(int_month > 12 && int_day <= 12){
				int_temp = int_month;
				int_month = int_day;
				int_day = int_temp;
			}
			
			if(int_month < 10){
				str_month = "0" + int_month;
			}
			else{
				str_month = int_month;
			}
		
			if(int_day < 10){
				str_day = "0" + int_day;
			}
			else{
				str_day = int_day;
			}
			
			if(int_year < 10){
				str_year = "200" + int_year;
			}
			else if(int_year < 100){
				str_year = "20" + int_year;
			}
			else{
				str_year = int_year;
			}
			str_date_box.value = str_month + "/" + str_day + "/" + str_year;
			
		}
		
	}
