function dig(watte,idke){
	new Ajax.Request('handler.php',
	{
		method:'get',
		parameters: {id: idke,type:"dig",dest:watte},
	 	onSuccess: function(transport){
	   		var response = transport.responseText || "";
			$('info-msg').update(response);
			new Effect.Highlight('info-msg', {restoreColor:"transparent" });
						
	   	}
	});
}
function broken(watte,idke,hide){
	new Ajax.Request('handler.php',
	{
		method:'get',
		parameters: {id: idke,type:"broken",dest:watte},
	 	onSuccess: function(transport){
	   		var response = transport.responseText || "";
			$('info-msg').update(response);
			new Effect.Highlight('info-msg', {restoreColor:"transparent" });
			var elId = 'row' + hide;
			if (hide != 0){
				Effect.Fade(elId, { duration: 3.0 });				
			}
			
	   	}
	});
}

function onlyIE(to_hide,to_show){
	if (!Prototype.Browser.IE) {
		$(to_hide).style.display = "none";
		$(to_show).style.display = "block";
	}
}

