<!--
function sf(toUrl,formName){var values="";$(':input',$("#"+formName)).each(function(){var type=this.type;var tag=this.tagName.toLowerCase();if(type=='text'||type=='password'||tag=='textarea'||type=='hidden')
values=values+this.name+"="+this.value;else if(type=='checkbox'||type=='radio'){if(this.checked){values=values+this.name+"=on";}else{values=values+this.name+"=off";}}
else if(tag=='select')
values=values+this.name+"="+this.selectedIndex;values+="&";});$.ajax({type:"POST",url:toUrl,data:values,success:function(data){resp=eval('('+data+')');if(resp['check']==false){if(resp['callback']!=""){var callBack=new Function(resp['callback']);callBack();she(resp['error']);}}else{hie();$("#successDiv").html(resp['error']).fadeIn("fast");}
return data;}});}
function hie(){obj=$("#errorDiv");if(obj){if(obj.css('opacity')>0){obj.fadeOut("fast");}}}
function she(a){hie();$("#errorDiv").html(a).fadeIn("fast");}
function sd(toUrl,data){dojo.xhrGet({url:toUrl,content:{"data":data},handleAs:"json",load:function(response,ioArgs){if(!response.check)
she(response.error);else
hie();return response;},error:function(response,ioArgs){she('Es trat ein Fehler auf!');return response;}});}
function gc(a,b)
{$("#"+b).html("<center>Bitte warten ...<br /><img src=\"/images/wait.gif\" alt=\"bitte warten ...\" /></center>");$.get(a,function(data){if(data){$("#"+b).html(data);}else{$("#"+b).html("Es trat ein Fehler auf!");}},"json");}
-->
