//////////////// Javascript ///////////////
//	NEODYM DESIGN
//	com.js
///////////////////////////////////////////

//バナー変更の為のスクリプト
//トップバナー表示。一階層目


function writebnner(){
	document.open();

document.write( "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.write( "<tr>");
document.write( "<td><img src=\"img/com/clear.gif\" width=\"1\" height=\"8\"></td>");
document.write( "  </tr>");
document.write( "</table>");
document.write("<table width=\"96%\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\">");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td width=\"13%\" bgcolor=\"#E4FFD2\"><div align=\"center\"><img src=\"img/arw/gray20.gif\" width=\"19\" height=\"20\"></div>");
document.write("</td>");
document.write("<td width=\"87%\" bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"faq.html\"><font color=\"#0099FF\">良くある質問と答え</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td width=\"13%\" bgcolor=\"#E4FFD2\"><div align=\"center\"><img src=\"img/arw/gray20.gif\" width=\"19\" height=\"20\"></div>");
document.write("</td>");
document.write("<td width=\"87%\" bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"weeklylist-table.html\"><font color=\"#0099FF\">ウイークリー料金一覧</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td bgcolor=\"#E4FFD2\"><img src=\"img/arw/gray20.gif\" width=\"19\" height=\"20\"></td>");
document.write("<td bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"monthlylist-table.html\"><font color=\"#0099FF\">マンスリー料金一覧</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td bgcolor=\"#E4FFD2\"><img src=\"img/arw/gray20.gif\" width=\"19\" height=\"20\"></td>");
document.write("<td bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><A href=\"mailto:?subject=横浜ウイークリーマンション モバイル版URL&body=http://www.yokohama-weekly.jp/i/index.html\"><font color=\"FF0000\">携帯用アドレスを送る</A></font></strong></td>");
document.write("</tr>");
document.write("</table>");


	document.write("<DIV class=\"DpadrT6L6\"><a href=\"http://www.abk.co.jp/\" target=\"_blank\"><IMG src=\"img/bnr/bnr_abk.gif\" alt=\"横浜ウイークリー\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"topics/031200.html\"><IMG src=\"img/bnr/bnr_voice.gif\" alt=\"お客様の声\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"weeklylist.html\")\"><IMG src=\"img/bnr/bnr_movie1.gif\" alt=\"代表的な店舗の紹介ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"javascript:opnWin('movie/m-tetuzuki')\"><IMG src=\"img/bnr/bnr_movie2.gif\" alt=\"手続きのご案内ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"javascript:opnWin('movie/m-tokuchou')\"><IMG src=\"img/bnr/bnr_movie3.gif\" alt=\"当社の特徴ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"http://www.c21abk.co.jp/\" target=\"_blank\"><IMG src=\"img/bnr/bnr_century21.gif\" alt=\"センチュリー21　エー・ビー・ケー\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");

document.write("<img src='http://www.yokohama-weekly.jp/cgi-bin/acc/acclog.cgi?");
document.write("referrer="+document.referrer+"&");
document.write("width="+screen.width+"&");
document.write("height="+screen.height+"&");
document.write("color="+screen.colorDepth+"'>");



	document.close();
}

//１階層下　トピックスなど
function writebnner2(){
	document.open();

document.write( "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.write( "<tr>");
document.write( "<td><img src=\"../img/com/clear.gif\" width=\"1\" height=\"8\"></td>");
document.write( "  </tr>");
document.write( "</table>");
document.write("<table width=\"96%\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\">");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td width=\"13%\" bgcolor=\"#E4FFD2\"><div align=\"center\"><img src=\"../img/arw/gray20.gif\" width=\"19\" height=\"20\"></div>");
document.write("</td>");
document.write("<td width=\"87%\" bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"../faq.html\"><font color=\"#0099FF\">良くある質問と答え</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td width=\"13%\" bgcolor=\"#E4FFD2\"><div align=\"center\"><img src=\"../img/arw/gray20.gif\" width=\"19\" height=\"20\"></div>");
document.write("</td>");
document.write("<td width=\"87%\" bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"../weeklylist-table.html\"><font color=\"#0099FF\">ウイークリー料金一覧</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td bgcolor=\"#E4FFD2\"><img src=\"../img/arw/gray20.gif\" width=\"19\" height=\"20\"></td>");
document.write("<td bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"../monthlylist-table.html\"><font color=\"#0099FF\">マンスリー料金一覧</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td bgcolor=\"#E4FFD2\"><img src=\"../img/arw/gray20.gif\" width=\"19\" height=\"20\"></td>");
document.write("<td bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><A href=\"mailto:?subject=横浜ウイークリーマンション モバイル版URL&body=http://www.yokohama-weekly.jp/i/index.html\"><font color=\"FF0000\">携帯用アドレスを送る</A></font></strong></td>");
document.write("</tr>");
document.write("</table>");
	
	
	
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"http://www.abk.co.jp/\" target=\"_blank\"><IMG src=\"../img/bnr/bnr_abk.gif\" alt=\"横浜ウイークリー\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"../topics/031200.html\"><IMG src=\"../img/bnr/bnr_voice.gif\" alt=\"お客様の声\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"../weeklylist.html\"><IMG src=\"../img/bnr/bnr_movie1.gif\" alt=\"代表的な店舗の紹介ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"javascript:opnWin('../movie/m-tetuzuki')\"><IMG src=\"../img/bnr/bnr_movie2.gif\" alt=\"手続きのご案内ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"javascript:opnWin('../movie/m-tokuchou')\"><IMG src=\"../img/bnr/bnr_movie3.gif\" alt=\"当社の特徴ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"http://www.c21abk.co.jp/\" target=\"_blank\"><IMG src=\"../img/bnr/bnr_century21.gif\" alt=\"センチュリー21　エー・ビー・ケー\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");

document.write("<img src='http://www.yokohama-weekly.jp/cgi-bin/acc/acclog.cgi?");
document.write("referrer="+document.referrer+"&");
document.write("width="+screen.width+"&");
document.write("height="+screen.height+"&");
document.write("color="+screen.colorDepth+"'>");


	document.close();
}

//２階層下　店舗情報など
function writebnner3(){
	document.open();

document.write( "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.write( "<tr>");
document.write( "<td><img src=\"../../img/com/clear.gif\" width=\"1\" height=\"8\"></td>");
document.write( "  </tr>");
document.write( "</table>");
document.write("<table width=\"96%\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\">");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td width=\"13%\" bgcolor=\"#E4FFD2\"><div align=\"center\"><img src=\"../../img/arw/gray20.gif\" width=\"19\" height=\"20\"></div>");
document.write("</td>");
document.write("<td width=\"87%\" bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"../../faq.html\"><font color=\"#0099FF\">良くある質問と答え</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td width=\"13%\" bgcolor=\"#E4FFD2\"><div align=\"center\"><img src=\"../../img/arw/gray20.gif\" width=\"19\" height=\"20\"></div>");
document.write("</td>");
document.write("<td width=\"87%\" bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"../../weeklylist-table.html\"><font color=\"#0099FF\">ウイークリー料金一覧</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td bgcolor=\"#E4FFD2\"><img src=\"../../img/arw/gray20.gif\" width=\"19\" height=\"20\"></td>");
document.write("<td bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><a href=\"../../monthlylist-table.html\"><font color=\"#0099FF\">マンスリー料金一覧</font></a></strong></td>");
document.write("</tr>");
document.write("<tr bgcolor=\"#FFFFFF\">");
document.write("<td bgcolor=\"#E4FFD2\"><img src=\"../../img/arw/gray20.gif\" width=\"19\" height=\"20\"></td>");
document.write("<td bgcolor=\"#E4FFD2\" class=\"p11h16\"><strong><A href=\"mailto:?subject=横浜ウイークリーマンション モバイル版URL&body=http://www.yokohama-weekly.jp/i/index.html\"><font color=\"FF0000\">携帯用アドレスを送る</A></font></strong></td>");
document.write("</tr>");
document.write("</table>");


	
	
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"http://www.abk.co.jp/\" target=\"_blank\"><IMG src=\"../../img/bnr/bnr_abk.gif\" alt=\"横浜ウイークリー\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"../../topics/031200.html\"><IMG src=\"../../img/bnr/bnr_voice.gif\" alt=\"お客様の声\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"../../weeklylist.html\"><IMG src=\"../../img/bnr/bnr_movie1.gif\" alt=\"代表的な店舗の紹介ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"javascript:opnWin('../../movie/m-tetuzuki')\"><IMG src=\"../../img/bnr/bnr_movie2.gif\" alt=\"手続きのご案内ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"javascript:opnWin('../../movie/m-tokuchou')\"><IMG src=\"../../img/bnr/bnr_movie3.gif\" alt=\"当社の特徴ビデオ\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
	document.write("<DIV class=\"DpadrT6L6\"><a href=\"http://www.c21abk.co.jp/\" target=\"_blank\"><IMG src=\"../../img/bnr/bnr_century21.gif\" alt=\"センチュリー21　エー・ビー・ケー\" width=\"150\" height=\"50\" border=\"0\"></a></DIV>\n");
document.write("<img src='http://www.yokohama-weekly.jp/cgi-bin/acc/acclog.cgi?");
document.write("referrer="+document.referrer+"&");
document.write("width="+screen.width+"&");
document.write("height="+screen.height+"&");
document.write("color="+screen.colorDepth+"'>");


	document.close();
}



var theURL = "";

function linkSelect(form, sel){
	adrs = sel.options[sel.selectedIndex].value;
	if (adrs != "-" ){
		parent.location = adrs;
	}
}

function imgAct(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "on.src");
	}
}

function imgInact(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "off.src");
	}
}

function opnWin(url) {
	var ltn = 'window';
	var url = url + '.html';
	navWindow=window.open( url , ltn , "width=500,height=400,menubar=no,scrollbars=yes,status=no,resizable=no");
	navWindow.focus();
}

function opnWin1(url) {
	var ltn = 'window';
	var url = url + '.html';
	navWindow=window.open( url , ltn , "width=500,height=400,menubar=no,scrollbars=yes,status=no,resizable=no");
	navWindow.focus();
}
	
function pntcng(url){
	url = url + ".html";
	window.opener.document.location.href = url;
}

function opnGenre(){
	loadUrl();
	if(theURL == ""){
		history.go(-1);
		return;
	}
	theURL = theURL + ".html";
	top.main.document.location.href = theURL;
}

function opnTopics(){
	loadUrl();
	if(theURL == ""){
		history.go(-1);
		return;
	}
	theURL = "../../" + theURL + ".html";
	top.main.document.location.href = theURL;
}

function setUrl(url){
	theName  = "seito";
	theDay   = 7;
	setDay = new Date();
	setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
	expDay = setDay.toGMTString();
	document.cookie = theName + "="+escape(url)+";expires="+expDay;
	document.location.href = "index.html";
}

function topicsUrl(url){
	theName  = "seito";
	theDay   = 7;
	setDay = new Date();
	setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
	expDay = setDay.toGMTString();
	document.cookie = theName + "="+escape(url)+";expires="+expDay;
	window.top.document.location.href = "common/html/index.html";
}

function loadUrl(){
	theData   = "";
	theName   = "seito=";
	theCookie = document.cookie+";";
	start = theCookie.indexOf(theName);
	if (start != -1){
		end = theCookie.indexOf(";",start);
		theData = unescape(theCookie.substring(start+theName.length,end));
	}
	theURL = theData;
	theName = "seito";
	document.cookie = theName + "=;expires=Thu,01-Jan-70 00:00:01 GMT";
}
//
//if ((navigator.userAgent.indexOf('Win') != -1 && navigator.userAgent.indexOf('MSIE') == -1)) {
//	document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="/Common/win_nn.css">');
//			document.close();
//} else if (navigator.userAgent.indexOf('Win') != -1) {
//	document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="/Common/win.css">');
//	document.close();
//}
//
function formchk () {
	// v4.01
	chk = document.wym.name.value;
	if (chk == "") {
		alert("お名前が入力されていません");
		document.wym.name.focus();
		return false;
	}
	chk = document.wym.mailaddress.value;
	if (chk == "") {
		alert("メールアドレスが入力されていません");
		document.wym.mailaddress.focus();
		return false;
	}
	chk = document.wym.question.value;
	if (chk == "") {
		alert("お問い合わせ内容が入力されていません");
		document.wym.question.focus();
		return false;
	}
	if (confirm("この内容で送信します\nよろしければ OK ボタンを押してください") == false) {
		return false;
	}
}

//ウイークリーマンション申し込みフォーム入力チェック

function formchk2 () {
	
	chk = document.mw.name.value;
	if (chk == "") {
		alert("氏名が入力されていません");
		document.mw.name.focus();
		return false;
	}

	chk = document.mw.furigana.value;
	if (chk == "") {
		alert("ふりがなが入力されていません");
		document.mw.furigana.focus();
		return false;
	}

	chk = document.mw.mailaddress.value;
	if (chk == "") {
		alert("メールアドレスが入力されていません");
		document.mw.mailaddress.focus();
		return false;
	}

	chk = document.mw.tel1.value;
	if (chk == "") {
		alert("電話番号が入力されていません");
		document.mw.tel1.focus();
		return false;
	}

	chk = document.mw.douikakunin.checked;
	if (chk == "") {
		alert("契約使用約款に同意されなければ申し込みできません");
		document.mw.douikakunin.focus();
		return false;
	}

	if (confirm("この内容で送信します\nよろしければ OK ボタンを押してください") == false) {
		return false;
	}
}




		
///////////////////////////////////////
//	NEODYM	UCHIDA T.   2003/08/29
//


