function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function TestForm(form)
{
if ( !TestWhois(form) ) return false; return true;
}
function TestWhois(form)
{
str = document.domainForm.dom.value;
if ( str.indexOf('www.', 0) != -1)
{
alert("\nNão entre com www.\n\n");
form.dom.value = "";
document.domainForm.dom.focus(); return false;
}
if ( str.indexOf('.', 0) != -1)
{
alert("\nNão entre com a extensão do domínio.\n\n"); form.dom.value = "";
document.domainForm.dom.focus(); return false; }
if ( str == "" ) 
{
alert("\nO nome do domínio está em branco.\n\n");
document.domainForm.dom.focus(); return false;
}
for ( var i = 0; i < str.length; i++ )
{
var ch = str.substring(i, i + 1);
if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch)) && ch != '-')
{
alert("Você utilizou caracteres não permitidos. Use apenas letras, números ou -."); form.dom.value = "";
document.domainForm.dom.focus();
return false;
}
}
return true;
}
function popup(url, intWi, intHei, scr, nome, intTop, intLeft) {
    if (intLeft == null)
		{intLeft = 10
		 intTop = 10
		 }
	var janela = null
    janela=window.open(url,nome,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scr+',resizable=no,menubar=no,width=' + intWi + ',height=' + intHei+ ', left=' + intLeft + ', top=' + intTop + '');
}
window.defaultStatus="SuperDomínio - Registro de Domínio"
