/*  
+=======================================================================================================+
|	AUTOR: Victor Hugo de Oliveira Campos																|
|	DATA: 28/05/2007																					|
|	ARQUIVO: funcoes.js																					|
+=======================================================================================================+																					
|	FUNCAO: Funcoes diversas em javascript.     														|
|																										| 
|	DESTROI/ALTERA: -																					|
|																										|
|	OBS.01:   																							|
|																										|
+=======================================================================================================+
*/

/*
+===================================================================================+
|   Funcao para limpar campo texto.						  							|
|																					|
|	nome_campo 		=> Nome do campo a ser limpo.									|
|																					|
+===================================================================================+
*/
function clear_text(nome_campo)
{
	if(nome_campo.defaultValue==nome_campo.value)
	{
		nome_campo.value = ""
	}
}

function confirma_acao(msg,form,kill_item)
{
	input_box=confirm(msg);
	if (input_box==true)
	{ 
		window.location.href = form+".php?exc="+kill_item;
	}
	else
	{
		// NADA
	}
}

