function imprimir(text)
	{
	text=document
	print(text)
	}

function janela(str) 
	{
	tipWin1 = window.open(str,'tipWin1','toolbar=no,width=200,height=200,scrollbars=no,resizable=no,top=1,left=500');
}

function janela_enq(str) 
	{
	tipWin1 = window.open(str,'tipWin1','toolbar=no,width=400,height=300,scrollbars=yes,resizable=no,top=200,left=420');
	}

function checkRadios() {
 var el = document.forms.testempr.elements;
 for(var i = 0 ; i < el.length ; ++i) {
  if(el[i].type == "radio") {
   var radiogroup = el[el[i].name]; // get the whole set of radio buttons.
   var itemchecked = false;
   for(var j = 0 ; j < radiogroup.length ; ++j) {
    if(radiogroup[j].checked) {
	 itemchecked = true;
	 break;
	}
   }
   if(!itemchecked) { 
    alert("Favor escolher uma resposta para a "+el[i].label+".");
    if(el[i].focus)
     el[i].focus();
	return false;
   }
  }
 }
 return true;
} 





// -------------------------------------------------------------------------------------------------------

