	var req = Inint_AJAX();
	
	function Inint_AJAX() {
	   try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
	   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
	   try { return new XMLHttpRequest();          } catch(e) {} //Native Javascript
	   alert("XMLHttpRequest not supported");
	   return null;
	}	
	
	// Callback function that will update the response_form1 div with the response that comes from the server
	function updateResponseDiv(req) 
	{	
		Spry.Utils.setInnerHTML('form_display', req.xhRequest.responseText);
  		document.getElementById('loading_box').style.display = 'none';
	};
	
	// handle form submit & validate
	function SendForm(form) {
		var theForm = typeof form != 'object' ? document.getElementById(form): form;
		var ret = Spry.Widget.Form.validate(theForm);
		if (ret) {
  			document.getElementById('loading_box').innerHTML = '<font color="red"><<< Loading.... >>>  </font>';
			Spry.Utils.submitForm(theForm, updateResponseDiv);
		}
		return false;
	};     