function val_reg_form()
{
	valid = true;
		if (document.reg_form.lname.value == "")
	{
		alert ("Please fill in your last name!");
		valid = false;
		document.reg_form.lname.focus();
		return valid;
	}
	if (document.reg_form.fname.value == "")
	{
		alert ("Please fill in your first name!");
		valid = false;
		document.reg_form.fname.focus();
		return valid;
	}	
    if (document.reg_form.Dob.value == "")
	{
		alert ("Please fill in your date of birth (mm/dd/yy)");
		valid = false;
		document.reg_form.Dob.focus();
		return valid;
	}	
	if (document.reg_form.Aaddress.value == "")
	{
		alert ("Please fill in your Address!");
		valid = false;
		document.reg_form.Aaddress.focus();
		return valid;
	}
	if (document.reg_form.Acity.value == "")
	{
		alert ("Please fill a city or a district!");
		valid = false;
		document.reg_form.Acity.focus();
		return valid;
	}
	if (document.reg_form.Astate.value == "")
	{
		alert ("Please fill a Parish or State!");
		valid = false;
		document.reg_form.Astate.focus();
		return valid;
	}
	if (document.reg_form.Azip.value == "")
	{
		alert ("Please fill a Zip or Postal Code (jamican postal - JMDWD07)!");
		valid = false;
		document.reg_form.Azip.focus();
		return valid;
	}
	if (document.reg_form.Aarea.value == "" || document.reg_form.AphoneNo.value == "")
	{
		alert ("Please fill in Phone Number!");
		valid = false;
		document.reg_form.AphoneNo.focus();
		return valid;
	}
	
	if (document.reg_form.Aemail.value == "")
	{
		alert ("Please fill in your email address!");
		valid = false;
		document.reg_form.Aemail.focus();
		return valid;
	}
	else
	{
		var at = "@";
		var dot = ".";
		
		if (document.reg_form.Aemail.value.indexOf(at) == -1 || document.reg_form.Aemail.value.indexOf(dot) == -1)
		{
			alert ("Please fill in a valid email address!");
			valid = false;
			document.reg_form.Aemail.focus();
			return valid;
		}
	}

	if (document.reg_form.Aposition.value == "")
	{
		alert ("Please fill in a career choice.");
		valid = false;
		document.reg_form.Aposition.focus();
		return valid;
	}
	
	if (document.reg_form.ESchool1.value == "")
	{
		alert ("Please fill in High School Level!");
		valid = false;
		document.reg_form.ESchool1.focus();
		return valid;
	}
	
	if (document.reg_form.Eaddress1.value == "")
	{
		alert ("Please fill in High School Address");
		valid = false;
		document.reg_form.Eaddress1.focus();
		return valid;
	}
	if (document.reg_form.RName1.value == "")
	{
		alert ("Please fill in a individual to recommend you");
		valid = false;
		document.reg_form.RName1.focus();
		return valid;
	}
	if (document.reg_form.RTitle1.value == "")
	{
		alert ("Please fill in a individual to recommend you");
		valid = false;
		document.reg_form.RTitle1.focus();
		return valid;
	}
	if (document.reg_form.RPhone1.value == "")
	{
		alert ("Please fill in a individual phone nummber");
		valid = false;
		document.reg_form.RPhone1.focus();
		return valid;
	}
    if (document.reg_form.file2.value == "")
	{
		alert ("Please upload your resume");
		valid = false;
		document.reg_form.file2.focus();
		return valid;
	}
	if(document.reg_form.REmail1.value != "")
	{
		var at = "@";
		var dot = ".";
		
		if (document.reg_form.REmail1.value.indexOf(at) == -1 || document.reg_form.REmail1.value.indexOf(dot) == -1)
		{
			alert ("Please fill in a valid email address!");
			valid = false;
			document.reg_form.REmail1.focus();
			return valid;
		}
		
     }
	  document.reg_form.IagreeF.value = -1;
	   for(i=0;i<document.reg_form.IagreeF.length;i++)
			{
				if(document.reg_form.IagreeF[i].checked)
				{
					document.reg_form.IagreeF.value = i;
					return valid;
				}
			}
	   if (document.reg_form.IagreeF.value == -1)
		{
			alert("You must agree to disclaimer to contine");
			valid = false;
			
		}else {
		     valid = false;
		  
		}
			
	return valid;
}