
<!--
if (self != top){
  if (document.images) top.location.replace(document.location.href);
  else top.location.href = document.location.href;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function validarForma() {
	if (document.Contactos.Direc.value == "") {
		window.alert("Serequiere un destino.");
		return false
	};
	
	if (document.Contactos.Nombre.value == "") {
		window.alert("Es requerido tu nombre.");
		return false
	};
	
	if (document.Contactos.Email.value == "") {
		window.alert("Hace falta tu E-mail.");
		return false
	};
	
	if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.Contactos.Email.value)) == "") {
		window.alert("La direccion de correo proporcionada no es una dirección valida.");
		return false
		};
		
	if (document.Contactos.Pais.value == "") {
		window.alert("En que pais vives.");
		return false
	};
	
		if (document.Contactos.Ciudad.value == "") {
		window.alert("En que ciudad vives.");
		return false
	};
	
	if (document.Contactos.Telefono.value == "") {
		window.alert("Necesito un Número telefónico para contactarte. ");
		return false
	};
	
	if (document.Contactos.Asunto.value == "") {
		window.alert("Cual es vuestro asunto  . ");
		return false
	};
	
	if (document.Contactos.Comentarios.value == "") {
		window.alert("Cuéntenos que desea saber o cuales son sus comentarios.");
		return false
	};
	
	
	if (confirm("Es importante que hayas proporcionado los datos necesarios para poder enviarte la cotización.\nDeseas procesar el formulario ahora?")) {
			Calculo();
			return true
		} else {
	  return false
	}
}

function replaceChars(objName,x,entry) {
	out = '"'; // replace this
	add = '\'\''; // with this
	temp = "" + entry; // temporary holder
	while (temp.indexOf(out)>-1) {
		pos= temp.indexOf(out);
		temp = "" + (temp.substring(0, pos) + add + 
		temp.substring((pos + out.length), temp.length));
	}
  var obj = MM_findObj(objName); if (obj) obj.value = temp;
}

//-->
