rh('reemplazohome');rhr('reemplazohome');function queEsEsto(){	window.open("/teclado.html","teclado","width=400,height=400");}//enfocado="d_rut";function llenar(newText){	if(newText ==-1)		enfocado.value = enfocado.value.substring(0,enfocado.value.length-1);// = enfocado.value.pop();	else		enfocado.value += newText;	reEnfoca();	/*	window.document.autent.elements["usateclado"].value= 'si';	window.document.passemp.elements["usateclado"].value= 'si';  window.document.autent.elements[enfocado].focus();  if(newText!=-1)  { if((window.document.autent.elements[enfocado].value.length<12 && enfocado=="d_rut") || (window.document.autent.elements[enfocado].value.length<4 && enfocado=="d_pin")){window.document.autent.elements[enfocado].value=window.document.autent.elements[enfocado].value+""+newText; }}  else  { window.document.autent.elements[enfocado].value=window.document.autent.elements[enfocado].value.substr(0,window.document.autent.elements[enfocado].value.length-1);     }*/}function queesteclado(){  window.open('/campanas/teclado_virtual/popup.htm','queesteclado','width=350,height=510,left=20,top=20');}//fin teclado virtual //carga datos de resolución del browserfunction fncResolucion(){	document.passemp.rslAncho.value = screen.width;		document.passemp.rslAlto.value  = screen.height;		document.autent.rslAncho.value = screen.width;		document.autent.rslAlto.value  = screen.height;	}function reEnfoca(){	override = true;	if(enfocado)enfocado.focus();}function apaga(){	//flashContainer(enfocado);	var t = getElement("cteclado");	t.style.display = "none";		hayFlash = false;	reEnfoca();}// esconde / muestra div container de flashvar hayFlash = false;var enfocado = false;var override = false;function flashContainer(i){	var t = getElement("cteclado");	if(!hayFlash){		t.style.display = "inline";		hayFlash = true;		reEnfoca();		if(document.all){//Usa controles ActiveX para IE			window.document.fobject.TGotoFrame("_root",2);			window.document.fobject.TPlay("_root");		}	}	/*	else if(i==enfocado){		t.style.display = "none";		hayFlash = false;	}*/	enfocado = i;	/*	if(!hayFlash){		var ff = getSwf("f",true);		hayFlash = true;		if(W3CDOM)			getElement("cteclado").appendChild(ff);		else			getElement("cteclado").innerHTML = ff;		}	else{		var ff = getElement("f");		ff.parentNode.removeChild(ff);		hayFlash = false;	}	*/}function doFlashVar(id,vari,valor){	var swf;	if (navigator.appName.indexOf ("Microsoft") !=-1) {   	 	swf = window[id];	  }	else {		swf = document[id];	  }	//alert(swf);	//alert(typeof(document.getElementById(swf)));   swf.SetVariable(vari,valor);   /*if(movieIsLoaded(swf)){   		swf.GotoAndPlay(2);	}*/}function getSwf(id,texto){	if(W3CDOM){	var obj,embed;	obj = document.createElement("object");	obj.id = id;	obj.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";	obj.codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";	obj.width = "178";	obj.height = "136";	param1 = document.createElement("param");	param1.name = "movie";	param1.value = "/medios/teclado_virtual.swf?go=true";	param2 = document.createElement("param");	param2.name = "quality";	param2.value = "high";	param3 = document.createElement("param");	param3.name = "wmode";	param3.value = "transparent";	obj.appendChild(param1);	obj.appendChild(param2);	obj.appendChild(param3);	embed = document.createElement("embed");	embed.src ="/medios/teclado_virtual.swf?go=true";	embed.quality = "high";	embed.pluginspage="http://www.macromedia.com/go/getflashplayer";	embed.type = "application/x-shockwave-flash";	embed.width = "178";	embed.height = "136";	embed.name = id;	embed.wmode = "transparent";	embed.swLiveConnect = "true";	obj.appendChild(embed);	return obj;	}	else {				return "<p>aaaaaa</p>"	}}// agrega a campos rut y clavethisfocus = function(e){	enfocado = e;}
