function formPost(destinationUrl, loaderId,submitId,formId,returnSubmit)
{

	
	var useAjaxLoader= true;
	var hideSubmitAction = true;
	var showReturnSubmit;
	
	if (loaderId===undefined) {     useAjaxLoader = false; }
	if (submitId===undefined) { hideSubmitAction = false; }
	if (returnSubmit === undefined) {	showReturnSubmit = true; }else{ showReturnSubmit = returnSubmit; }

	//contentParams = { "name":"oren","email": "oo@oo.com"};
	
	var postParams = {
		
		url: destinationUrl,
		load: function(data) {
			dojo.eval(data);
			//hide ajax loader
			if (useAjaxLoader)    { dojo.byId(loaderId).style.display = "none";}
			if (hideSubmitAction && showReturnSubmit)    { dojo.byId(submitId).style.display = "";}
		},
		error: function(data) { console.debug("An error occurred: ", data); },
		timeout: 40000,
		headers: { "X-Requested-With": "XMLHttpRequest" },
		//content: contentParams,
		form: formId
	};

//show ajax loader
if (hideSubmitAction)    { dojo.byId(submitId).style.display = "none";}
if (useAjaxLoader)    {dojo.byId(loaderId).style.display = "";} //block
dojo.xhrPost(postParams);

}
