// Application.js v3.0 03/10/2009 16:00 Dr Nick^ //

function appreqcheck(reqq) {
	var appchecked = "0";
	for ( var i=1; i<=reqq; i++ ) {
		if ((document.applicationform["answer"+i].value==0) || (document.applicationform["answer"+i].value==null)) {
			appchecked = "1";
			break;
		} else {	// Do nothing	
		}
	}
	
	if ( appchecked == "0" ) {
		return true;
	} else {
		document.getElementById('apperr').innerHTML="<font color=\"red\">Please fill in all answers in the Required part</font><br />";
		alert('There are some fields empty, please fill them in.');
		return false;	
	}
}
