
    /*=========================================================================*/
	/*=============Action Java Script do Allan Studio v2=======================*/
	/*=========================================================================*/

    /*=========================================================================*/
	/*=============Exibe Data e hora na Tela ==================================*/
	/*=========================================================================*/
	function hora() {
	today = new Date();
	document.write("A data e a hora é " + today.toString());
	
	}
	
	function escrita() {
	
	
	document.write("<center>");
	document.write("<h1>Oi</h1><p>Após o <i>clique</i></p>");
	document.write("<p><strong>documento</strong> foi reescrito.</p><br/> o Título também!");
	document.title ="Novo Teste";
	document.write("</center>");
	
	
	}

	/*=========================================================================*/
	/*=============Abre nova janela em Dialog==================================*/
	/*=========================================================================*/
	function resultado() {
	
	var abrejanela = window.open("sisop_action.php");
	
	
	}

	/*=========================================================================*/
	/*=============PERGUNTA O NOME DO USUÁRIO E RETORNA NA TELA================*/
	/*=========================================================================*/
	function nomeask() {
	
	<!--
	var Nome;
	Nome=window.prompt("Digite seu nome: ", "Preencha seu nome");
	alert("Bem vindo ao meu site " + Nome);
	//-->
}

function valida() {
	/*=========================================================================*/
	/*========================VALIDAÇÃO DO CAMPO NOME==========================*/
	/*=========================================================================*/
	if(document.form.nome.value=="" || document.form.nome.value.length < 3 || document.form.mensagem.value=="")
	{
	alert( "Preencha campo NOME corretamente!" );
	document.form.nome.focus();
	return false;
	}
		
	if( document.form.email.value=="" || document.form.email.value.indexOf('@')==-1 || document.form.email.value.indexOf('.')==-1 ){
	alert( "Preencha campo E-MAIL corretamente! está faltando o sinal de @ ou ." );
	document.form.email.focus();
	return false;
	}
	
	else 
	alert("Formulário enviado com sucesso!");
	form.submit();
	

	}

	function calcula(form) {
	<!--
	if (confirm("Tem certeza?"))
		form.result.value = eval(form.expr.value);
	else
		alert("Tente novamente");
	//-->	
	}
	
	


	/*=========================================================================*/
	/*========================OK_TEST	=======================================*/
	/*=========================================================================*/
	function ok() {
	alert('Comunicação com Java Script está OK!')
	}


	/*=========================================================================*/
	/*==============SOMENTE NUMEROS NO INPUT TEXT==============================*/
	/*=========================================================================*/
	function somentenumero(campo){  
	 var digits="0123456789"  
	 var campo_temp   
		 for (var i=0;i<campo.value.length;i++){  
			 campo_temp=campo.value.substring(i,i+1)   
			 if (digits.indexOf(campo_temp)==-1){  
				campo.value = campo.value.substring(0,i);  
			 }  
		 }  
	 } 
	 
 
 	/*=========================================================================*/
	/*==============JANELA DIALOG(Apenas IE8===================================*/
	/*=========================================================================*/
	 <!--
	function dialog()
	{
	caixa = "window.showModelessDialog('sisop_action.php', '', 'Resizable:no; DialogHeight:640px; DialogWidth:480px; Edge:raised; Help:no; Scroll:yes; Status:yes; Center:yes;');";
	eval(caixa);
	}
	//-->
	
	/*=========================================================================*/
	/*========================VALIDAÇÃO DO CAMPO RADIOBOX==========================*/
	/*=========================================================================*/
	<!--
	function validaperguntas() {

	if(document.form.respa.value=="" || document.question.respb.value=="" || document.question.respc.value=="" || document.question.respd.value=="" || document.question.respf.value=="" || document.question.respg.value=="" || document.question.resph.value=="" || document.question.respi.value=="" || document.question.respj.value=="" || document.question.respk.value=="" || document.question.respe.value=="")
	{
	alert( "Nenhuma questão pode ficar sem ser respondida!");
	return false;
	}
	else 
	alert("Formulário de perguntas e respostas enviado com sucesso!");
	form.submit();
	}
	//-->

