// JavaScript Document
window.onload = function(){
	var jinji=document.getElementById('jinji');
	var soumu=document.getElementById('soumu');
	var webmaster=document.getElementById('webmaster');
	if(jinji) {
		jinji.setAttribute('href',"mailto:" + "jinji" + "@qccs" + ".co.jp");
	}
	if(soumu) {
		soumu.setAttribute('href',"mailto:" + "soumu" + "@qccs" + ".co.jp");
	}
	if(webmaster) {
		webmaster.setAttribute('href',"mailto:" + "webmaster" + "@qccs" + ".co.jp");
	}
}

function drawMenu(level){
	var path = "";
	for(var i=0;i<level;i++){
		path += "../";
	}
	
	document.write("<table border='0' cellpadding='0' width='850' cellspacing='0'>");
	document.write("  <tr> ");
	document.write("	<td rowspan='2'><a href='"+path+"index.html'><img src='"+path+"images/qccs_logo.gif' alt='九州シー・アンド・シーシステムズ' width='339' height='45' border='0'></a></td>");
	document.write("	<td align='right' style='font-size:9px; padding:3px 7px 0px 0px;'>[ <a href='"+path+"sitemap.html'>サイトマップ</a> ]　[ <a href='"+path+"index.html'>ホーム</a> ]</td>");
	document.write("  </tr>");
	document.write("  <tr> ");
	document.write("    <td nowrap='nowrap'>");
	document.write("		<form action='http://www.google.co.jp/search' style='float:right; margin: 0px 5px 0px 0px; '>");
	document.write("		サイト内検索");
	document.write("		<input type='text' name='q' size='20' maxlength='256' value=''>");
	document.write("		<input type='submit' name='btnG' value='検索'>");
	document.write("		<input type='hidden' name='hl' value='ja'>");
	document.write("		<input type='hidden' name='ie' value='Shift_JIS'>");
	document.write("		<input type='hidden' value='www.qccs.co.jp' name='as_sitesearch'>");
	document.write("		</form>");
	document.write("	</td>");
	document.write("  </tr>");
	document.write("</table>");

	document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' class='menuTable'>");
	document.write("  <tr>");
	document.write("    <td width='120'><a href='"+path+"products.html' id='menu'><span>製品</span></a></td>");
	document.write("    <td width='120'><a href='"+path+"services.html' id='menu'><span>サービス</span></a></td>");
	document.write("    <td width='120'><a href='"+path+"info/profile.html' id='menu'><span>会社概要</span></a></td>");
	document.write("    <td width='120'><a href='"+path+"question.html' id='menu'><span>お問い合わせ</span></a></td>");
	document.write("    <td width='120'><a href='"+path+"link.html' id='menu'><span>リンク</span></a></td>");
	document.write("    <td>&nbsp;</td>");
	document.write("  </tr>");
	document.write("</table>");
}

function drawFooter(){
	document.write("<table width='100%' border='0' cellpadding='5' cellspacing='0' style='border-top:1px #999999 solid;'>");
	document.write("  <tr>");
	document.write("	<td align='center' class='font_s'> Copyright &copy;2010 Kyushu C&amp;C Systems Incorporated. All rights reserved. </td>");
	document.write("  </tr>");
	document.write("</table>");
}

function checkMailForm(type){
	var corp		= document.forms['mailform'].CORP.value;
	var section		= document.forms['mailform'].SECTION.value;
	var name		= document.forms['mailform'].NAME.value;
	var tel			= document.forms['mailform'].TEL.value;
	var mailAddress	= document.forms['mailform'].MAIL.value;
	
	if(corp == '' || section == '' || name == '' || tel == '' || mailAddress == ''){
		alert("必須項目が正しく入力されていません。");
		return false;
	}
	
	return true;
}
