function TelhasMafrense() {

	this.showInfo = function(obj) {
		
		if ($(obj.getAttribute("id")).className!="onerror") {			
			$("info_"+obj.getAttribute("id")).innerHTML = obj.getAttribute("title");
		}	
	}
	
	this.hideInfo = function(obj) {
		
		if ($(obj.getAttribute("id")).className!="onerror") {			
			$("info_"+obj.getAttribute("id")).innerHTML = "";
		}	
	}
	
	this.loadCidades = function(objSource,objTarget) {		
		parans = "";
		uf = objSource.options[objSource.selectedIndex].value;		
		if (uf!="") {
			$(objTarget).options[0].text = "Carregando...";
			$(objTarget).disabled = true;			
			MyAjax.addParameter("uf",uf);
			MyAjax.addParameter("page","cidades");
			MyAjax.addParameter("objTgt",objTarget);			
			MyAjax.Request({
					url:"ajaxRequest.html",									
					pack:"ajax"
				});				
		}	
	}
	
	this.lockForm = function(obj,wForm) {
	
		obj.value = "Enviando...";
		obj.disabled = true;		
	
	}
	
}



var tm = new TelhasMafrense();
