//********************
//メール送信ボタン押下時アクション
//更新日 2006/06/19
//********************
function sendMailWindowOpen() {
	if (document.sendForm.adr.value.length == 0) {
		window.alert("メールアドレスを入力してください。");
		return false;
	} else {
		window.open("about:blank", "mailsend",
			"left=0px,top=0px,width=400px,height=240px,toolbar=0,location=0,directories=0,menubar=0,status=0,resizable=0");
		//document.sendForm.submit();
		return true;
	}
}

function sendMailCheck() {
	if (document.songSendForm.adr.value.length == 0) {
		window.alert("メールアドレスを入力してください。");
		return false;
	} else {
		//document.sendForm.submit();
		return true;
	}
}

//********************
//楽曲情報表示ウインドウ
//更新日 2006/06/19
//********************
function songWindowOpen() {
	var hi = screen.availHeight;
//2007.01.19 del start
//	window.open("about:blank", "songinfo",
//		"left=0px,top=0px,width=400px,height=" + hi + ",toolbar=0,location=0,directories=0,menubar=0,status=0,resizable=0");
//2007.01.19 del end
//2007.01.19 add start スクロールバー表示
	window.open("about:blank", "songinfo",
		"left=0px,top=0px,width=420px,height=" + hi + ",toolbar=0,location=0,directories=0,menubar=0,status=0,resizable=0,scrollbars=1");
//2007.01.19 add end
}

//********************
//リクエストフォームウインドウ
//更新日 2006/06/20
//********************
function requestWindowOpen() {
	var hi = screen.availHeight;
	window.open("about:blank", "request",
		"left=0px,top=0px,width=400px,height=360px,toolbar=0,location=0,directories=0,menubar=0,status=0,resizable=0");
}

//********************
//リクエストフォーム送信
//更新日 2006/06/20
//********************
function requestSend() {

	//入力文字のチェック
	if (document.reqform.songname.value == "") {
		window.alert("楽曲名を入力してください。");
		return false;
	}
	if (document.reqform.comment.value == "") {
		window.alert("コメントを入力してください。");
		return false;
	}
	document.reqform.submit();
}

//********************
//動画登録用メールアドレス登録
//更新日 2007/01/30
//********************
function reg_check(updflg){
    if(document.regist.adr.value=="") {
        alert("メールアドレスが未入力です。");
        return false;
    }
    if (document.regist.adr.value.match(/^[a-zA-Z0-9_\.\-]+?/)){
    } else {
        alert("メールアドレスが不正です。");
        return false;
    }
    if(updflg=="1") {
        return confirm("登録済みのメールアドレスは削除されます。よろしいですか？");
    } else {
        return confirm("登録します。よろしいですか？");
    }
}
