var clk_flg = false;

function dblclk(){
	if(clk_flg){
		return false;
	}else{
		clk_flg = true;
		return true;
	}
}

function other_domain_form_validator(oForm)
{
	return true;
}

function domain_form_validator(oForm)
{
	if (oForm.domain.value == ""){
		alert("ご希望のドメインを入力してください。");
		oForm.domain.focus();
		return false;
	}
	if (oForm.ck_com.checked == true){
		return true;
	}
	if (oForm.ck_net.checked == true){
		return true;
	}
	if (oForm.ck_org.checked == true){
		return true;
	}
	if (oForm.ck_jp.checked == true){
		return true;
	}
	if (oForm.ck_info.checked == true){
		return true;
	}
	if (oForm.ck_biz.checked == true){
		return true;
	}
	alert("ご希望のドメインの種類を選択してください。");
	return false;
}

/* ドメイントップ画面へ遷移 */
function goToIndex() {
	var indexUrl = document.forms[0].fwdIndexURL.value + 'index.htm';
	window.open(indexUrl, '_self');
}

/* ドメイン移転管理検索画面　指定ページへ遷移 */
function goToPage() {
	document.forms[0].submit();
}

/* ネームサーバー変更(編集)画面 入力項目ON/OFF */
function dnsEnable(){
  var newmode=false;
  var newbg="white";
  if(document.all.name_server_flag[1]){
    if(document.all.name_server_flag[1].checked==false){
      newmode=true;
      newbg="silver";
    }
    document.all.name_server1.disabled=newmode;
    document.all.name_server1.style.background=newbg;
    document.all.name_server2.disabled=newmode;
    document.all.name_server2.style.background=newbg;
    document.all.name_server3.disabled=newmode;
    document.all.name_server3.style.background=newbg;
    document.all.name_server4.disabled=newmode;
    document.all.name_server4.style.background=newbg;
    document.all.name_server5.disabled=newmode;
    document.all.name_server5.style.background=newbg;
  }
  return true;
}

