<!-- hide script from old browsers

var testresults

function checkemail()
{
	var str=document.subscribe.email.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	
	if (filter.test(str))
	
	testresults=true

	else
	{
	        alert("Please enter a valid email address");
	       document.subscribe.email.focus();
		testresults=false
	}

	return (testresults)
}

function Email_Listing()
{
	if (document.layers||document.getElementById||document.all)
	return checkemail()
	else
	return true
}

 function Category()
 {
    if (document.theform.category.value == '')
    {
       alert("Please Enter the Category Title");
       document.theform.category.focus();
       return false;
    }
    if (document.theform.description.value == '')
    {
       alert("Please Enter A Description");
       document.theform.description.focus();
       return false;
    }
    if (document.theform.name.value == '')
    {
       alert("Please Enter your Business/Personal Name");
       document.theform.name.focus();
       return false;
    }
    if (document.theform.email.value == '')
    {
       alert("Please Enter your Email Address");
       document.theform.email.focus();
       return false;
    }
    return true;
 }


 function FormOneCheck()
 {
if (document.registrationone.surname.value == '')
{
       alert("Please Enter your Surname");
       document.registrationone.surname.focus();
	return false;
}
if (document.registrationone.initials.value == '')
{
       alert("Please Enter your Initials");
       document.registrationone.initials.focus();
	return false;
}
if (document.registrationone.title.selectedIndex == 0)
{
       alert("Please Enter your Title");
       document.registrationone.title.focus();
       return false;
    }
if (document.registrationone.firstname.value == '')
{
       alert("Please Enter your First Name");
       document.registrationone.firstname.focus();
       return false;
    }
if (document.registrationone.gender.selectedIndex == 0){
       alert("Please Enter your Gender");
       document.registrationone.gender.focus();
       return false;
    }
if (document.registrationone.dobday.selectedIndex == 0)
{
       alert("Please Enter your Day of Birth");
       document.registrationone.dobday.focus();
       return false;
    }
if (document.registrationone.dobmonth.selectedIndex == 0)
{
       alert("Please Enter your Month of Birth");
       document.registrationone.dobmonth.focus();
	return false;
}
if (document.registrationone.dobyear.selectedIndex == 0)
{
       alert("Please Enter your Year of Birth");
       document.registrationone.dobyear.focus();
	return false;
}
if (document.registrationone.age.value == '')
{
       alert("Please Enter your Age");
       document.registrationone.age.focus();
	return false;
}
if (document.registrationone.idno.value == '')
{
       alert("Please Enter your ID Number");
       document.registrationone.idno.focus();
	return false;
}


chosen = ""
len = document.registrationone.sacitizen.length
for (i = 0; i <len; i++) {
if (document.registrationone.sacitizen[i].checked) {
chosen = document.registrationone.sacitizen[i].value
}
}
if (chosen == "") {
       alert("Are you a SA Citizen?");
	return false;
}
else
{
	if (chosen == 'no' && document.registrationone.residencystatus.value == '')
	{
				alert("Please Enter your Residency Status");
				document.registrationone.residencystatus.focus();
				return false;
	}
}

if (document.registrationone.streetaddress.value == '')
{
       alert("Please Enter your Street Address");
       document.registrationone.streetaddress.focus();
	return false;
}
if (document.registrationone.streetcity.value == '')
{
       alert("Please Enter your Street City");
       document.registrationone.streetcity.focus();
	return false;
}
if (document.registrationone.streetcode.value == '')
{
       alert("Please Enter your Street Code");
       document.registrationone.streetcode.focus();
	return false;
}
if (document.registrationone.postaladdress.value == '')
{
       alert("Please Enter your Postal Address");
       document.registrationone.postaladdress.focus();
	return false;
}
if (document.registrationone.postalcode.value == '')
{
       alert("Please Enter your Postal Code");
       document.registrationone.postalcode.focus();
	return false;
}
if (document.registrationone.postalcity.value == '')
{
       alert("Please Enter your Postal City");
       document.registrationone.postalcity.focus();
	return false;
}
if (document.registrationone.worktelephone.value == '')
{
       alert("Please Enter your Work Telephone");
       document.registrationone.worktelephone.focus();
	return false;
}
if (document.registrationone.hometelephone.value == '')
{
       alert("Please Enter your Home Telephone");
       document.registrationone.hometelephone.focus();
	return false;
}
if (document.registrationone.fax.value == '')
{
       alert("Please Enter your Fax");
       document.registrationone.fax.focus();
	return false;
}
if (document.registrationone.cellular.value == '')
{
       alert("Please Enter your Cellular Number");
       document.registrationone.cellular.focus();
	return false;
}
if ((document.registrationone.email.value) || (document.registrationone.email.value == ""))
{
	var str=document.registrationone.email.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	
	if (filter.test(str))	
	testresults=true

	else
	{
	       alert("Please enter a Valid Email Address");
		 document.registrationone.email.focus();
		return false;
	}
}
if (document.registrationone.homelanguage.value == '')
{
       alert("Please Enter your Home Language");
       document.registrationone.homelanguage.focus();
	return false;
}
	return true;
}


 function FormTwoCheck()
{
	chosen = ""
	len = document.registrationtwo.currentlyemployed.length
	for (i = 0; i <len; i++) {
	if (document.registrationtwo.currentlyemployed[i].checked) {
	chosen = document.registrationtwo.currentlyemployed[i].value
	}

	if (chosen == "") {
	     	 alert("Are you Currently Employed?");
		return false;
	}
}
if (document.registrationtwo.employer.value == '')
{
       alert("Please Enter your Employer");
       document.registrationtwo.employer.focus();
	return false;
}
if (document.registrationtwo.occupation.value == '')
{
       alert("Please Enter your Occupation");
       document.registrationtwo.occupation.focus();
	return false;
}
if (document.registrationtwo.coregno.value == '')
{
       alert("Please Enter the Company Registration Number");
       document.registrationtwo.coregno.focus();
	return false;
}
if (document.registrationtwo.employertelephone.value == '')
{
       alert("Please Enter the Employer's Telephone Number");
       document.registrationtwo.employertelephone.focus();
	return false;
}
if (document.registrationtwo.employerfax.value == '')
{
       alert("Please Enter the Employer's Fax");
       document.registrationtwo.employerfax.focus();
	return false;
}
if (document.registrationtwo.supervisorname.value == '')
{
       alert("Please Enter your Supervisor Name");
       document.registrationtwo.supervisorname.focus();
	return false;
}
if ((document.registrationtwo.supervisoremail.value) || (document.registrationtwo.supervisoremail.value == ""))
{
	var str=document.registrationtwo.supervisoremail.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	
	if (filter.test(str))	
	testresults=true

	else
	{
	      alert("Please a Valid Supervisor Email Address");
      	document.registrationtwo.supervisoremail.focus();
		return false;
	}
}
if (document.registrationtwo.supervisorpostal.value == '')
{
       alert("Please Enter the Supervisor Postal");
       document.registrationtwo.supervisorpostal.focus();
	return false;
}
if (document.registrationtwo.supervisorpostalcode.value == '')
{
       alert("Please Enter the Supervisor Postal Code");
       document.registrationtwo.supervisorpostalcode.focus();
	return false;
}
	return true;
}

// end hiding script from old browsers -->
