<!-- 		
var fieldnames = new Array (3)
	fieldnames[0] = "Name"
	fieldnames[1] = "URL"
	fieldnames[2] = "Email"
	
	
	
	
function validation(form) {

	var onoff=0
	var alertboxnames = ""

//This puts the length property of each field entry into an array.  
//Make the field name (Name, Email, Age, etc.) the same as what you
//named it in the INPUT tag.  They also need to be in the same order
//as what you entered in the above array.  Don't forget to change
//the number of elements (currently the 7) you have in the array.

	var fields = new Array (3)
	fields[0] = form.Name.value.length
	fields[1] = form.URL.value.length
	fields[2] = form.Email.value.length
	
	
	
	for (var i=0; i < fields.length; i++) {
	
        if (fields[i] == 0) {
    	
    	alertboxnames = alertboxnames + fieldnames[i] + ", ";
        
        onoff ++;
		}              
 
	}

	if (onoff == 0) {
	
		return true
		
	} else {
	
		if (onoff == 1) {
		
			var catness = alertboxnames.substring (0, alertboxnames.indexOf(","));
		
			alert ("The following fieldname is required: \r" + catness + "\r Please fill in this field before continuing.");

			} else {
			
			var catness = alertboxnames.substring (0, alertboxnames.length-2)
				
	        alert ("The following fieldnames are required: \r" + catness + "\rPlease fill in these fields before continuing."); 

			}
		
		return false
		
	}

}

	//-->
