function createTarget(t){
    document.frmlogon.txtusuario.value = '';
    document.frmlogon.txtsenha.value = '';
    if (document.frmlogon.txtu.value.length < 4 || document.frmlogon.txtu.value=='Nome de usuário')
       {
       alert ('O campo USUÁRIO deve possuir, pelo menos 4 caracteres.');
       document.frmlogon.txtu.focus();
       return false;
       }
    else if (document.frmlogon.txts.value.length < 4 || document.frmlogon.txts.value=='Senha')
       {
       alert ('O campo Senha deve possuir, pelo menos 4 caracteres.');
       document.frmlogon.txts.focus();
       return false;
       }
    else 
       {
       document.frmlogon.txtusuario.value=document.frmlogon.txtu.value;
       document.frmlogon.txtu.value='';
       document.frmlogon.txtsenha.value=document.frmlogon.txts.value;
       document.frmlogon.txts.value='';
       window.open('',t,'status=yes,scrollbars=no,width=' + (screen.availWidth - 10) + ',height=' + (screen.availHeight - 60) + ',top=0,left=0');
       return true;
       }
}

function validar2(t)
	   {
	   if (document.frmenviar.txtnome.value.length < 5)
	      {
	      alert('O campo Nome deve ser preenchido com pelo menos 5 caracteres');
	      document.frmenviar.txtnome.focus();
	      return false;
	      }
       else  if (document.frmenviar.txtmm.value.length < 15)
	      {
	      alert('Vocę deve preencher a mensagem com pelo menos 15 caracteres.');
	      document.frmenviar.txtmm.focus();
	      return false;
	      }
	   else
	      {
	      NewWindow('',t,300,200,0);
	      return true;
	      }
	   }
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=0'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) 
   { 
   win.window.focus(); 
   }
}
