function ValidateString(obj) { 
   	return (obj.value != ""); 
} 

function ValidatePassword(obj,len) { 
   if (len && obj.value.length >= len) return true; 
}

function ValidateEmail(obj) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.value)) return (true);
}

function ValidateSelect(obj) {
	// return true if select box has either -99, NULL, or an empty string as a value
	return (obj.options[obj.selectedIndex].value != -99 && obj.options[obj.selectedIndex].value != "NULL" && obj.options[obj.selectedIndex].value != "");
}

function ValidateNumber(obj) {

var digits="1234567890";

	for(var i=0;i < obj.value.length;i++) {
		if(digits.indexOf(obj.value.charAt(i))==-1) {
			return false;
		}
	}
	return true;
}

function AddToErrorList(strMsg) {
	if (strError == "") {
		strError = "\nPlease fill out the following fields\n";
	}
	strError = strError + "- " + strMsg + "\n";
}

function AddToErrorListFR(strMsg) {
	if (strError == "") {
		strError = "\nS'il vous plaît remplissez les champs suivants\n";
	}
	strError = strError + "- " + strMsg + "\n";
}

//-->
