<!--
function desactiva(){ 
    alert ("Esta función está inhabilitada.\n\nDisculpe las molestias.") 
    return false
} 
document.oncontextmenu=desactiva
window.onload=function(){
	xGetElementById('cme1').onmouseover=function(){aefec("cme1","me1","me11");};
	xGetElementById('cme1').onmouseout=function(){defec("cme1","me1","me11");};
	xGetElementById('cme2').onmouseover=function(){aefec("cme2","me2","me22");};
	xGetElementById('cme2').onmouseout=function(){defec("cme2","me2","me22");};
	xGetElementById('cm1').onmouseover=function(){aefec("cm1","m1","m11");};
	xGetElementById('cm1').onmouseout=function(){defec("cm1","m1","m11");};
	xGetElementById('cm2').onmouseover=function(){aefec("cm2","m2","m22");};
	xGetElementById('cm2').onmouseout=function(){defec("cm2","m2","m22");};
	xGetElementById('cm3').onmouseover=function(){aefec("cm3","m3","m33");};
	xGetElementById('cm3').onmouseout=function(){defec("cm3","m3","m33");};
	xGetElementById('cm4').onmouseover=function(){aefec("cm4","m4","m44");};
	xGetElementById('cm4').onmouseout=function(){defec("cm4","m4","m44");};
	xGetElementById('cm5').onmouseover=function(){aefec("cm5","m5","m55");};
	xGetElementById('cm5').onmouseout=function(){defec("cm5","m5","m55");};
	xGetElementById('cm6').onmouseover=function(){aefec("cm6","m6","m66");};
	xGetElementById('cm6').onmouseout=function(){defec("cm6","m6","m66");};
	xGetElementById('cm7').onmouseover=function(){aefec("cm7","m7","m77");};
	xGetElementById('cm7').onmouseout=function(){defec("cm7","m7","m77");};
	xGetElementById('cm8').onmouseover=function(){aefec("cm8","m8","m88");};
	xGetElementById('cm8').onmouseout=function(){defec("cm8","m8","m88");};
	xGetElementById('cm9').onmouseover=function(){aefec("cm9","m9","m99");};
	xGetElementById('cm9').onmouseout=function(){defec("cm9","m9","m99");};
	xGetElementById('cm10').onmouseover=function(){aefec("cm10","m10","m1010");};
	xGetElementById('cm10').onmouseout=function(){defec("cm10","m10","m1010");};
}
function aefec(z1,z2,z3){
	xGetElementById(z1).className='bormenu_in2';
	xGetElementById(z2).className='b_menu2';
	xGetElementById(z3).className='t_menu2';
}
function defec(z1,z2,z3){
	xGetElementById(z1).className='bormenu_in';
	xGetElementById(z2).className='b_menu';
	xGetElementById(z3).className='t_menu';
}
function entrapag(pag){
	window.location=pag;
}
function cambio(obj,obj2,obj3){
	document.getElementById(obj).className='bormenu_in2';
	document.getElementById(obj2).className='b_menu2';
	document.getElementById(obj3).className='t_menu2';
}
function restab(obj,obj2,obj3) { 
	document.getElementById(obj).className='bormenu_in';
	document.getElementById(obj2).className='b_menu';
	document.getElementById(obj3).className='t_menu';
}
function camcamfor(obj){
	document.getElementById(obj).className='camform2';
}
function rescamfor(obj){
	document.getElementById(obj).className='camform';
}
function camcamformin(obj){
	document.getElementById(obj).className='camform2min';
}
function rescamformin(obj){
	document.getElementById(obj).className='camformmin';
}
function camboton(obj){
	document.getElementById(obj).className='boton2';
}
function resboton(obj){
	document.getElementById(obj).className='boton';
}
function validacon(obj1){
	var fillet=/^[A-Za-z][A-Za-z0-9_.\-]*@[A-Za-z0-9_\-]+\.[A-Za-z0-9_.]+[A-za-z]$/;
	var mail=obj1.mail.value;
	var ban=0,tm,usu;
	if (obj1.nombre.value==""){
		alert("Es necesario indicar su Nombre !!!");
		obj1.nombre.focus();
		ban=1;}
	if (ban==0){
		if (mail.length!=0){
			if (!(fillet.test(mail))){
				alert("El E-Mail no es valido, porfavor escribalo nuevamente.");
				obj1.mail.value="";
				obj1.mail.focus();
				ban=1;}
		}else{
			alert("Es necesario indicar su E-Mail !!!");
			obj1.mail.focus();
			ban=1;}
	}
	if (ban==0){
		resp=confirm("Confirme que desea enviar la información");
		if (resp){
			obj1.action="contacto.php";
			obj1.submit();}}
}
function validacli(obj1){
	var fillet=/^[A-Za-z][A-Za-z0-9_.\-]*@[A-Za-z0-9_\-]+\.[A-Za-z0-9_.]+[A-za-z]$/;
	var mail=obj1.mail.value;
	var ban=0,tm,usu;
	if (obj1.nombre.value==""){
		alert("Es necesario indicar su Nombre !!!");
		obj1.nombre.focus();
		ban=1;}
	if (ban==0){
		if (mail.length!=0){
			if (!(fillet.test(mail))){
				alert("El E-Mail no es valido, porfavor escribalo nuevamente.");
				obj1.mail.value="";
				obj1.mail.focus();
				ban=1;}
		}else{
			alert("Es necesario indicar su E-Mail !!!");
			obj1.mail.focus();
			ban=1;}}
	if (ban==0){
		if (obj1.dominio.value==""){
			alert("Es necesario indicar su Dominio !!!");
			obj1.dominio.focus();
			ban=1;}}
	if (ban==0){
		resp=confirm("Confirme que desea enviar la información");
		if (resp){
			obj1.action="pagos.php";
			obj1.submit();}}
}
function mostab(op,plan,costo,costom,cpr){
	switch (op){
		case 1:
			document.form2.moneda.disabled=false;
			obj=document.getElementById('t_pro');
			obj.style.display='none';
			obj=document.getElementById('t_emp');
			obj.style.display='none';
			obj=document.getElementById('t_con');
			obj.style.display='none';
			obj=document.getElementById('t_per');
			obj.style.display='';
			break;
		case 2:
			document.form2.moneda.disabled=false;
			obj=document.getElementById('t_per');
			obj.style.display='none';
			obj=document.getElementById('t_emp');
			obj.style.display='none';
			obj=document.getElementById('t_con');
			obj.style.display='none';
			obj=document.getElementById('t_pro');
			obj.style.display='';
			break;
		case 3:
			document.form2.moneda.disabled=false;
			obj=document.getElementById('t_per');
			obj.style.display='none';
			obj=document.getElementById('t_pro');
			obj.style.display='none';
			obj=document.getElementById('t_con');
			obj.style.display='none';
			obj=document.getElementById('t_emp');
			obj.style.display='';
			break;
		case 4:
			document.form2.moneda.disabled=true;
			var pr=document.form2.precios[document.form2.moneda.selectedIndex].value;
			costo=document.getElementById(costo).value;
			document.form1.preciomex.value=costo;
			if (cpr=='1'){
				costo=eval(costo)/eval(pr)
				document.form1.tpago.length=1;
				document.form1.tpago.options[0].value=costo;
				document.form1.tpago.options[0].text="PAGO ANUAL";
				document.form1.tpago.options[0].selected=true;
			}else{
				costom=document.getElementById(costom).value;
				document.form1.preciomexm.value=costom;
				costo=eval(costo)/eval(pr)
				costom=eval(costom)/eval(pr)
				document.form1.tpago.length=2;
				document.form1.tpago.options[0].value=costo;
				document.form1.tpago.options[0].text="PAGO ANUAL";
				document.form1.tpago.options[0].selected=true;
				document.form1.tpago.options[1].value=costom;
				document.form1.tpago.options[1].text="PAGO MENSUAL";
				document.form1.tpagov.value="PAGO ANUAL";}
			document.form1.tmon.value=document.form2.moneda[document.form2.moneda.selectedIndex].value;
			document.form1.plan.value=plan;
			document.form1.tpagov.value=document.form1.tpago[document.form1.tpago.selectedIndex].text;
			document.form1.costo.value=eval(costo)*1.16;
			premiles(document.form1.costo,document.form1.costov);
			document.form1.costo.value=document.form1.costo.value+" "+document.form2.moneda[document.form2.moneda.selectedIndex].value;
			obj=document.getElementById('t_per');
			obj.style.display='none';
			obj=document.getElementById('t_pro');
			obj.style.display='none';
			obj=document.getElementById('t_emp');
			obj.style.display='none';
			obj=document.getElementById('t_con');
			obj.style.display='';
			break;
	}
}
function mostabrad(op){
	switch (op){
		case 1:
			obj=document.getElementById('t_radcon');
			obj.style.display='none';
			obj=document.getElementById('t_radio');
			obj.style.display='';
			break;
		case 2:
			obj=document.getElementById('t_radio');
			obj.style.display='none';
			obj=document.getElementById('t_radcon');
			obj.style.display='';
			break;
	}
}
function hoshover1(obj){
	document.getElementById(obj).className='hos_tex1';
}
function hoshover2(obj){
	document.getElementById(obj).className='hos_tex2';
}
function twehome(){
	document.location="http://www.tuwebconestilo.com.mx";
}
function premiles(obj1,obj2){
	//obj1->precioo obj2->precio
	var valor,ncar,pos;
	if (obj1.value!=""){
	valor=obj1.value;
	if (!(isNaN(valor))){
		valor=Math.round(valor*100)/100;
		obj2.value=valor;
		valor=valor.toString();
		pos=valor.indexOf(".")
		if (pos>=0){
			x=valor.substring(pos+1);
			if (x.length==1)
				valor=valor+"0";
		}else{
			valor=valor.toString();
			valor=valor+".00";}
		if ((valor.length)>6)
			valor=valor.substring(0,valor.length-6)+","+valor.substring(valor.length-6,valor.length);
		if ((valor.length)>10)
			valor=valor.substring(0,valor.length-10)+","+valor.substring(valor.length-10,valor.length);
		if ((valor.length)>14)
			valor=valor.substring(0,valor.length-14)+","+valor.substring(valor.length-14,valor.length);
		obj1.value=valor;
	}}
}
function cargar_div(p,pm,pv,pvm){
	objs1=new Array();
	objs2=new Array();
	for (i=0;i<6;i++){
		objs1[i]=new Array();
		objs1[i][0]=document.getElementById((p+(i+1)));
		objs1[i][1]=document.getElementById((pv+(i+1)));}
	for (i=0;i<4;i++){
		objs2[i]=new Array();
		objs2[i][0]=document.getElementById((pm+(i+3)));
		objs2[i][1]=document.getElementById((pvm+(i+3)));}
}
function cambio_div(obj){
	var tm=obj.moneda[obj.moneda.selectedIndex].value;
	var pr=obj.precios[obj.moneda.selectedIndex].value;
	for (i=0;i<6;i++){
		objs1[i][0].value=eval(objs1[i][1].value)/eval(pr);
		premiles(objs1[i][0],objs1[i][0])
		objs1[i][0].value=objs1[i][0].value+" "+tm}
	for (i=0;i<4;i++){
		objs2[i][0].value=eval(objs2[i][1].value)/eval(pr);
		premiles(objs2[i][0],objs2[i][0])
		objs2[i][0].value=objs2[i][0].value+" "+tm}
}
function tpag(obj){
	var cost=obj.tpago[obj.tpago.selectedIndex].value;
	obj.tpagov.value=obj.tpago[obj.tpago.selectedIndex].text;
	obj.costo.value=eval(cost)*1.16;
	premiles(obj.costo,obj.costov);
	obj.costo.value=obj.costo.value+" "+obj.tmon.value;
}
function validaclidom(obj1){
	var fillet=/^[A-Za-z][A-Za-z0-9_.\-]*@[A-Za-z0-9_\-]+\.[A-Za-z0-9_.]+[A-za-z]$/;
	var mail=obj1.mail.value;
	var ban=0,tm,usu;
	if (obj1.nombre.value==""){
		alert("Es necesario indicar su Nombre !!!");
		obj1.nombre.focus();
		ban=1;}
	if (ban==0){
		if (mail.length!=0){
			if (!(fillet.test(mail))){
				alert("El E-Mail no es valido, porfavor escribalo nuevamente.");
				obj1.mail.value="";
				obj1.mail.focus();
				ban=1;}
		}else{
			alert("Es necesario indicar su E-Mail !!!");
			obj1.mail.focus();
			ban=1;}}
	if (ban==0){
		resp=confirm("Confirme que desea enviar la información");
		if (resp){
			obj1.action="pagosdom.php";
			obj1.submit();}}
}
function tpagdom(obj){
	var cost=obj.tpago[obj.tpago.selectedIndex].value;
	obj.costov.value=eval(obj.costovf.value)*eval(cost);
	obj.costo.value=obj.costov.value;
	premiles(obj.costo,obj.costov);
	obj.costo.value=obj.costo.value+" "+obj.tmon.value;
}
function soporte(){
	window.open("livezilla/livezilla.php","ayuda","width=600,height=600,menubar=no,location=no,status=no,toolbar=no,scrollbars=no");
}
//-->