function formCheck(formobj){
	//1) Enter name of mandatory fields
	var fieldRequired = Array("referência","email","dominio","descricao","Nome","nome","E_mail","Assunto","Mensagem","login","senha","palavra-chave", "endereco", "Cidade","CEP", "estado", "Tel", "LINK_CAT", "LINK_SUB","LINK_NAME" ,"LINK_URL", "LINK_DESC", "tipo_aco", "tratamento", "RG", "CPF");
	//2) Enter field description to appear in the dialog box
	var fieldDescription = Array("referência","email","dominio","descricao","Nome","nome","E_mail","Assunto","Mensagem","login","senha","palavra-chave","endereco", "Cidade","CEP", "estado", "Tel","LINK_CAT", "LINK_SUB","LINK_NAME" ,"LINK_URL", "LINK_DESC", "tipo_aco", "tratamento", "RG", "CPF");
	//3) Enter dialog message
	var alertMsg = "Para melhor a GRAN RIGOR atendê-lo, por favor, preencha o fomulá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;
	}
}



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='258' height='59'>");
   document.write("<param name='movie' value='../logo.swf'>");
   document.write("<param name='quality' value='high'>");
       document.write("<param name='wmode' value='transparent'>");
   document.write("<embed src='../logo.swf' quality='high' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='258' height='59'></embed>");
   document.write("</object>");}
   
   function topo2(){
    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='30' height='10'>");
   document.write("<param name='movie' value='../botoes.swf'>");
   document.write("<param name='quality' value='high'>");
       document.write("<param name='wmode' value='transparent'>");
   document.write("<embed src='../botoes.swf' quality='high' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='30' height='10'></embed>");
   document.write("</object>");}   
   
      function topo3(){
    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='768' height='68'>");
   document.write("<param name='movie' value='cabec3.swf'>");
   document.write("<param name='quality' value='high'>");
       document.write("<param name='wmode'value='transparent'>");
   document.write("<embed src='cabec3.swf' quality='high'   wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='768' height='68'></embed>");
   document.write("</object>");}  
   
    function topo4(){
    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='710' height='68'>");
   document.write("<param name='movie' value='cabec2.swf'>");
   document.write("<param name='quality' value='high'>");
       document.write("<param name='wmode'>");
   document.write("<embed src='cabec2.swf' quality='high'  pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='710' height='68'></embed>");
   document.write("</object>");}  
   
 function topo5(){
    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='710' height='75'>");
   document.write("<param name='movie' value='cabec3.swf'>");
   document.write("<param name='quality' value='high'>");
       document.write("<param name='wmode'>");
   document.write("<embed src='cabec3.swf' quality='high'  pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='710' height='75'></embed>");
   document.write("</object>");} 
