/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


function errorOccured(_1,_2){if(_1!=null){var _3=dojo.byId(_1);if(_3!=null){_3.innerHTML="Sorry, service currently not available";}}if(_2!=null){dojo.query("#"+_2+" span").orphan();}};function formPost(_4,_5,_6,_7,_8,_9){var _a=true;var _b=true;var _c=0;if(_8===undefined){_a=false;}if(_9===undefined){_b=false;}var _d={url:_4,load:function(_e){if(_a){var n=dojo.byId(_8);if(n!=null){n.style.display="none";}}if(_b){var n=dojo.byId(_9);if(n!=null){n.disabled=false;}}try{dojo.eval(_e);}catch(err){_c=1;errorOccured(_6,_7);}},error:function(_10){_c=1;errorOccured(_6,_7);},form:_5,timeout:4000,headers:{"X-Requested-With":"XMLHttpRequest"}};if(_b){dojo.byId(_9).disabled=true;}if(_a){dojo.byId(_8).style.display="block";}dojo.xhrPost(_d);return _c;};