// JavaScript Document

function test(e) {
	alert (e.name);
	return false;
			}

function confirmAgree() {
	if	(document.HBBdisclaimer.disclaimer.checked == false)
	{
	alert ("You must agree to the disclaimer before registering your course.");
	return false;
	}
}

function verifyInt(e) {
	var intVar = parseInt(e.value)
	if	((e.value != '') && (isNaN(intVar)) )
		{
		e.value = "";	
		alert ("Please provide a number for this field.");
		return false;
		}
}

function verifyForm() {
	if	((document.HBBform.instFName.value == '') || (document.HBBform.instLName.value == ''))
		{alert ("Please provide both your First and Last Name.");
		document.HBBform.instLName.focus();	
		return false;}
		
	if	(document.HBBform.instEmail.value == '')
		{alert ("Please provide your E-Mail Address.");
		document.HBBform.instEmail.focus();	
		return false;}
		
	if	(((document.HBBform.instAddress1.value == '') && (document.HBBform.instAddress2.value == '') && (document.HBBform.instAddress3.value == '')) || 
			(document.HBBform.instCity.value == '') || (document.HBBform.instZIP.value == ''))
		{alert ("Please provide your Address, City and Postal Code.");
		document.HBBform.instAddress1.focus();	
		return false;}		
		
	if	((document.HBBform.instCountry.value == '') && (document.HBBform.instCountryOther.value == ''))
		{alert ("Please indicate the Country in which this course took place.");
		document.HBBform.instCountry.focus();	
		return false;}		
				
	if	(document.HBBform.instTelephone.value == '')
		{alert ("Please provide a Telephone Number.");
		document.HBBform.instTelephone.focus();	
		return false;}

	if	(document.HBBform.instLanguage.value == '')
		{alert ("Please indicate the Language in which the course was taught.");
		document.HBBform.instLanguage.focus();	
		return false;}
		
	if	(((document.HBBform.TT1_count.value == '') || (document.HBBform.TT2_count.value == '') && (document.HBBform.TT3_count.value == '')) || 
			(document.HBBform.TT4_count.value == '') || (document.HBBform.TT5_count.value == ''))
		{alert ("Please provide Total Number Taught By Discipline for each discipline.");
		document.HBBform.TT1_count.focus();	
		return false;}			
}


