	function mensagens_escrever(cdg){
	document.write(mensagens(cdg)) 	
	}

	function rotulo_escrever(cdg){
	document.write(rotulo(cdg)) 	
	}
	
	function rotulo_41_escrever(cdg){
	document.write(rotulo_41(cdg)) 	
	}
	
	function AnySelected(){			
		var any = false;
		var count = 0;		

		while(!any && count < document.form1.lista.length) {			
			any = (document.form1.lista[count].checked || document.form1.lista[count].type == "hidden");
			count++;
	    }
		if (!any)
		{
			alert(mensagens(11));
			return false;
		}	
		else{
			document.form1.nextAction.value="your_selection";			
			document.form1.submit();			
			return true;
		}		
	}
	
		
	function testacampos (){
		if (document.formS.expressao.value.length == 0) 
		{
			alert(mensagens(12));
			return false;
		}
	} 
	
	function testacampos2 (){
		if (document.formG.expressao.value.length == 0 && document.formG.expressao2.value.length == 0 && document.formG.expressao3.value.length == 0) 
		{
			alert(mensagens(12));
			return false;
		}
		if (document.formG.expressao.value.length == 0 && (document.formG.expressao2.value.length > 0 || document.formG.expressao3.value.length > 0))
		{
			alert(mensagens(13));
			return false;
		}
	} 
	
	function showPrintDialog(){
			var version = Math.round(parseFloat(navigator.appVersion) * 1000);		
			if (version >= 4000){
				window.print();
			}
	}	
	
	function limpar() {
		document.formG.reset();
		return false;
	}
	
	
	function ShowSaveComplete() {

		if (document.all) {
			var OLECMDID_SAVEAS = 4;
			var OLECMDEXECOPT_DONTPROMPTUSER = 2;
			var OLECMDEXECOPT_PROMPTUSER = 1;
			var WebBrowser = "<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>";
		document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
		WebBrowser1.ExecWB(OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER);
		WebBrowser1.outerHTML = "";
		} else {
			alert(mensagens(14));
		}
	}

	
	function pegaurl(){
     document.write('<input type="hidden" name="pesquisa" value="' + window.location + '">');
	 // window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;
	}
		
		
	function enviaUrl(){
		window.open('/cgi-bin/wxis/?IsisScript=biblioteca%2Fdoc%2Fenviar2.xis&URL=' + window.location, 'window2', 'resizable=yes, width=400, height=400');
	}
	
	function fechar() {
		window.close();
	}
