function form_busca(){
	document.forms[0].busca.value = "";
}

function CheckForm () {

	//Check for a word to search
	if (document.frmSiteSearch.search.value==""){
		alert("Por favor, coloque a palavra que você deseja encontrar");
		document.frmSiteSearch.search.focus();
		return false;
	}
	
	return true
}

function ValidarFormularioProduto(){
	formOk = false;
	formMat = false;
	texto = "Selecione:"
	for(i=0;i < document.frmProduto.tipo.length;i++){
		if (document.frmProduto.tipo[i].checked==true){
			formOk = true;
		}
	}

	if (formOk == false){
		alert("Selecione o tipo");
		return false;
	}

	return true;
}


function ValidarFormularioSeuCadastro(){
	if (document.frmSeuCadastro.email.value == ""){
		alert("Preencha o seu email");
		return false;
	}
	if (document.frmSeuCadastro.senha.value == ""){
		alert("Preencha a senha do seu cadastro");
		return false;
	}
	return true;
}

function ValidarFormularioNovoCadastro(){
	if (document.frmNovoCadastro.Nome.value == ""){
		alert("Preencha o seu nome");
		return false;
	}
	if (document.frmNovoCadastro.Email.value == ""){
		alert("Preencha o seu email");
		return false;
	}
	if (document.frmNovoCadastro.Senha.value == ""){
		alert("Preencha o sua senha");
		return false;
	}
	if (document.frmNovoCadastro.ConfSenha.value == ""){
		alert("Confirme sua senha");
		return false;
	}
	if (document.frmNovoCadastro.Cidade.value == ""){
		alert("Preencha sua cidade");
		return false;
	}
	if (document.frmNovoCadastro.Estado.value == ""){
		alert("Preencha o Estado");
		return false;
	}
	return true;
}

function ValidarFormularioContato(){
	if (document.frmContato.Nome.value == ""){
		alert("Preencha o seu nome");
		return false;
	}
	if (document.frmContato.Email.value == ""){
		alert("Preencha o seu email");
		return false;
	}
	if (document.frmContato.Assunto.value == ""){
		alert("Selecione o assunto");
		return false;
	}
	if (document.frmContato.Mensagem.value == ""){
		alert("Preencha sua mensagem");
		return false;
	}
	return true;
}


var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc,tag ) {
	
	var tgs = new Array( 'p' );

	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];
	cEl.style.fontSize = szs[ sz ];

	for ( i = 0; i < tgs.length; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
	for ( j = 0; j < cTags.length; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}
