//function hides all anything...
//just input css stuff
//i.e. hideAll($$('div.rsc_item_add'));
function hideAll(forms){
		forms.each( function(form){
			form.hide();
		});
}

function formCallback(result, form) {
	window.status = "validation callback for form '" + form.id + "': result = " + result;
}

//this is still giving out an error
function invokeFormValidate(){
     //form validation using validate.js
     //new Validation('form-id'); // OR new Validation(document.forms[1]);
     
     //find all forms on screen
     var all_forms = document.forms
     
     for (x = 0; x < all_forms.length ; x++)
       {
       //var valid = new Validation('test', {immediate : true, onFormValidate : formCallback});
	   var valid = new Validation(all_forms[x], {immediate:false});
	   //new Validation(all_forms[x]);
	   //alert(all_forms[x].name);
       }
}

