var pathToInterface = "assets/js/ajaxInterface.php";

function checkFormInput(functionID, dataVar){
	new Ajax.Request(pathToInterface, { method:'POST', parameters: {functionID: functionID, dataVar: dataVar},
		onSuccess: function(transport){
			var json  = eval('(' + transport.responseText + ')');
			var theNote = document.getElementById(functionID+'Note');
			theNote.style.color = '#FF0000';
			if(!json.type) theNote.style.color = 'red';
			else theNote.style.color = 'green';
			
			theNote.innerHTML = json.msg;
		}
	});
}