
//well if this script is running js is enabled
document.getElementById('nojsdiv').style.display = "none";

Set_Cookie( 'test', 'none', '', '/', '', '' );
// if Get_Cookie succeeds, cookies are enabled, since 
//the cookie was successfully created.
if ( Get_Cookie( 'test' ) )
{
	Delete_Cookie('test', '/', '');
	document.getElementById('formsubmit').disabled = false;
	document.getElementById('springform').style.visibility = "visible";
}
// if the Get_Cookie test fails, cookies 
//are not enabled for this session.
else
{
	document.getElementById('nocookies').style.display = "block";
}

function optchange(e) {
	var currentItem = this.id;
	if (this.getValue()=='text:other'){
		if (this.hasClassName('required')){
			$(currentItem+"-other").addClassName('required');
		}
		$(currentItem+"-other").enable();
		$(currentItem+"-other").removeClassName('hide');
	} else {
		$(currentItem+"-other").disable();
		$(currentItem+"-other").removeClassName('required');
		$(currentItem+"-other").addClassName('hide');
	}
}

$('springform').select('select').invoke("observe","change", optchange);

