

function sendPetition(form) {
	var maz = true;
	var x = "You must fill underlisted fields\n\n";
	tara1 = document.petition.surname.value;
	tara2 = document.petition.onames.value;
	tara3 = document.petition.sex.value;
	tara4 = document.petition.day.value;
	tara5 = document.petition.month.value;
	tara6 = document.petition.year.value;
	tara7 = document.petition.address.value;
	tara8 = document.petition.city.value;
	tara9 = document.petition.state.value;
	tara10 = document.petition.abode.value;
	tara11 = document.petition.nationality.value;
	tara12 = document.petition.email.value;
	tara13 = document.petition.mphone.value;
	tara14 = document.petition.id_card.value;
	tara15 = document.petition.report.value;
	
	if(tara1 == "") {
		x += "* Surname\n";
		maz = false;
	}
	if(tara2 == "") {
		x += "* Other Names\n";
		maz = false;
	}
	if(tara3 == "") {
		x += "* Sex\n";
		maz = false;
	}
	if(tara4 == "") {
		x += "* Day of Birth\n";
		maz = false;
	}
	if(tara5 == "") {
		x += "* Month of Birth\n";
		maz = false;
	}
	if(tara6 == "") {
		x += "* Year of Birth\n";
		maz = false;
	}
	if(tara7 == "") {
		x += "* Address\n";
		maz = false;
	}
	if(tara8 == "") {
		x += "* City of Abode\n";
		maz = false;
	}
	if(tara9 == "") {
		x += "* State of Abode\n";
		maz = false;
	}
	if(tara10 == "") {
		x += "* Country of Abode\n";
		maz = false;
	}
	if(tara11 == "") {
		x += "* Nationality\n";
		maz = false;
	}
	if(tara12 == "") {
		x += "* Email\n";
		maz = false;
	}
	if(tara13 == "") {
		x += "* Mobile Phone\n";
		maz = false;
	}
	if(tara14 == "") {
		x += "* Attach ID Card\n";
		maz = false;
	}
	if(tara15 == "") {
		x += "* Attach Complaint\n";
		maz = false;
	}
	if (maz) {
		var notify = "<font color=#ffcccc><br><b><i>...processing, pls wait...</i></b></font>";
		document.getElementById('mylac2').innerHTML = notify;
		form.submit();
	}
	else {
		alert(x);
	}
	
	return;
}