Zimbabwe Today Home

Weekly Email Sign-Up

function checkForm( form ) {

var errorMessage = "";

if (form.firstName.value == "") {
errorMessage = errorMessage + "Please enter a value for First name
";
}
if (form.surName.value == "") {
errorMessage = errorMessage + "Please enter a value for Last name
";
}
if (form.email.value == "") {
errorMessage = errorMessage + "Please enter a value for Email address
";
}
if (form.gender.value == "") {
errorMessage = errorMessage + "Please enter a value for Gender
";
}
if (form.birthYear.value == "0") {
errorMessage = errorMessage + "Please enter a value for Year of birth
";
}
if (form.region.value == "0") {
errorMessage = errorMessage + "Please enter a value for Region
";
}
if (!form.agree.checked) {
errorMessage = errorMessage + "Please agree to the terms and conditions of The First Post
";
}





if(errorMessage == "") {
return true;
} else {
errorMessage = "We could not complete registration because
" + errorMessage + "
";
document.getElementById("formErrors").innerHTML = errorMessage;
return false;
}



}





































First name *
Last name *
Email address *
Gender *
Year of birth *
Region  
TV Region  *

   
I agree to the terms and conditions of The First Post*
   

function releaseArea( check ) {
theIndx=check.selectedIndex;
if (check.options[theIndx].value == "GB") {
document.getElementById("tvRegion").disabled=false;
} else {
document.getElementById("tvRegion").disabled=true;
}
}

function disableArea() {
document.getElementById("tvRegion").disabled=true;
}
disableArea();

Advert Col - Zim Today

  • ADVERTISEMENT