// JavaScript Document
//show & hide divs
function hideDiv(element_id) {
	if (document.getElementById) { 
		document.getElementById(element_id).style.display = 'none';
	}
}


function showDiv(element_id) {
	if (document.getElementById) { 
	document.getElementById(element_id).style.display = 'block';
	}
}

function showHideDiv(element_id) {
	if(document.getElementById(element_id).style.display=='block') {
		hideDiv(element_id);
	} else {
		showDiv(element_id );	
	}
	
}

function dates_bak (){
var d = new Date(); //creates a new date
var dd = d.getDate(); //retrieves the date from the system
var mm = d.getMonth() + 1; //retrieves the month JS starts counting at zero, so add a 1 to start January at 1
var yyyy = d.getYear(); //retrieves the year
var now = mm + "/" + dd + "/" + yyyy; //formats the date*/

document.updateForm.date_received.value = now; //puts the value retrieved from the system in the sysDt field
}

function validate_form(thisform){
	with (thisform) {
 		if (validate_email(input330_10,"Not a valid e-mail address!")==false){
			email.focus();return false;
		}
 	}
}