function topframe() {
	document.write('<div id="help" class="clearfix">');
	document.write('<div class="header mt6 clearfix">');
	document.write('<div class="logo"><img src="/images/logo.gif" /><img src="/images/help/logo.gif" /></div>');
	document.write('<div class="rtext">');
	document.write('<div class="top clearfix">');
	document.write('<a target="_blank" href="/reg.asp"><img src="/images/reg.gif"></a>');
	document.write('<a target="_blank" href="/login.asp"><img src="/images/dl.gif"></a>');
	document.write('<a target="_blank" href="/bbs">机电论坛</a><span></span>');
	document.write('<a target="_blank" href="/jqt">机情通</a><span></span>');
	document.write('<a target="_blank" href="/about">关于本网</a><span></span>');
	document.write('<a href="../">首页</a>');
	document.write('</div>');
	document.write('</div>');
	document.write('</div>');
	document.write('<div class="mt8"><img src="/images/help/topimg.gif"></div>');
	document.write('</div>');
}
function footframe() {
	document.write ('<div id="footframe" class="clearfix">');
	document.write ('<p>');
	document.write ('Copyright &copy; 2004-2008  <a href="http://www.jd37.com">Jd37.Com</a>&nbsp; All Rights Reserved<br />');
	document.write ('版权所有：机电商情网 &nbsp;苏ICP备05070783号');
	document.write ('</p>');
	document.write ('</div>');
}
function leftframe() {
	document.write ('<ul class="header"><li>功能分类</li></ul>');
	document.write ('<ul class="menu">');
	document.write ('<li><a href="index.html">会员注册</a></li>');
	document.write ('<li><a href="help1.html">查找/浏览信息</a></li>');
	document.write ('<li><a href="help2.html">发布/管理供求信息</a></li>');
	document.write ('<li><a href="help4.html">发布/管理公司介绍</a></li>');
	document.write ('<li><a href="help5.html">询价/报价</a></li>');
	document.write ('<li><a href="help6.html">发送/查看留言反馈</a></li>');
	document.write ('<li><a href="help7.html">搜索排序说明</a></li>');
	document.write ('<li><a href="help8.html">浏览/查找招聘简历</a></li>');
	document.write ('</ul>');
}
function sameheight() {
//菜单高度自适应
  if(document.getElementById("leftmenu")&&document.getElementById("content")&&document.getElementById("content").offsetHeight){
	if(document.getElementById("content").offsetHeight > document.getElementById("leftmenu").offsetHeight-16){
		if(document.all){
			document.getElementById("leftmenu").style.height=document.getElementById("content").offsetHeight+36;
		}else{
			document.getElementById("leftmenu").setAttribute("style","height:"+document.getElementById("content").offsetHeight+"px")
		}
	}
}
}

function loadquestion() {
	for (var i=1;i<=question_len ; i++) {
		$("question_"+i+"_text").style.display="none";
	}
}
function questionLen(obj) {
	var tmpobj=obj.split('_')[0];
	var k=0;
	for (var i=1;i<=100 ;i++ ) { //这里设定100
		var s=document.getElementById(tmpobj+'_'+i);
		if ( s ) {
			k=k+1;
		}
	}
	return k;

}
function showText(obj) {
	var question_len=questionLen(obj);
	if ( $(obj+'_text').style.display=='none' ) {
		for (var i=1;i<=question_len ; i++) {
			$("question_"+i+"_text").style.display="none";
			$("question_"+i).href='javascript:showText("question_'+i+'")';
			$("question_"+i).className='question_off';
		}
		$(obj+'_text').style.display='';
		$(obj).href='javascript:showText(\''+obj+'\')';
		$(obj).className='question_on';
	}else{
		for (var i=1;i<=question_len ; i++) {
			$("question_"+i+"_text").style.display="none";
			$("question_"+i).href='javascript:showText("question_'+i+'")';
			$("question_"+i).className='question_off';
		}
		$(obj+'_text').style.display='none';
		$(obj).href='javascript:showText(\''+obj+'\')';
		$(obj).className='question_off';
	}
}
function $(obj){
	return document.getElementById(obj);
}
