var sYourName = new Spry.Widget.ValidationTextField("sYourName", "none", {validateOn:["change"]});
var sEmail = new Spry.Widget.ValidationTextField("sEmail", "email", {validateOn:["change"]});
var sPostCode = new Spry.Widget.ValidationTextField("sPostCode", "none", {validateOn:["change"]});
var sSelect = new Spry.Widget.ValidationSelect("sSelect", {validateOn:["change"], invalidValue:"-"});
var sSecurityCode = new Spry.Widget.ValidationTextField("sSecurityCode", "none", {minChars:5, validateOn:["change"]});

function reloadCAPTCHA() {
	document.getElementById('CAPTCHA').src='CAPTCHA/CAPTCHA_image.asp?'+Date();
}

function othercheck(elementname) {
	var el = elementname;
	var elother = elementname + "Other";
	var elvalue = eval("document.form1." + el + ".value");
	var elothervalue = eval("document.form1." + elother + ".value");
	
	if (elvalue == "Other") {
		eval("document.form1." + elother + ".className = 'normal'");
		eval("document.form1." + elother + ".disabled = false");
	}
	else {
		eval("document.form1." + elother + ".className = 'gray'");
		eval("document.form1." + elother + ".disabled = true");
	}
}
