function check_form (theform) { 
	for (i=0; i<theform.elements.length; i++) { 
		if (theform.elements[i].type == "text") {
			if (theform.elements[i].title != "") {
				if (theform.elements[i].value == "") {
					alert (theform.elements[i].title);
					return false;
				}
			}
		}
	}
	return true;
}
