<!--
<!-- Funciones creadas por Dreamweaver
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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
<!-- Funciones programadas
function confirmar_contacto() {
	if (document.all) {	// I Explorer
		if (contacto.nombre.value!="") {
			if (contacto.mail.value!="") {
				contacto.action="mail.php";
				contacto.submit();
			} else {
				alert("Por favor ingrese una dirección de E-mail");
				contacto.mail.focus();
			}
		} else{
			alert("Por favor ingrese su nombre");
			contacto.nombre.focus();
		}
	} else {	//NetScape Navigator
	}
}

function confirmar_campana() {
	if (document.all) {		//I Explorer
		if (campana.nombre.value!="") {
			if (campana.empresa.value!="") {
				if (campana.mail.value!="") {
					campana.submit();
				} else {
					alert("Por favor ingrese su dirección de mail");
					campana.mail.focus();
				}
			} else {
				alert("Por favor ingrese el nombre de su empresa");
				campana.empresa.focus();
			}
		} else {
			alert("Por favor ingrese su nombre");
			campana.nombre.focus();
		}
	} else {		//Netscape Navigator
	}
}

function elige_forma() {
	if(navigator.appVersion.indexOf("5.0")>=0) {
			version = "NS6";
	}
	if (document.all) {		//Internet Explorer
		if (mandato.forma_pago.value==0) {
			document.all.tarjeta.style.visibility='hidden';
			document.all.cmr.style.visibility='hidden';
			document.all.cuenta.style.visibility="hidden";
		} else {
			if (mandato.forma_pago.value==1) {
				document.all.tarjeta.style.visibility='hidden';
				document.all.cmr.style.visibility='hidden';
				document.all.cuenta.style.visibility="visible";
			} else {
				if (mandato.forma_pago.value==2) {
					document.all.tarjeta.style.visibility='visible';
					document.all.cmr.style.visibility='hidden';
					document.all.cuenta.style.visibility="hidden";
				} else {
					if (mandato.forma_pago.value==3) {
						document.all.tarjeta.style.visibility='hidden';
						document.all.cmr.style.visibility='visible';
						document.all.cuenta.style.visibility="hidden";
					}
				}
			}
		}
	} else {	//Netscape Navigator
		if (version=="NS6") {		//navegador NetScape 6
			if(document.forms['mandato'].elements['forma_pago'].value==0){
				document.getElementById("cuenta").style.visibility="hidden";
				document.getElementById("tarjeta").style.visibility="hidden";
				document.getElementById("cmr").style.visibility="hidden";
			}else{
				if(document.forms['mandato'].elements['forma_pago'].value==1){
					document.getElementById("cuenta").style.visibility="visible";
					document.getElementById("tarjeta").style.visibility="hidden";
					document.getElementById("cmr").style.visibility="hidden";
				}else{
					if(document.forms['mandato'].elements['forma_pago'].value==2){
						document.getElementById("cuenta").style.visibility="hidden";
						document.getElementById("tarjeta").style.visibility="visible";
						document.getElementById("cmr").style.visibility="hidden";
					}else{
						if (document.forms['mandato'].elements['forma_pago'].value==3){
							document.getElementById("cuenta").style.visibility="hidden";
							document.getElementById("tarjeta").style.visibility="hidden";
							document.getElementById("cmr").style.visibility="visible";
						}
					}
				}		
			}
		} else {		//Version de Netscape anterior a la 6
			if(document.forms['mandato'].elements['forma_pago'].value==0){
				document.layers['cuenta'].visibility='hide';
				document.layers['tarjeta'].visibility='hide';
				document.layers['cmr'].visibility='hide';
			}else{
				if(document.forms['mandato'].elements['forma_pago'].value==1){
					document.layers['cuenta'].visibility='show';
					document.layers['tarjeta'].visibility='hide';
					document.layers['cmr'].visibility='hide';
				}else{
					if(document.forms['mandato'].elements['forma_pago'].value==2){
						document.layers['cuenta'].visibility='hide';
						document.layers['tarjeta'].visibility='show';
						document.layers['cmr'].visibility='hide';
					}else{
						if (document.forms['mandato'].elements['forma_pago'].value==3){
							document.layers['cuenta'].visibility='hide';
							document.layers['tarjeta'].visibility='hide';
							document.layers['cmr'].visibility='show';
						}
					}
				}
			}
		}
	}
}

function abrir_ventana(url, name, w, h, scrol) {
	window.open(url,name,'width='+w+', height='+h+',scrollbars='+scrol);
}

function imprimir() {
	document.all.texto.style.visibility='hidden';
	document.all.opciones.style.visibility='hidden';
	form2.nombre_p.value=mandato.nombre.value;
	form2.rut_p.value=mandato.rut.value;
	form2.direccion_p.value=mandato.direccion.value;
	form2.mail_p.value=mandato.mail.value;
	form2.action='imprimir.php';
	form2.target='_blank';
	form2.method='post';
	//form2.action="Javascript: abrir_ventana('imprimir.php','imprimiendo',166,100,'no');";
	form2.submit();
	window.print();
}
//-->

