var myGlobalHandlers = {		onCreate: function() { showsystemworking(); },		onComplete: function() { if(Ajax.activeRequestCount == 0) { hidesystemworking(); } },		onException: function() { hidesystemworking(); }	};Ajax.Responders.register(myGlobalHandlers);var submittingform = nullfunction submitform() {	var url = '/(recommendafriend)?openagent'	$('systemworking').innerHTML = "Sending To Friend  ......"	allNodes = "docid=" + docid + "&"	allNodes += "userunid=" + currentuserunid + "&"	allNodes += "fullname=" + fullname + "&"	x = Form.serialize('_DominoForm')	allNodes += (x != "") ? x + "&" : ""	allNodes += "uniquetime=" + new Date().getTime()	     var myAjax = new Ajax.Request(url, {method: 'post', 	postBody: allNodes,		onComplete: response_submitform });}function response_submitform(req)	{	try { var reqJSON = eval('(' + req.responseText + ')') } catch(x) {  alert(alert(req.responseText)) }	if (reqJSON.returnCode == "Error") {		alert(reqJSON.errorText)	} else if (reqJSON.returnCode == "Not Found") {		alert("The name you entered could not be found")	} else if (reqJSON.returnCode == "OK") {		alert(reqJSON.responseText)	} else {		alert("Invalid Response")	}}function barf(err){  alert(err);   return;  }
