﻿/* 初期化 */
getStart = function(path,category) {
	writeHeader(path,category);
	writeFooter(path);
	setSubnavAction(category);
	setButtonAction(category);
	var cookie = readCookie("style");
	var title = cookie ? cookie : getPreferredStyleSheet();
	setActiveStyleSheet(title);
}
getStart1 = function(path,category) {
	writeHeader(path,category);
	writeFooter1(path);
	setSubnavAction(category);
	setButtonAction(category);
	var cookie = readCookie("style");
	var title = cookie ? cookie : getPreferredStyleSheet();
	setActiveStyleSheet(title);
}

getStart2 = function(path,category) {
	writeHeader(path,category);
	writeFooter2(path);
	setSubnavAction(category);
	setButtonAction(category);
	var cookie = readCookie("style");
	var title = cookie ? cookie : getPreferredStyleSheet();
	setActiveStyleSheet(title);
}

/* イメージスワップ関連 */
setButtonAction = function(category) {
	for (i=0; i<document.links.length; i++) {
		if (document.links[i].className == "swap") {
			var broot = document.links[i];
			if (broot.firstChild.nodeName == "IMG" && broot.firstChild.id) {
				if (broot.firstChild.id == 'nav_' + category) {
					broot.onmouseover = function() {
						im = this.firstChild;
						var my_subnav = "sub" + im.id;
						showNav(my_subnav, 1);
					}
					broot.onmouseout = function () {
						im = this.firstChild;
						var my_subnav = "sub" + im.id;
						hideNav(my_subnav, 1);
					}
				} else {
					broot.onmouseover = function() {
						im = this.firstChild;
						var my_subnav = "sub" + im.id;
						showNav(my_subnav, 0);
					}
					broot.onmouseout = function () {
						im = this.firstChild;
						var my_subnav = "sub" + im.id;
						hideNav(my_subnav, 0);
					}
				}
			}
			else if (broot.firstChild.nodeName == "IMG") {
				broot.onmouseover = function() {
					im = this.firstChild;
					var offimg = im.src;
					var onimg = offimg.substr(0, offimg.lastIndexOf('_0.gif')) + "_1.gif";
					im.src = onimg;
				}
				broot.onmouseout = function () {
					im = this.firstChild;
					var onimg = im.src;
					var offimg = onimg.substr(0, onimg.lastIndexOf('_1.gif')) + "_0.gif";
					im.src = offimg;
				}
			}
		}
	}
	for (i = 0; i < document.forms.length; i++)
	{
		for (j = 0; j < document.forms[i].all.length; j++)
		{
			var broot = document.forms[i].all(j);
			if (broot.className == 'swap' && broot.type == 'image')
			{
				broot.onmouseover = function()
				{
					im = this;
					var offimg = im.src;
					var onimg = offimg.substr(0, offimg.lastIndexOf('_0.gif')) + "_1.gif";
					im.src = onimg;
				}
				broot.onmouseout = function()
				{
					im = this;
					var onimg = im.src;
					var offimg = onimg.substr(0, onimg.lastIndexOf('_1.gif')) + "_0.gif";
					im.src = offimg;
				}
			}
		}
	}
}

/* CSS選択関連 */
setActiveStyleSheet = function(title) {
	var i, a, main;
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
			a.disabled = true;
			if(a.getAttribute("title") == title) {
				a.disabled = false;
			}
		}
	}
}

getActiveStyleSheet = function() {
	var i, a;
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) {
			return a.getAttribute("title");
		}
	}
	return null;
}

getPreferredStyleSheet = function() {
	var i, a;
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title")) {
			return a.getAttribute("title");
		}
	}
	return null;
}

createCookie = function(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

readCookie = function(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) {
			return c.substring(nameEQ.length,c.length);
		}
	}
	return null;
}

window.onunload = function(e) {
	var title = getActiveStyleSheet();
	createCookie("style", title, 365);
}

/* グローバルナビゲーション関連 */
var timer_id;
var subnav_array = new Array();

showNav = function(subnav, current) {
	clearTimeout(timer_id);
	for (var i=0; i<subnav_array.length; i++) {
		if (subnav != subnav_array[i]) {
			document.getElementById(subnav_array[i]).style.visibility = "hidden";
		}
	}
	if (document.getElementById(subnav)) {
		document.getElementById(subnav).style.visibility = "visible";
		var navimg = subnav.substr(3);
	}
	if (!current && document.getElementById(navimg)) {
		im = document.getElementById(navimg);
		var offimg = im.src;
		var onimg = offimg.substr(0, offimg.lastIndexOf('_0.gif')) + "_1.gif";
		im.src = onimg;
	}
}

hideNav = function (subnav, current) {
	if (document.getElementById(subnav)) {
		timer_id = setTimeout("document.getElementById(\"" + subnav + "\").style.visibility = \"hidden\"", 200);
		var navimg = subnav.substr(3);
	}
	if (!current && document.getElementById(navimg)) {
		im = document.getElementById(navimg);
		var onimg = im.src;
		var offimg = onimg.substr(0, onimg.lastIndexOf('_1.gif')) + "_0.gif";
		im.src = offimg;
	}
}

setSubnavAction = function(category) {
	if (category) {
		navRoot = document.getElementById("subnav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node1 = navRoot.childNodes[i];
			if (node1.nodeName == "DIV") {
				subnav_array.push(node1.id);
				for (j=0; j<node1.childNodes.length; j++) {
					node2 = node1.childNodes[j];
					if (node2.nodeName == "UL") {
						for (k=0; k<node2.childNodes.length; k++) {
							node3 = node2.childNodes[k];
							if (node3.nodeName == "LI") {
								var img_id = node3.parentNode.parentNode.id;
								if (img_id.lastIndexOf(category) == -1) {
									node3.childNodes[0].onmouseover = function() {
										showNav(this.parentNode.parentNode.parentNode.id, 0);
									}
									node3.childNodes[0].onmouseout = function() {
										hideNav(this.parentNode.parentNode.parentNode.id, 0);
									}
								} else {
									node3.childNodes[0].onmouseover = function() {
										showNav(this.parentNode.parentNode.parentNode.id, 1);
									}
									node3.childNodes[0].onmouseout = function() {
										hideNav(this.parentNode.parentNode.parentNode.id, 1);
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

writeHeader = function(path, category) {
	var s_nav_logs = 0;
	var s_nav_profile = 0;
	var s_nav_mydiary = 0;
	var s_nav_dmail = 0;
	var s_nav_glink = 0;
	var s_nav_dealer = 0;
	var s_nav_guide = 0;
	var s_nav_faq = 0;
	var s_nav_accountinfo = 0;
	var swap_logs = ' class="swap"';
	var swap_profile = ' class="swap"';
	var swap_mydiary = ' class="swap"';
	var swap_dmail = ' class="swap"';
	var swap_glink = ' class="swap"';
	var swap_dealer = ' class="swap"';
	var swap_guide = ' class="swap"';
	var swap_faq = ' class="swap"';
	var swap_accountinfo = ' class="swap"';
	eval('s_nav_' + category + ' = 2');
	eval('swap_' + category + ' = ""');

	var sn = '';

	if (category && document.getElementById('header')) {
		sn += '<table width="100%" border="0" cellpadding="0" cellspacing="0" style="height:100px;">';
		sn += '<tr>';
		sn += '<td><a href="http://www.lexus.com.cn/"target="_blank"><img src="' + path + 'CmnFiles/Image/header/lexus_logo.gif" width="129" height="23" border="0" hspace="11" vspace="13" alt="LEXUS Logo"></a></td>';
		sn += '<td align="right"><a class="swap" href="http://www.lexus.com.cn/" target="_blank"><img src="' + path + 'CmnFiles/Image/header/btn_lexusjp_0.gif" width="80" height="19" border="0" vspace="15" alt="www.lexus.com.cn"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="9" height="1" alt=""><a class="swap" href="' + path + 'Home/owst0120.asp"><img src="' + path + 'CmnFiles/Image/header/btn_e-lexusclubtop_0.gif" width="102" height="19" border="0" vspace="15" alt="e-LEXUS CLUB"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="14" height="1" alt=""><a class="swap" href="#" onClick="setActiveStyleSheet(\'small\');"><img src="' + path + 'CmnFiles/Image/header/btn_textdown_0.gif" width="19" height="19" border="0" vspace="15" alt="Reduce Font"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="3" height="1" alt=""><a class="swap" href="#" onClick="setActiveStyleSheet(\'big\');"><img src="' + path + 'CmnFiles/Image/header/btn_textup_0.gif" width="19" height="19" border="0" vspace="15" alt="Zoom Font"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="3" height="1" alt=""><a class="swap" href="#" onClick="window.print();"><img src="' + path + 'CmnFiles/Image/header/btn_print_0.gif" width="19" height="19" border="0" vspace="15" alt="Print"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="3" height="1" alt=""><a class="swap" href="#" onClick="JavaScript:window.location.href=\'' + location.pathname + '?DspLang\';"><img src="' + path + 'CmnFiles/Image/header/btn_cn_0.gif" width="30" height="19" border="0" vspace="15" alt="Chinese"></a><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="11" height="1" alt=""><a class="swap" href="#" onClick="JavaScript:window.location.href=\'' + path + 'DealerGuide/Member/Login/lout0110.asp\';"><img src="' + path + 'CmnFiles/Image/header/btn_logout_0.gif" width="83" height="19" border="0" vspace="15" alt="Logout"></a></td>';
		sn += '</tr>';
		sn += '<tr>';
		sn += '<td colspan="2"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="5" alt=""></td>';
		sn += '</tr>';
		sn += '<tr>';
		sn += '<td colspan="2"><div id="nav">';
		sn += '<a' + swap_logs + ' href="' + path + 'OwnerLogs/Top/owlg0110.asp"><img src="' + path + 'CmnFiles/Image/nav/nav_logs_' + s_nav_logs + '.gif" width="130" height="25" border="0" alt="OWNER LOGS"></a>';
		sn += '<a class="swap" href="' + path + 'OwnerLogs/MyCarProfile/Registration/rgtr0110.asp"><img id="nav_profile" src="' + path + 'CmnFiles/Image/nav/nav_profile_' + s_nav_profile + '.gif" width="130" height="25" border="0" alt="MY CAR PROFILE"></a>';
		sn += '<a class="swap" href="' + path + 'OwnerLogs/MyCarDiary/MainteHist/mths0110.asp"><img id="nav_mydiary" src="' + path + 'CmnFiles/Image/nav/nav_diary_' + s_nav_mydiary + '.gif" width="130" height="25" border="0" alt="MY CAR DIARY"></a>';
		sn += '<a class="swap" href="' + path + 'OwnerLogs/RmtMaintenance/rmtm0110.asp"><img id="nav_dmail" src="' + path + 'CmnFiles/Image/nav/nav_d-mail_' + s_nav_dmail + '.gif" width="130" height="25" border="0" alt="D-MAIL"></a>';
		sn += '<a' + swap_dealer + ' href="' + path + 'DealerGuide/Top/dlgd0110.asp"><img src="' + path + 'CmnFiles/Image/nav/nav_dealer_' + s_nav_dealer + '.gif" width="130" height="25" border="0" alt="My Dealer"></a>';
		sn += '<a' + swap_glink + ' href="#"><img src="' + path + 'CmnFiles/Image/nav/nav_g-link_' + s_nav_glink + '.gif" width="130" height="25" border="0" alt=""></a>';
		sn += '</div></td>';
		sn += '</tr>';
		sn += '<tr>';
		sn += '<td colspan="2" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" alt=""></td>';
		sn += '</tr>';
		sn += '<tr>';
		sn += '<td colspan="2">';
		sn += '<div id="subnav">';
		sn += '<div id="subnav_profile"><ul>';
		sn += '<li id="subnav_owerinfo"><a href="' + path + 'OwnerLogs/MyCarProfile/Registration/rgtr0110.asp"><span class="alt">Registered Information</span></a></li>';
		sn += '<li id="subnav_maintenance"><a href="' + path + 'OwnerLogs/MyCarProfile/ServiceIn/svin0110.asp"><span class="alt">Maintenance Record</span></a></li>';
		sn += '</ul></div>';
		sn += '<div id="subnav_mydiary"><ul>';
		sn += '<li id="subnav_diary"><a href="' + path + 'OwnerLogs/MyCarDiary/MainteHist/mths0110.asp"><span class="alt">Diary</span></a></li>';
		sn += '<li id="subnav_myreminder"><a href="' + path + 'OwnerLogs/MyCarDiary/MainteAlarm/mtar0110.asp"><span class="alt">My Reminder</span></a></li>';
		sn += '</ul></div>';
		sn += '<div id="subnav_dmail"><ul>';
		sn += '</ul></div>';
		sn += '</div>';
		sn += '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
		sn += '<tr>';
		sn += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		sn += '<td style="background: #eee;"><div id="message_area"></div></td>';
		sn += '<td align="right" style="background: #eee;">';
		sn += '<a' + swap_guide + ' href="' + path + 'OwnerLogs/Guide/gide0110.asp"><img src="' + path + 'CmnFiles/Image/header/btn_guide_' + s_nav_guide + '.gif" width="117" height="19" border="0" alt="OWNER LOGS GUIDE"></a>';
		sn += '<img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="8" height="1" border="0" alt="">';
		sn += '<a' + swap_faq + ' href="' + path + 'OwnerLogs/Guide/gide0130.asp"><img src="' + path + 'CmnFiles/Image/header/btn_faq_' + s_nav_faq + '.gif" width="39" height="19" border="0" alt="FAQ"></a>';
		sn += '<img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="8" height="1" border="0" alt="">';
		sn += '<a' + swap_accountinfo + ' href="' + path + 'Member/Account/acnt0110.asp"><img src="' + path + 'CmnFiles/Image/header/btn_accountinfo_' + s_nav_accountinfo + '.gif" width="92" height="19" border="0" alt="ACCOUNT INFO"></a>';
		sn += '<img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="11" height="1" border="0" alt="">';
		sn += '</td>';
		sn += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" border="0" alt=""></td>';
		sn += '</tr>';
		sn += '</table></td>';
		sn += '</tr>';
		sn += '</table>';
		document.getElementById('header').innerHTML = sn;
	} else if (document.getElementById('header')) {
		sn += '<table width="100%" border="0" cellpadding="0" cellspacing="0" style="height:75px;">';
		sn += '<tr>';
		sn += '<td><a href="http://www.lexus.com.cn/"target="_blank"><img src="' + path + 'CmnFiles/Image/header/lexus_logo.gif" width="129" height="23" border="0" hspace="11" vspace="13" alt="LEXUS Logo"></a></td>';
		sn += '<td align="right"><a class="swap" href="http://www.lexus.com.cn/" target="_blank"><img src="' + path + 'CmnFiles/Image/header/btn_lexusjp_0.gif" width="80" height="19" border="0" vspace="15" alt="www.lexus.com.cn"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="14" height="1" alt=""><a class="swap" href="#" onClick="setActiveStyleSheet(\'small\');"><img src="' + path + 'CmnFiles/Image/header/btn_textdown_0.gif" width="19" height="19" border="0" vspace="15" alt="Reduce Font"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="3" height="1" alt=""><a class="swap" href="#" onClick="setActiveStyleSheet(\'big\');"><img src="' + path + 'CmnFiles/Image/header/btn_textup_0.gif" width="19" height="19" border="0" vspace="15" alt="Zoom Font"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="3" height="1" alt=""><a class="swap" href="#" onClick="window.print();"><img src="' + path + 'CmnFiles/Image/header/btn_print_0.gif" width="19" height="19" border="0" vspace="15" alt="Print"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="3" height="1" alt=""><a class="swap" href="#" onClick="JavaScript:window.location.href=\'' + location.pathname + '?DspLang\';"><img src="' + path + 'CmnFiles/Image/header/btn_cn_0.gif" width="30" height="19" border="0" vspace="15" alt="Chinese"></a><img src="' + path + 'CmnFiles/Image/null.gif" width="11" height="1" alt=""></td>';
		sn += '</tr>';
		sn += '<tr>';
		sn += '<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">';
		sn += '<tr>';
		sn += '<td width="1"><img src="' + path + 'CmnFiles/Image/nav/nav_line.gif" width="1" height="25"></td>';
		sn += '<td style="background-image: url(' + path + 'CmnFiles/Image/nav/nav_bg.gif);"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1"></td>';
		sn += '<td width="1"><img src="' + path + 'CmnFiles/Image/nav/nav_line.gif" width="1" height="25"></td>';
		sn += '</tr>';
		sn += '</table></td>';
		sn += '</tr>';
		sn += '<tr>';
		sn += '<td colspan="2" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" alt=""></td>';
		sn += '</tr>';
		sn += '</table>';
		document.getElementById('header').innerHTML = sn;
	}
}

writeFooter = function(path) {
	if (document.getElementById('footer')) {
		var ft = '';
		ft += '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '<td colspan="2"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="10" border="0" alt=""></td>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '<td><img src="' + path + 'CmnFiles/Image/null.gif" width="7" height="1" border="0" alt=""><img src="' + path + 'CmnFiles/Image/null.gif" width="11" height="1" border="0" alt=""><a class="swap" href="' + path + 'Home/owst0130.asp"><img src="' + path + 'CmnFiles/Image/footer/btn_aboutuse_0.gif" width="63" height="19" border="0" alt="Site Policy"></a><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="11" height="1" border="0" alt=""><a class="swap" href="' + path + 'OwnerLogs/Guide/gide0120.asp"><img src="' + path + 'CmnFiles/Image/footer/btn_ownerssitemap_0.gif" width="58" height="19" border="0" alt="Site Map"></a></td>';
		ft += '<td align="right"><img src="' + path + 'CmnFiles/Image/footer/footer_phoneNo.gif" width="210" height="26" hspace="10" alt="LEXUS Customer Assistance Center"><img src="' + path + 'CmnFiles/Image/footer/copyright.gif" width="320" height="23" hspace="10" alt="&copy;2005-2006 TOYOTA MOTOR (CHINA) INVESTMENT CO.,LTD.  COPYRIGHT &copy; TOYOTA MOTOR CORPORATION.ALL RIGHTS RESERVED."></td>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td colspan="4" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '</table>';
		document.getElementById('footer').innerHTML = ft;
	}
}

writeFooter1 = function(path) {
	if (document.getElementById('footer1')) {
		var ft = '';
		ft += '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '<td colspan="2"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="10" border="0" alt=""></td>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '<td><img src="' + path + 'CmnFiles/Image/null.gif" width="7" height="1" border="0" alt=""><img src="' + path + 'CmnFiles/Image/null.gif" width="11" height="1" border="0" alt=""><a class="swap" href="/cn/Home/owst0130.asp"><img src="' + path + 'CmnFiles/Image/footer/btn_aboutuse_0.gif" width="63" height="19" border="0" alt="Site Policy"></a></td>';
		ft += '<td align="right"><img src="' + path + 'CmnFiles/Image/footer/copyright.gif" width="320" height="23" hspace="10" alt="&copy;2005-2006 TOYOTA MOTOR (CHINA) INVESTMENT CO.,LTD.  COPYRIGHT &copy; TOYOTA MOTOR CORPORATION.ALL RIGHTS RESERVED."></td>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td colspan="4" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '</table>';
		document.getElementById('footer1').innerHTML = ft;
	}
}

writeFooter2 = function(path) {
	if (document.getElementById('footer2')) {
		var ft = '';
		ft += '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '<td colspan="2"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="10" border="0" alt=""></td>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="30" border="0" alt=""></td>';
		ft += '<td></td>';
		ft += '<td align="right"><img src="' + path + 'CmnFiles/Image/footer/copyright.gif" width="320" height="23" hspace="10" alt="&copy;2005-2006 TOYOTA MOTOR (CHINA) INVESTMENT CO.,LTD.  COPYRIGHT &copy; TOYOTA MOTOR CORPORATION.ALL RIGHTS RESERVED."></td>';
		ft += '<td width="1" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '<tr>';
		ft += '<td colspan="4" style="background: #ccc;"><img src="' + path + 'CmnFiles/Image/null.gif" alt="" width="1" height="1" border="0" alt=""></td>';
		ft += '</tr>';
		ft += '</table>';
		document.getElementById('footer2').innerHTML = ft;
	}
}

/* Site Policy_Button 関連 */
function NextEnabled(){
	document.getElementById('btnNext').disabled = !(document.getElementById('btnNext').disabled)
}
