// JavaScript Document
// JavaScript Document

onload=function () {
	
	var h;
	var t;
	var CM;
	var final;
	
	// determine content height 
	CM = getS('content')
	t = getT('content')
	h = getH('content')
	CM.zIndex = 4;
	
	CM = getS('middle')
	CM.height = h + 'px';
	t = getT('middle')
	h = getH('middle')
	CM.zIndex = 3;
	
//	CM = getS('contentBott')
//	CM.top = h + t + 'px';
//	CM.display = 'block';

// determine where to place footer

	CM = getS('footer')
	CM.top = h + t + 37 + 'px';
	CM.display = 'block';

	
	// determine height of container
	final = h + t;
	CM = getS('container');
	CM.height = final + 'px';
	
	CM = getS('subnav');
	CM.zIndex = 5;
}

/*function checkForm(form) {

	var patternEmail = /^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/;
	
	var test1 = patternEmail.test(form.email.value);
	
	if ((form.fName.value == "") || (form.f_name.value == " ")) {
		form.fName.focus();
		alert('Please enter your first name');
		return false;
	}
	if ((form.lName.value == "") || (form.l_name.value == " ")) {
		form.lName.focus();
		alert('Please enter your last name');
		return false;
	}
	if ((form.depart.value == "") || (form.p_code.value == " ")) {
		form.depart.focus();
		alert('Please enter your department/agency/organization');
		return false;
	}
	if ((form.city.value == "") || (form.city.value == " ")) {
		form.city.focus();
		alert('Please enter your city');
		return false;
	}
	if ((form.prov.value == "") || (form.p_code.value == " ")) {
		form.prov.focus();
		alert('Please enter your province');
		return false;
	}
	if ((form.postal.value == "") || (form.phone.value == " ")) {
		form.postal.focus();
		alert('Please enter your postal code');
		return false;
	}
	if ((form.location == "") || (form.phone.value == " ")) {
		form.location.focus();
		alert('Please select a location');
		return false;
	}
	if ((form.email.value == "") || (form.email.value == " ")) {
		form.email.focus();
		alert('Please enter your e-mail');
		return false;
	}
	if (test1 == false) {
		form.email.focus();
		alert('Please enter a valid e-mail address');
		return false;
	}

return true;
	
}*/

