var v_agreeText;

if(v_langPath == "jp") v_agreeText = "はい"; // jp
if(v_langPath == "en") v_agreeText = "Agree"; // en
if(v_langPath == "ch") v_agreeText = "Agree"; // ch

v_contact = {
	f_checkboxArea : function() {
		document.write('<input type="checkbox" name="agreeCheck" id="agreeCheck" />');
		document.write('<label for="agreeCheck" class="checkBoxImg_off" onclick="v_contact.f_changeBtn(this);">' + v_agreeText + '</label>');
	},

	f_changeDisplay : function(status) {
		$("formBlock").getElementsByTagName("a")[0].style.display = status;
	},

	f_changeBtn : function(t) {
		f_changeCheckbox(t);

		if(t.getAttribute(v_class).indexOf("_off") == -1) v_contact.f_changeDisplay("block");
		if(t.getAttribute(v_class).indexOf("_on") == -1) v_contact.f_changeDisplay("none");
	}
}


v_contactform = {
	f_checkboxArea : function() {
		document.write('<input type="checkbox" name="agreeCheck" id="agreeCheck" />');
		document.write('<label for="agreeCheck" class="checkBoxImg_off" onclick="v_contactform.f_changeBtn(this);">' + v_agreeText + '</label>');
	},

	f_changeDisplay : function(status) {
		$("c_contactBlock").getElementsByTagName("a")[0].style.display = status;
	},

	f_changeBtn : function(t) {
		f_changeCheckbox(t);

		if(t.getAttribute(v_class).indexOf("_off") == -1) v_contactform.f_changeDisplay("block");
		if(t.getAttribute(v_class).indexOf("_on") == -1) v_contactform.f_changeDisplay("none");
	}
}
