//This part of the script is used to build the two arrays (defaultValue and elementId). It may be possible to do this
//with a two-dimensional array but am too lazy to get into that. The idea to have the id and value occupy the same index
//value 
	for(var i=0; i < document.forms.length; i++){ // loop through the forms
		for(var j=0; j < document.forms[i].elements.length; j++ ){ // loop through the input elements
			defaultValue.push (document.forms[i].elements[j].value);
			elementId.push (document.forms[i].elements[j].id);
		}
	}

