
function check_currency() {
	if (document.afpForm.loccurrency.value.length==0) {
		alert("You must select a Currency from the list.");
	return false;
}
else
	return true;
}


function progress() {
if (!(check_currency(document.afpForm.loccurrency))) {return false;}
if (!(badCity(document.afpForm.fromcity))) {return false;}
if (!(badCity(document.afpForm.tocity))) {return false;}	

if (!(badCityx(document.afpForm.fromcity))) {return false;}
if (!(badCityx(document.afpForm.tocity))) {return false;}	

if (!(badCityz(document.afpForm.fromcity))) {return false;}
if (!(badCityz(document.afpForm.tocity))) {return false;}	

if (!(badCityq(document.afpForm.fromcity))) {return false;}
if (!(badCityq(document.afpForm.tocity))) {return false;}	

if (!(Cityblankx(document.afpForm.fromcity))) {return false;}
if (!(Cityblankz(document.afpForm.tocity))) {return false;}

if (!(CharterCity(document.afpForm.fromcity))) {return false;}
if (!(CharterCity(document.afpForm.tocity))) {return false;}
return true;
}


function badCity(obj) {
var bad=["LOS","Lagos","ACC","Accra"];
if (document.afpForm) {
if ((document.afpForm.fromcity)||(document.afpForm.leg1fromcity	)) {
for (i=0;i<bad.length;i++) {
var str=obj.value;
myRE = new RegExp(bad[i], "i")
if (str.match(myRE)) {
alert ("We are unable to offer any fares for the one of the locations you have chosen");
return false;
}
}
}
}
return true;
}

function badCityx(obj) {
var bad=["ABV","Abuja","PHC","Port Harcourt"];
if (document.afpForm) {
if ((document.afpForm.fromcity)||(document.afpForm.leg1fromcity	)) {
for (i=0;i<bad.length;i++) {
var str=obj.value;
myRE = new RegExp(bad[i], "i")
if (str.match(myRE)) {
alert ("We are unable to offer any fares for the one of the locations you have chosen");
return false;
}
}
}
}
return true;
}

function badCityz(obj) {
var bad=["PHG","KAN","Kano"];
if (document.afpForm) {
if ((document.afpForm.fromcity)||(document.afpForm.leg1fromcity	)) {
for (i=0;i<bad.length;i++) {
var str=obj.value;
myRE = new RegExp(bad[i], "i")
if (str.match(myRE)) {
alert ("We are unable to offer any fares for the one of the locations you have chosen");
return false;
}
}
}
}
return true;
}


function badCityq(obj) {
var bad=["ABJ","DKR","Abidjan"];
if (document.afpForm) {
if ((document.afpForm.fromcity)||(document.afpForm.leg1fromcity	)) {
for (i=0;i<bad.length;i++) {
var str=obj.value;
myRE = new RegExp(bad[i], "i")
if (str.match(myRE)) {
alert ("We are unable to offer any fares for the one of the locations you have chosen");
return false;
}
}
}
}
return true;
}


function Cityblankx() {
	if (document.afpForm.fromcity.value.length==0) {
		alert("The Departure Point has not been completed");
	return false;
}
else
	return true;
}

function Cityblankz() {
	if (document.afpForm.tocity.value.length==0) {
		alert("The Destination Point has not been completed");
	return false;
}
else
	return true;
}

function CharterCity(obj) {
var bad=["SFB","Sanford"];
if (document.afpForm) {
if ((document.afpForm.fromcity)||(document.afpForm.leg1fromcity	)) {
for (i=0;i<bad.length;i++) {
var str=obj.value;
myRE = new RegExp(bad[i], "i")
if (str.match(myRE)) {
alert ("We do not have any scheduled flights to Sanford Florida - Please see our Charter Flight Search");
return false;
}
}
}
}
return true;
}
