
function formCheck(formobj){
	//1) Enter name of mandatory fields
	var fieldRequired = Array("depto","email","dominio","descricao","Nome","nome","E_mail","Assunto","Mensagem","login","senha","palavra-chave", "endereco", "cidade", "estado", "tel", "LINK_CAT", "LINK_SUB","LINK_NAME" ,"LINK_URL", "LINK_DESC", "mensagem", "tipo_aco", "tratamento");
	//2) Enter field description to appear in the dialog box
	var fieldDescription = Array("depto","email","dominio","descricao","Nome","nome","E_mail","Assunto","Mensagem","login","senha","palavra-chave","endereco", "cidade", "estado", "tel","LINK_CAT", "LINK_SUB","LINK_NAME" ,"LINK_URL", "LINK_DESC", "mensagem", "tipo_aco", "tratamento");
	//3) Enter dialog message
	var alertMsg = "Para melhor a POUSADA DOS MARCHADORES atendê-lo, por favor, preencha o formulário corretamente:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}



// -->

<!-- begin

function popup(Site)
{
window.open(Site,'PopupName','toolbar=no,menubar=no,statusbar=no,location=no,scrollbars=no,resizable=no,width=300,height=413')
}

// end -->

<!-- Begin
function popUp1(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=480');");
}
// End -->





function topo1(){
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='200' height='130'>");
   document.write("<param name='movie' value='../novo_cabec.swf'>");
   document.write("<param name='quality' value='high'>");
       document.write("<param name='wmode' value='transparent'>");
   document.write("<embed src='../novo_cabec.swf' quality='high' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='200' height='130'></embed>");
   document.write("</object>");}

