function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
 }

function verifica(){

	if (document.form1.tipo_camiseta.value == "0") {
		alert("Favor escolher um tipo de produto.");
		return false;
	} else {
		if (document.form1.tipo_camiseta.value == "Camiseta Tradicional") {
			if (document.form1.qtdTradicionalTamanhoP.value == "0" &
				document.form1.qtdTradicionalTamanhoM.value == "0" &
				document.form1.qtdTradicionalTamanhoG.value == "0" &
				document.form1.qtdTradicionalTamanhoGG.value == "0" &
				document.form1.qtdTradicionalTamanhoXG.value == "0" &
				document.form1.qtdTradicionalTamanhoXGG.value == "0" &
				document.form1.qtdTradicionalTamanhoSuper.value == "0" &
				document.form1.qtdTradicionalTamanho2a.value == "0" &
				document.form1.qtdTradicionalTamanho4a.value == "0" &
				document.form1.qtdTradicionalTamanho6a.value == "0" &
				document.form1.qtdTradicionalTamanho8a.value == "0" &
				document.form1.qtdTradicionalTamanho10a.value == "0" &
				document.form1.qtdTradicionalTamanho12a.value == "0" &
				document.form1.qtdTradicionalTamanho14a.value == "0") {
					alert("É necessário informar a quantidade de Camisetas que corresponde ao tamanho.");
					return false;
			}	
		}
		if (document.form1.tipo_camiseta.value == "Camisa Polo") {
			if (document.form1.qtdPoloTamanhoP.value == "0" &
				document.form1.qtdPoloTamanhoM.value == "0" &
				document.form1.qtdPoloTamanhoG.value == "0" &
				document.form1.qtdPoloTamanhoGG.value == "0" &
				document.form1.qtdPoloTamanhoXG.value == "0" &
				document.form1.qtdPoloTamanhoXGG.value == "0" &
				document.form1.qtdPoloTamanho2a.value == "0" &
				document.form1.qtdPoloTamanho4a.value == "0" &
				document.form1.qtdPoloTamanho6a.value == "0" &
				document.form1.qtdPoloTamanho8a.value == "0" &
				document.form1.qtdPoloTamanho10a.value == "0" &
				document.form1.qtdPoloTamanho12a.value == "0") {
					alert("É necessário informar a quantidade de Camisa Polo que corresponde ao tamanho.");
					return false;
			}
		}
		if (document.form1.tipo_camiseta.value == "Camiseta de Formando") {
			if (document.form1.qtdFormandoTamanhoP.value == "0" &
				document.form1.qtdFormandoTamanhoM.value == "0" &
				document.form1.qtdFormandoTamanhoG.value == "0" &
				document.form1.qtdFormandoTamanhoGG.value == "0" &
				document.form1.qtdFormandoTamanhoXG.value == "0" &
				document.form1.qtdFormandoTamanhoXGG.value == "0" &
				document.form1.qtdFormandoTamanhoSuper.value == "0" &
				document.form1.qtdFormandoTamanho2a.value == "0" &
				document.form1.qtdFormandoTamanho4a.value == "0" &
				document.form1.qtdFormandoTamanho6a.value == "0" &
				document.form1.qtdFormandoTamanho8a.value == "0" &
				document.form1.qtdFormandoTamanho10a.value == "0" &
				document.form1.qtdFormandoTamanho12a.value == "0" &
				document.form1.qtdFormandoTamanho14a.value == "0") {
					alert("É necessário informar a quantidade de Camiseta de Formandos que corresponde ao tamanho.");
					return false;
			}
		}
		if (document.form1.tipo_camiseta.value == "Camiseta com Foto") {
			if (document.form1.qtdFotoTamanhoP.value == "0" &
				document.form1.qtdFotoTamanhoM.value == "0" &
				document.form1.qtdFotoTamanhoG.value == "0" &
				document.form1.qtdFotoTamanhoGG.value == "0" &
				document.form1.qtdFotoTamanhoXG.value == "0" &
				document.form1.qtdFotoTamanhoXGG.value == "0" &
				document.form1.qtdFotoTamanho2a.value == "0" &
				document.form1.qtdFotoTamanho4a.value == "0" &
				document.form1.qtdFotoTamanho6a.value == "0" &
				document.form1.qtdFotoTamanho8a.value == "0" &
				document.form1.qtdFotoTamanho10a.value == "0" &
				document.form1.qtdFotoTamanho12a.value == "0" &
				document.form1.qtdFotoTamanho14a.value == "0") {
					alert("É necessário informar a quantidade de Camiseta com Foto que corresponde ao tamanho.");
					return false;
			}
		}
		if (document.form1.tipo_camiseta.value == "Abada") {
			if (document.form1.qtdAbada.value == "0") {
				alert("É necessário informar a quantidade de Abadas.");
				return false;
			}
		}
		if (document.form1.tipo_camiseta.value == "Almofadas") {
			if (document.form1.qtdAlmofadas.value == "0") {
				alert("É necessário informar a quantidade de Almofadas.");
				return false;
			}
		}
		if (document.form1.tipo_camiseta.value == "Baby Look") {
			if (document.form1.qtdBabyTamanhoP.value == "0" &
				document.form1.qtdBabyTamanhoM.value == "0" &
				document.form1.qtdBabyTamanhoG.value == "0" &
				document.form1.qtdBabyTamanhoGG.value == "0") {
					alert("É necessário informar a quantidade de Baby Look que corresponde ao tamanho.");
					return false;	
			}
		}
		if (document.form1.tipo_camiseta.value == "Bone e Bandana") {
			if (document.form1.qtdBandana.value == "0" &
				document.form1.qtdBone.value == "0") {
				alert("É necessário informar a quantidade de Bandana ou Boné.");
				return false;
			}
		}		
		if (document.form1.tipo_camiseta.value == "Calca") {
			if (document.form1.qtdCalca.value == "0") {
				alert("É necessário informar a quantidade de Calça.");
				return false;
			}
		}
		if (document.form1.tipo_camiseta.value == "Colete e Avental") {
			if (document.form1.qtdColete.value == "0" &
				document.form1.qtdAvental.value == "0") {
				alert("É necessário informar a quantidade de Colete ou Avental.");
				return false;
			}
		}
		if (document.form1.tipo_camiseta.value == "Jaleco e Capa") {
			if (document.form1.qtdJaleco.value == "0" &
				document.form1.qtdCapa.value == "0") {
				alert("É necessário informar a quantidade de Jaleco ou Capa.");
				return false;
			}	
		}
		if (document.form1.tipo_camiseta.value == "Regatas") {
			if (document.form1.qtdRegata.value == "0") {
				alert("É necessário informar a quantidade de Regatas.");
				return false;
			}	
		}
	}
	
	if (document.form1.com_estampa.checked) {
		if (document.form1.silk1.checked) {
			if (document.form1.silk_frente.value == "0" & document.form1.silk_costas.value == "0" &
				document.form1.silk_direita.value == "0" & document.form1.silk_esquerda.value == "0") {
				alert("Favor informar a quantidade de cores na Estampa.");
				return false;
			}
		} else if (document.form1.bordado1.checked) {
			if (document.form1.bordado_frente.value == "0" & document.form1.bordado_costas.value == "0" &
				document.form1.bordado_direita.value == "0" & document.form1.bordado_esquerda.value == "0") {
				alert("Favor informar a quantidade de cores na Estampa.");
				return false;
			}
				
		} else if (document.form1.transfer1.checked) {	
			if (document.form1.lugar_transfer[0].checked == false & 
				document.form1.lugar_transfer[1].checked == false &
				document.form1.lugar_transfer[2].checked == false &
				document.form1.lugar_transfer[3].checked == false) {
				alert("Favor informar o lugar do Transfer.");
				return false;
			}	
		}
	}
	
	if (document.form1.cor_tecido.value == "" & document.form1.tipo_camiseta.value != "Bone e Bandana") {
		alert("É necessário informar a Cor do Tecido.");
		return false;
	}
	
	if (document.form1.nome.value == "") {
		alert("Favor informar seu Nome.");
		document.form1.nome.focus();
		return false;
	}
	if (document.form1.email.value == "") {
		alert("Favor informar seu Email.");
		document.form1.email.focus();
		return false;
	}
	
	if (document.form1.ddd.value == "") {
		alert("Favor informar seu DD.");
		document.form1.ddd.focus();
		return false;
	}
	
	if (document.form1.tel.value == "") {
		alert("Favor informar seu Telefone.");
		document.form1.tel.focus();
		return false;
	}

	if (document.form1.cidade.value == "") {
		alert("Favor informar sua Cidade.");
		document.form1.cidade.focus();
		return false;
	}

	if (document.form1.estado.value == "0") {
		alert("Favor informar seu Estado.");
		document.form1.estado.focus();
		return false;
	}
	
	if (document.form1.cep.value == "") {
		alert("Favor informar seu CEP.");
		document.form1.cep.focus();
		return false;
	}
	
}

function ValidaEstampa() {


	return true;
}


function Ajuda(type) {
	
	if(type==1) {
		if (document.getElementById("resp1").style.display == "")
			document.getElementById("resp1").style.display = "none";
		else
			document.getElementById("resp1").style.display = "";
	}

	if(type==2) {
		if (document.getElementById("resp2").style.display == "")
			document.getElementById("resp2").style.display = "none";
		else
			document.getElementById("resp2").style.display = "";
	}
	if(type==3) {
		if (document.getElementById("resp3").style.display == "")
			document.getElementById("resp3").style.display = "none";
		else
			document.getElementById("resp3").style.display = "";
	}
	if(type==4) {
		if (document.getElementById("resp4").style.display == "")
			document.getElementById("resp4").style.display = "none";
		else
			document.getElementById("resp4").style.display = "";
	}
	if(type==5) {
		if (document.getElementById("resp5").style.display == "")
			document.getElementById("resp5").style.display = "none";
		else
			document.getElementById("resp5").style.display = "";
	}
	if(type==6) {
		if (document.getElementById("resp6").style.display == "")
			document.getElementById("resp6").style.display = "none";
		else
			document.getElementById("resp6").style.display = "";
	}
	if(type==7) {
		if (document.getElementById("resp7").style.display == "")
			document.getElementById("resp7").style.display = "none";
		else
			document.getElementById("resp7").style.display = "";
	}
	if(type==8) {
		if (document.getElementById("resp8").style.display == "")
			document.getElementById("resp8").style.display = "none";
		else
			document.getElementById("resp8").style.display = "";
	}
	if(type==9) {
		if (document.getElementById("resp9").style.display == "")
			document.getElementById("resp9").style.display = "none";
		else
			document.getElementById("resp9").style.display = "";
	}
	if(type==10) {
		if (document.getElementById("resp10").style.display == "")
			document.getElementById("resp10").style.display = "none";
		else
			document.getElementById("resp10").style.display = "";
	}
	if(type==11) {
		if (document.getElementById("resp11").style.display == "")
			document.getElementById("resp11").style.display = "none";
		else
			document.getElementById("resp11").style.display = "";
	}
	if(type==12) {
		if (document.getElementById("resp12").style.display == "")
			document.getElementById("resp12").style.display = "none";
		else
			document.getElementById("resp12").style.display = "";
	}
	if(type==13) {
		if (document.getElementById("resp13").style.display == "")
			document.getElementById("resp13").style.display = "none";
		else
			document.getElementById("resp13").style.display = "";
	}
	if(type==14) {
		if (document.getElementById("resp14").style.display == "")
			document.getElementById("resp14").style.display = "none";
		else
			document.getElementById("resp14").style.display = "";
	}
	if(type==15) {
		if (document.getElementById("resp15").style.display == "")
			document.getElementById("resp15").style.display = "none";
		else
			document.getElementById("resp15").style.display = "";
	}
}

function OptionEstampa(arg1) {
	if (arg1=="0") {
		document.getElementById("tipoestampa").style.display = "none";
		document.getElementById("silk").style.display = "none";
		document.getElementById("bordado").style.display = "none";
		document.getElementById("transfer").style.display = "none";
	}
	if (arg1=="1") {
		document.getElementById("tipoestampa").style.display = "";
		document.getElementById("silk").style.display = "";
	}
}

function OptionTipoEstampa(arg2) {
	document.getElementById("silk").style.display = "none";
	document.getElementById("bordado").style.display = "none";
	document.getElementById("transfer").style.display = "none";
	if (arg2=="1") {
		document.getElementById("silk").style.display = "";
	}
	if (arg2=="2") {
		document.getElementById("bordado").style.display = "";
	}
	if (arg2=="3") {
		document.getElementById("transfer").style.display = "";
	}

}


function ChangeProduto(arg1) {

	document.getElementById("abada").style.display = "none";
	document.getElementById("almofadas").style.display = "none";
	document.getElementById("baby").style.display = "none";
	document.getElementById("bone").style.display = "none";
	document.getElementById("calca").style.display = "none";
	document.getElementById("polo").style.display = "none";
	document.getElementById("formando").style.display = "none";
	document.getElementById("foto").style.display = "none";
	document.getElementById("tradicional").style.display = "none";
	document.getElementById("colete").style.display = "none";
	document.getElementById("jaleco").style.display = "none";
	document.getElementById("regata").style.display = "none";
	document.getElementById("cor").style.display = "none";
	document.getElementById("escolheestampa").style.display = "none";
	document.getElementById("tipoestampa").style.display = "none";
	document.getElementById("silk").style.display = "none";
	document.getElementById("bordado").style.display = "none";
	document.getElementById("transfer").style.display = "none";
	document.getElementById("cor").style.display = "none";
	
	if(arg1=="Abada") {
			document.getElementById("abada").style.display = "";
			document.getElementById("cor").style.display = "";
	}
	if(arg1=="Almofadas") {
			document.getElementById("almofadas").style.display = "";
	}
	if(arg1=="Baby Look") {
			document.getElementById("baby").style.display = "";
			document.getElementById("cor").style.display = "";
	}
	if(arg1=="Bone e Bandana") {
			document.getElementById("bone").style.display = "";
	}
	if(arg1=="Calca") {
			document.getElementById("calca").style.display = "";
			document.getElementById("cor").style.display = "";
	}
	if(arg1=="Camisa Polo") {
			document.getElementById("polo").style.display = "";
			document.getElementById("cor").style.display = "";
			document.getElementById("escolheestampa").style.display = "";
	}
	if(arg1=="Camiseta de Formando") {
			document.getElementById("formando").style.display = "";
			document.getElementById("cor").style.display = "";
			document.getElementById("escolheestampa").style.display = "";
	}
	if(arg1=="Camiseta com Foto") {
			document.getElementById("foto").style.display = "";
			document.getElementById("cor").style.display = "";
			document.getElementById("escolheestampa").style.display = "";
	}
	if(arg1=="Camiseta Tradicional") {
			document.getElementById("tradicional").style.display = "";
			document.getElementById("cor").style.display = "";
			document.getElementById("escolheestampa").style.display = "";
	}
	if(arg1=="Colete e Avental") {
			document.getElementById("colete").style.display = "";
			document.getElementById("cor").style.display = "";
	}
	if(arg1=="Jaleco e Capa") {
			document.getElementById("jaleco").style.display = "";
	}
	if(arg1=="Regatas") {
			document.getElementById("regata").style.display = "";
			document.getElementById("cor").style.display = "";
			document.getElementById("escolheestampa").style.display = "";
	}
	
}
