if (document.images) {
	img1over = new Image();
	img1over.src = url + "InfBotInicio_On.gif";
	img2over = new Image();
	img2over.src = url + "InfBotLaEmp_On.gif";
	img3over = new Image();
	img3over.src = url + "InfBotTienda_On.gif";
	img4over = new Image();
	img4over.src = url + "InfBotCondic_On.gif";
	img5over = new Image();
	img5over.src = url + "InfBotConta_On.gif";
	
	img1out = new Image();
	img1out.src = url + "InfBotInicio_Off.gif";
	img2out = new Image();
	img2out.src = url + "InfBotLaEmp_Off.gif";
	img3out = new Image();
	img3out.src = url + "InfBotTienda_Off.gif";
	img4out = new Image();
	img4out.src = url + "InfBotCondic_Off.gif";
	img5out = new Image();
	img5out.src = url + "InfBotConta_Off.gif";
	
}

function turnOn(imgName) {if (document[imgName]){document[imgName].src = eval( imgName + "over.src");}}
function turnOff(imgName) {if (document[imgName]){if (document.images) {document[imgName].src = eval(imgName + "out.src");}}}

function rollOn(obj){
	file=obj.src;
	obj.src=file.replace('_Off','_On');
}

function rollOff(obj){
	file=obj.src;
	obj.src=file.replace('_On','_Off');
}

var Key='';
function keyhandler(e) {
   	if ((Key >=48 && Key <=57) || (Key >=96 && Key <=105) || Key==46 || Key==8 || Key==9 || (Key >=37 && Key <=40)){return true}else{return false};
}

function validarEmail(valor) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
		return (true);
	} else {
		return (false);
	}
}
