function logout()
{
	logout = confirm("本当にログアウトしますか？");
	if (logout == true){
		location.href = "http://www.foxty.jp/users/logout/";
	}else{
		return;
	}
}

function onAll() {
  for (var i = 0; i < document.CheckDomain.elements.length; i++) {
    if(document.CheckDomain.elements[i].type == 'checkbox'){
      document.CheckDomain.elements[i].checked = 1;
    }
  }
}

function offAll() {
  for (var i = 0; i < document.CheckDomain.elements.length; i++) {
    if(document.CheckDomain.elements[i].type == 'checkbox'){
      document.CheckDomain.elements[i].checked = 0;
    }
  }
}

function CopyAll(){
/*
this.document.forms[0].AdminAddress1.value = this.document.forms[0].RegistrantAddress1.value;
this.document.forms[0].AdminAddress2.value = this.document.forms[0].RegistrantAddress2.value;
this.document.forms[0].AdminCity.value = this.document.forms[0].RegistrantCity.value;
this.document.forms[0].AdminCountry.value = this.document.forms[0].RegistrantCountry.value;
this.document.forms[0].AdminEmailAddress.value = this.document.forms[0].RegistrantEmailAddress.value;
this.document.forms[0].AdminFax.value = this.document.forms[0].RegistrantFax.value;
this.document.forms[0].AdminFirstName.value = this.document.forms[0].RegistrantFirstName.value;
this.document.forms[0].AdminJobTitle.value = this.document.forms[0].RegistrantJobTitle.value;
this.document.forms[0].AdminLastName.value = this.document.forms[0].RegistrantLastName.value;
this.document.forms[0].AdminOrganizationName.value = this.document.forms[0].RegistrantOrganizationName.value;
this.document.forms[0].AdminPhone.value = this.document.forms[0].RegistrantPhone.value;
this.document.forms[0].AdminPostalCode.value = this.document.forms[0].RegistrantPostalCode.value;
this.document.forms[0].AdminStateProvince.value = this.document.forms[0].RegistrantStateProvince.value;
this.document.forms[0].AdminStateProvinceChoice.value = this.document.forms[0].RegistrantStateProvinceChoice.value;

this.document.forms[0].AuxBillingAddress1.value = this.document.forms[0].RegistrantAddress1.value;
this.document.forms[0].AuxBillingAddress2.value = this.document.forms[0].RegistrantAddress2.value;
this.document.forms[0].AuxBillingCity.value = this.document.forms[0].RegistrantCity.value;
this.document.forms[0].AuxBillingCountry.value = this.document.forms[0].RegistrantCountry.value;
this.document.forms[0].AuxBillingEmailAddress.value = this.document.forms[0].RegistrantEmailAddress.value;
this.document.forms[0].AuxBillingFax.value = this.document.forms[0].RegistrantFax.value;
this.document.forms[0].AuxBillingFirstName.value = this.document.forms[0].RegistrantFirstName.value;
this.document.forms[0].AuxBillingJobTitle.value = this.document.forms[0].RegistrantJobTitle.value;
this.document.forms[0].AuxBillingLastName.value = this.document.forms[0].RegistrantLastName.value;
this.document.forms[0].AuxBillingOrganizationName.value = this.document.forms[0].RegistrantOrganizationName.value;
this.document.forms[0].AuxBillingPhone.value = this.document.forms[0].RegistrantPhone.value;
this.document.forms[0].AuxBillingPostalCode.value = this.document.forms[0].RegistrantPostalCode.value;
this.document.forms[0].AuxBillingStateProvince.value = this.document.forms[0].RegistrantStateProvince.value;
this.document.forms[0].AuxBillingStateProvinceChoice.value = this.document.forms[0].RegistrantStateProvinceChoice.value;

this.document.forms[0].TechAddress1.value = this.document.forms[0].RegistrantAddress1.value;
this.document.forms[0].TechAddress2.value = this.document.forms[0].RegistrantAddress2.value;
this.document.forms[0].TechCity.value = this.document.forms[0].RegistrantCity.value;
this.document.forms[0].TechCountry.value = this.document.forms[0].RegistrantCountry.value;
this.document.forms[0].TechEmailAddress.value = this.document.forms[0].RegistrantEmailAddress.value;
this.document.forms[0].TechFax.value = this.document.forms[0].RegistrantFax.value;
this.document.forms[0].TechFirstName.value = this.document.forms[0].RegistrantFirstName.value;
this.document.forms[0].TechJobTitle.value = this.document.forms[0].RegistrantJobTitle.value;
this.document.forms[0].TechLastName.value = this.document.forms[0].RegistrantLastName.value;
this.document.forms[0].TechOrganizationName.value = this.document.forms[0].RegistrantOrganizationName.value;
this.document.forms[0].TechPhone.value = this.document.forms[0].RegistrantPhone.value;
this.document.forms[0].TechPostalCode.value = this.document.forms[0].RegistrantPostalCode.value;
this.document.forms[0].TechStateProvince.value = this.document.forms[0].RegistrantStateProvince.value;
this.document.forms[0].TechStateProvinceChoice.value = this.document.forms[0].RegistrantStateProvinceChoice.value;
*/
}
