// JavaScript Document

function clearemail()
{

if (document.loginForm.DOMAIN.value == "customer id:")
{
   document.loginForm.DOMAIN.value = '';
}
 }
 
function clearpassword()
{

if (document.loginForm.PASSWORD.value == "password:")
{
   document.loginForm.PASSWORD.value = '';
}
 } 
 
 
 
 function clearemail2()
{

if (document.loginFormAccount.DOMAIN.value == "customer id:")
{
   document.loginFormAccount.DOMAIN.value = '';
}
 }
 
function clearpassword2()
{

if (document.loginFormAccount.PASSWORD.value == "password:")
{
   document.loginFormAccount.PASSWORD.value = '';
}
 } 
 
 
 
 function clearNameFirst()
{

if (document.newsForm.nameFirst.value == "first name:")
{
   document.newsForm.nameFirst.value = '';
}
 } 
 
 function clearNameLast()
{

if (document.newsForm.nameLast.value == "last name:")
{
   document.newsForm.nameLast.value = '';
}
 }
 
 
 
 
function clearemail2()
{

if (document.newsForm.email.value == "email:")
{
   document.newsForm.email.value = '';
}
 }
 
 function clearTransfer()
{

if (document.transferForm.transfer.value == "eg. yourdomain.com")
{
   document.transferForm.transfer.value = '';
}
 }
  
 
 
 
 
 function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function doDNRSearch(){
        var dnrForm=document.forms['dnrSearch'];
        var domainName=dnrForm.elements['domainName'];

        // test the domainName to see if it contains a dot
        // if so, we just submit the form unmodified
        var regex=/^.*\..*$/;
        if( regex.test(domainName.value) ){
            return true;
        }

        // otherwise, we need to add on the selected TLD before we submit
        var extSelect=dnrForm.elements['ext'];
        var ext=extSelect.options[extSelect.selectedIndex].value;

        domainName.value=domainName.value + "." + ext;
        return true;
    }