
function checkAgencyLoginForm (theForm) {

if (theForm.username.value == ''){
	alert ('Please enter your username');
	theForm.username.focus();
	return false;
}

if (theForm.password.value == ''){
	alert ('Please enter your password');
	theForm.password.focus();
	return false;
}


}

function checkPassportViewerLoginForm (theForm) {

if (theForm.username.value == ''){
	alert ('Please enter passport name');
	theForm.username.focus();
	return false;
}

if (theForm.password.value == ''){
	alert ('Please enter passport number');
	theForm.password.focus();
	return false;
}


}

function checkAdminLoginForm (theForm) {

if (theForm.username.value == ''){
	alert ('Please enter your username');
	theForm.username.focus();
	return false;
}

if (theForm.password.value == ''){
	alert ('Please enter your password');
	theForm.password.focus();
	return false;
}


}