function doAjaxRequest(file_str,param,callback){
	new Ajax.Request(file_str, {parameters: param, method:"get",onSuccess: callback});
}
function doAjaxUpdate(el_str,file_str,param,callback){
	new Ajax.Updater(el_str, file_str, {parameters:param , method:"get", evalScripts:true, onComplete:callback});
	return false;
}
function emptyEl(s){ 
     $(s).update("");
}
function showLoading(id){ 
	if(id=="breadcrumb")
		return;
	$('tb_img_facebook').style.display='none';
		
	//
	var prop = "";
	var nameImg = "loading";
	var sClr = "";
	//
    emptyEl(id);
	if(id!="breadcrumb"){
		prop = 'style="margin:15px;" ';
	}
	sClr = $(id).getStyle("background-color");
	if(sClr =="rgb(0, 0, 0)" || sClr == "#000000" || sClr == "#000"){
		nameImg = "loading_wb";
	}
	new Insertion.Top(id,'<img '+prop+'src="img/'+nameImg+'.gif" />');
}
function getParam(el){
    var a = el.getAttribute("id").split("_");
    return {idAction:a.pop(),id:a.pop(),action:a.pop()};
}

/* util */
function getObj(id) {
    return document.getElementById(id);
}
function getStyle(id,prop) {
    return getObj(id).style[prop];
}
function setStyle(id,prop,value) {
    getObj(id).style[prop] = value;
}

function show_exception( requestObject, ex) {
	alert("Keine AJAX-Anfrage an " + requestObject.url + " moeglich: " + ex);
}

function show_failure( requestObject ) {
	alert("Error from Server:" + requestObject.statusText);
}

function getBrowser () {
	if(document.ids)x='nc4';
	else if( document.all && !document.getElementById )x='ie4';
	else if( window.opera && !document.createElement )x='op5';
	else if( window.opera && window.getComputedStyle )  {
			  if(document.createRange)x='op8';
				else if(window.navigate)x='op7.5';
								 else x='op7.2';                   }
	else if( window.opera && document.compatMode )x='op7';
	else if( window.opera && document.releaseEvents )x='op6';
	else if( document.contains && !window.opera )x='kq3';
	else if(window.pkcs11&&window.XML)x='f15';
	else if( window.getSelection && window.atob )x='nn7';
	else if( window.getSelection && !document.compatMode )x='nn6';
	else if( window.clipboardData && document.compatMode )
	  x=window.XMLHttpRequest? 'IE7' : 'IE6';
	else if( window.clipboardData ){x='ie5';
		 if( !document.createDocumentFragment ) x+='.5';
		 if( document.doctype && !window.print ) x+='m';}
	else if( document.getElementById && !document.all ) x='op4';
	else if( document.images && !document.all ) x='nn3';
	else if(document.clientWidth&&!window.RegExp)x='kq2';
	else x='???';
	
	return x;
}
