function jsOpenWindow(myUrl,winName,myTitle,sizeX,sizeY)
{
  myTarget = winName;
  myArgs = "width=" + sizeX + ","
	+ "height=" + sizeY + ","
	+ "location=0,"
	+ "menubar=0,"
	+ "resizable=0,"
	+ "scrollbars=0,"
	+ "status=0,"
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=200,"
	+ "screeny=200,"
	+ "left=200,"
	+ "top=200";
  newWindow = open(myUrl, myTarget, myArgs);
  newWindow.focus();
  return false;
}

function jsOpenWindow2(myUrl,winName,myTitle,sizeX,sizeY)
{
  myTarget = winName;
  myArgs = "width=" + sizeX + ","
	+ "height=" + sizeY + ","
	+ "location=0,"
	+ "menubar=1,"
	+ "resizable=0,"
	+ "scrollbars=1,"
	+ "status=0,"
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=200,"
	+ "screeny=200,"
	+ "left=200,"
	+ "top=200";
  newWindow = open(myUrl, myTarget, myArgs);
  newWindow.focus();
  return false;
}

function formCheck() {
if (document.registerorlogin.Password.value=="") {
document.registerorlogin.action="/user/register/";
document.registerorlogin.submit();
}
else {
document.registerorlogin.action="/user/login/";
document.registerorlogin.submit();
}
}


function checkCheckBox(f) {
  if (f.agree.checked == false) {
    alert('Pleace agree to the terms and conditions.');
    return false;
  } else
    return true;
}

function editdns ()
{
  document.editcontact.editdns.value = 1;
  document.editcontact.submit();
}

function showDomain(divId)
{
	document.getElementById(divId).style.display = 'block';
}

function hideDomain(divId)
{
	document.getElementById(divId).style.display = 'none';
}

function doClear(theText,standard) {
  if (theText.value == standard) {
    theText.value = ""
  }
}