/*
* form.js
* Adds a hidden element to specified form elements if JS is enabled. Thwarts form spam bots.
* by David Benton
* http://www.dbenton.com
* Many thanks to those who did the bulk of the work. Their names are listed with their contributions below.
*/

function jsForm() {
	
	
	var forms = document.getElementsByTagName("form");
	for (var i = 0; i < forms.length; i++) {
		
		var el = document.createElement("input");
		el.type = "hidden";
		el.name = "js";
		el.value = "1";
		forms[i].appendChild(el);
		
	}	
}