function createTarget(t){
    document.frmlogon.txtusuario.value = '';
    document.frmlogon.txtsenha.value = '';
    if (document.frmlogon.txtu.value.length < 4)
       {
       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)
       {
       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 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(); }
}


function openWin(winName, urlLoc, w, h, showStatus, isViewer) {
l = (screen.availWidth - w)/2;
t = (screen.availHeight - h)/2;
features  = "toolbar=no";      // yes|no 
features += ",location=no";    // yes|no 
features += ",directories=no"; // yes|no 
features += ",status=" + (showStatus?"yes":"no");  // yes|no 
features += ",menubar=no";     // yes|no 
features += ",scrollbars=" + (isViewer?"yes":"no");   // auto|yes|no 
features += ",resizable=" + (isViewer?"yes":"no");   // yes|no 
features += ",height=" + h;
features += ",width=" + w;
features += ",left=" + l;
features += ",top=" + t;
window.open(urlLoc,winName,features);
} 

function PopWindow(janela,nome)
{
window.open(janela,nome,'width=screen.width,height=screen.heigth,menubar=no,scrollbars=yes,toolbar=yes,location=no,directories=no,resizable=no,top=0,left=0');
}

function winopen(url)
{
win=window.open(url,'lixo','ScrollBars');
}


function winopen1(url)
{
win=window.open(url,'lixo','FullScreen,ScrollBars');
}

//-->

