			function beregn(form, jsp)
			{
 				//var theForm=document.getElementById(formid+'_form');
				
  				dojo.xhrPost({
				      url: "calculators/"+jsp,
				      form: form+"_form",
				      load: function(data, ioargs){
  						document.getElementById(form+"_result").innerHTML=data;
				      },
				      error: function(error,ioargs){
				         alert(error);
				      }
			      });
				
			}
			
			
			var counters=new Array();		
			
			function show(id)
			{
				if(counters[id]== undefined) counters[id]=0;
				
				counters[id]=counters[id]+1;
				var count=counters[id];
				
				
				setTimeout('showIt("'+id+'","'+count+'")',100);
			}
			
			function hide(id)
			{
				if(counters[id]== undefined) counters[id]=0;

				counters[id]=counters[id]+1;
				var count=counters[id];

				setTimeout('hideIt("'+id+'","'+count+'")',250);
			}

			function showIt(id,count)
			{
				if(counters[id]!=count) return;
				document.getElementById(id).style.display='block';
			}
			
			function hideIt(id,count)
			{
				if(counters[id]!=count) return;
				document.getElementById(id).style.display='none';
			}
