function clear_field(field){
   
	if (field.value==field.defaultValue)    {    

	field.value=''    }
}

	function check_field(field){

    if (field.value=='' ||
    field.value==' ')    {

        field.value=field.defaultValue    }
}

	function validate_form(){

    if (document.jsform.name.value==document.jsform.name.defaultValue ||
    document.jsform.name.value.indexOf(' ',0)==0)    {
    alert('\nVocê não preencheu o campo de Nome')
    document.jsform.name.select()
    document.jsform.name.focus()
    return false    
}

    	else    {



if(confirm('\nClique em x=x[ OK ]x=x para enviar o cadastro.')) 
{

            return true        
}    

    else        {

            return false        
}

   }


 }
 
 isNS = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
    isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;

    function sendForm(valSubmitForm) {
        if (window.external != undefined && window.external != null) window.external.AutoCompleteSaveForm(ClientRegistryBegin);
        document.ClientRegistryBegin.submitForm.value = valSubmitForm;
        document.ClientRegistryBegin.submit();
    }

    function mostraJan(parametro) {
	if (parametro == '1') {
	    if (isIE) {
                document.all.Layer1.style.visibility = "visible";
            } else if (isNS) {
                document.getElementById("Layer1").style.visibility = "visible";
            }
	} else {
            if (isIE) {
                document.all.Layer1.style.visibility = "hidden";
            } else if (isNS) {
                document.getElementById("Layer1").style.visibility = "hidden";
            }
        }
    }
	
	function openWin( windowURL, windowName, windowFeatures ) { 
		return window.open( windowURL, windowName, windowFeatures ) ; 
	} 

