/* This 2 functions are for hiding/showing the div */ 
function show_div(div_id) {
	// Show the requested div
	document.getElementById(div_id).style.display = 'block';
}
function hide_div(div_id) {
	// Hide the requested div
	document.getElementById(div_id).style.display = 'none';
}


/* Checks if the checkbox is CHECKED or not, and then show or hide the div */ 
function show_hide_div(div) {
	var div_id = div + '_div';
	if (document.quote_form[div].checked == true) {	
		show_div(div_id);
	} else {
		hide_div(div_id);
	}
}


/* This function validates the quote form */
function formvalidation(form) { 
	if (form.name.value == "") {
		alert("Please, enter your Name.");
		form.name.focus();
		return false;
	}
	if (form.company_email.value == "") {
		alert("Please, enter the Company Email Address.");
		form.company_email.focus();
		return false;
	}			
	return true;
}


