function zera() {
document.form1.c7.value="";
document.form1.reset();
document.form1.valor.value=0;
document.form1.instrucoes1.value="";
document.form1.oe.value = "";
}

document.onmousedown = checkClick
if (document.layers) { document.captureEvents(Event.MOUSEDOWN) }
function checkClick(ev) {
	if ( (navigator.appName == "Netscape") || (navigator.appName == "Opera") ) {
		if (ev.which != 1) {
			alert("Função não disponível !");  
			return false
		}	
	}
	else {
		if (event.button != 1) {
			alert("Função não disponível !");  
			return false
		}
	}
}

var jaclicou = "NAO";

function ver(actio_form) {

var descr=new Array(7);
descr[0]="Coml";
descr[1]="Trab";
descr[2]="Int";
descr[3]="Coml;Trab";
descr[4]="Coml;Int";
descr[5]="Trab;Int";
descr[6]="Coml;Trab;Int";

if(document.form1.nome_sacado.value == "") {  
window.alert("Informe o seu Nome, por favor.");
document.form1.nome_sacado.focus();
return (false);
}
if(document.form1.email.value == "") {  
window.alert("Informe o seu E-mail, por favor.");
document.form1.email.focus();
return (false);
}
	var teste = document.form1.email.value;
	if ((teste.indexOf("@",0) < 1) || (teste.indexOf("@",0) == teste.length - 1))
	{
		alert("O e-mail informado está incorreto.");
		document.form1.email.focus();
		return (false);
	}
	var teste1 = document.form1.email.value;
	if ((teste1.indexOf(".",0) < 1) || (teste1.indexOf(".",0) == teste1.length - 1))
	{
		alert("O e-mail informado está incorreto.");
		document.form1.email.focus();
		return (false);
	}

var tem=0;

for (xx=0; xx < 7; xx++) {

if (document.form1.Mod[xx].checked == true)
	{ 

// alert(xx);

	tem += 1;
	document.form1.valor.value = document.form1.Mod[xx].value;

// alert(document.form1.valor.value);

	document.form1.instrucoes1.value = "Módulo(s): " + descr[xx];
	document.form1.oe.value = descr[xx];

	}
}
if (tem == 0) {
window.alert("Você deve selecionar um Modelo de Contratos.");
document.form1.Mod[0].focus();
return (false);
}

document.form1.c7.value = 1;

if (document.form1.Mod[3].checked == true) { document.form1.c7.value = 2; }
if (document.form1.Mod[4].checked == true) { document.form1.c7.value = 2; }
if (document.form1.Mod[5].checked == true) { document.form1.c7.value = 2; }
if (document.form1.Mod[6].checked == true) { document.form1.c7.value = 3; }

document.form1.produtos.value = document.form1.oe.value;
document.form1.sacadoNome.value = document.form1.nome_sacado.value;
document.form1.sacadoEmail.value = document.form1.email.value;

// alert (document.form1.produtos.value);
// alert (document.form1.sacadoNome.value);
// alert (document.form1.sacadoEmail.value);
// return false;

document.form1.action = actio_form;

if (jaclicou == "NAO") { jaclicou="SIM"; document.form1.submit(); return true; }
else { window.alert ("Sua solicitação está sendo processada.\nAguarde, por favor."); return false; }

} 

