function prof(){
this._profAreaContainer='';


	this.myhome=function(tex,o){
		prof= JSON.parse(tex);
		alert(tex);
		//se non è errore eliminare la riga corrispondente dal msgSubMenu
	}	

	this.otherhome=function(tex,o){
		alert(tex);
		prof= JSON.parse(tex);
		if (prof.error){
			alert('Funzione momentaneamente non disponibile');
			}
		else {
			answer = JSON.parse(tex);
			this.datigenerali(answer.datigenerali,o);
			this.descrizione(answer.descrizione,o);
			this.main_div(answer.datigenerali.alias,o);
		}	
	}
	

	this.datigenerali=function(d,o){
		var newhtml;
		newhtml='Sono: <font class="rosso"><b>'+d.alias+
		'</b></font><br /><br />sesso: <font class="rosso">'+d.sesso+
		'</font> <img src="/application/views/img/uomo_16x16.gif" alt="maschio" /> <br />et&agrave;: <font class="rosso">'+d.eta+
		'</font><br />citt&agrave;: <font class="rosso">'+d.citta+
		'</font><br /><br />Sto cercando: <font class="rosso">'+d.cerco+
		'</font><br />per: <font class="rosso">'+d.perche+
		'</font><br /><br />Lingua: <font class="rosso">'+d.lingua+
		'</font><br />Data iscrizione: '+d.iscrizione; 
		oo=document.getElementById(this.datigeneraliViewElement);
		oo.innerHTML=newhtml;
	}

}

