/*#############################################
########## Functions utility ##################
#############################################*/
/*function writeIt(content,where){
	
	//alert(content+" "+where);
	if(document.all) {
		w = document.all[where];
	}else if (document.getElementById){
		w = document.getElementById(where);
	}
	w.innerHTML = content;
	
	
}*/
function writeIt(text,id){
	if (document.getElementById){
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
	}else if (document.all){
		x = document.all[id];
		x.innerHTML = text;
	}else if (document.layers){
		x = document.layers[id];
		x.document.open();
		x.document.write(text);
		x.document.close();
	}
}


/*#############################################
########## Functions once #####################
#############################################*/
pathGet = "/";
function upd(who, what){
	whatdiv = what+"-div";
	if (document.getElementById){
		ajaxGet(pathGet+"get_"+what+".php?"+who,writeIt, whatdiv);
	}else if(document.all) {
		ajaxGet(pathGet+"get_"+what+".php?"+encodeURIComponent(who),writeIt, whatdiv);
	} 
}
