// JavaScript Document

function TextAreaSelect(flg){
	var elm = document.getElementById('url');
	if ( flg == "on"){
		document.OrganTypeForm.url.value = "http://www.";
		if (elm.createTextRange) {
			var range = elm.createTextRange();
			range.move('character', elm.value.length);
			range.select();
		} else if (elm.setSelectionRange) {
			elm.setSelectionRange(elm.value.length, elm.value.length);
		}
	} else if ( flg == "off" ) {
		if ( document.OrganTypeForm.url.value == "http://www." ) {
			document.OrganTypeForm.url.value = "http://www.～貴社ホームページのURLを入力してください";
		}
	}else{}

}

function TextAreaSelect2(flg){
	if ( flg == "on"){
		document.OrganTypeForm.email.value = "";
	} else if ( flg == "off" ) {
		if ( document.OrganTypeForm.email.value == "" ) {
			document.OrganTypeForm.email.value = "メールアドレスを入力してください（任意）";
		}
	}else{}
}

