// Application.js v2.0.1 28/08/2009 14:00 Dr Nick^ //

function appreqcheck(reqq) {
	var appchecked = "0";
	for ( var i=1; i<=reqq; i++ ) {
		//appfield = 'document.applicationform.answer' + i;
		//appfieldvalue = window[appfield].value;
		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 />";
		return false;	
	}
}