window.base_url = 'https://www.secure-bridesword.jp/lht_secure/';

function MypageLoginCheck() {
	msg = "";

	if (document.form.ID.value.length == 0) {
		msg = "IDを入力してください。";
	}

	if (document.form.PASS.value.length == 0) {
		if(msg) msg += "\n";
		msg += "PASSWORDを入力してください。";
	}

	if(msg){
		alert(msg);
		return false;
	}else{
		return true;
	}
	return false;

}

function MypageLogin(){
	win1 = window.open(window.base_url + "mypage/main.php","Mypage","toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=yes,resizable=no,width=817,height=605");
	win1.focus();
}

function MitumoriNofile(){
	alert('申し訳ございませんが、ただいまお見積もりファイルは登録されておりません。');
	return;
}

function openImage(url,width,height){
	window.open(url, "imageViewer", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width="+ width + ",height=" + height );
}

function DisplayMypageLoginForm() {

document.write('<form action="' + window.base_url + 'mypage/login.php" style="margin:0px;" method="post" name="form" target="Mypage" onSubmit="MypageLogin()">');
document.write('<div class="member">');
document.write('<img src="' + window.base_url + 'wedding/common-img/member01.jpg" alt="会員ログイン" width="194" height="33" /><table>');
document.write('<tr><th><img src="' + window.base_url + 'wedding/common-img/member-ID.jpg" width="47" height="17" /></th>');
document.write('<td><input type="text" name="ID" size="15" /></td></tr>');
document.write('<tr><th><img src="' + window.base_url + 'wedding/common-img/member-pass.jpg" width="47" height="19" /></th>');
document.write('<td><input type="password" size="15" name="PASS"></td></tr>');
document.write('</table><input type="image" src="' + window.base_url + 'wedding/common-img/member-login.jpg" alt="LOGIN" width="194" height="20" onsubmit="MypageLogin();" /></div></form>');

}


