// JavaScript Document

<!--
//
// Callback function that will update the response_form1 div with the response that comes from the server
//

function updateResponseDiv(req) 
	{
		Spry.Utils.setInnerHTML('response_form1', req.xhRequest.responseText);
		document.getElementById('form1').reset();
	}
	
	function validateonsubmit(form){
	
		if (Spry.Widget.Form.validate(form) == true){
			
			Spry.Utils.submitForm(form, updateResponseDiv);
			
		}
		return false;
	}
    
    //-->

