// JavaScript Document
//Error
function killErrors()
{ 
	return true;
} 
window.onerror=killErrors;

function setHomepage(){if(document.all){document.body.style.behavior = 'url(#default#homepage)';document.body.setHomePage('http://www.okbmf.com');}else if (window.sidebar){if (window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}catch (e) {alert("该操作被浏览器拒绝，假如想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");}}var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);prefs.setCharPref('browser.startup.homepage','http://www.okbmf.com');}} 

//top line
function topline(){
	document.write('<div style="width:960px;margin:0px auto"><img src="/images/bg_960_1.gif"></div>');
	}

//banner
function SetBanner(wd){
	if(wd=="swf")     {word='<div class="banner" style="border-bottom:1px #ff0000 solid;"><!--script>SetAdswf(950,148,\'/images/banner/banner.swf\');</script--><a href="http://www.okbmf.com/zt/kaiguang/" target="_blank"><img src="/images/banner/banner_kg.gif" border="0"></a></div>'}
	if(wd=="yupei")   {word='<div class="banner"><img src="/images/banner/banner_yupei.jpg"></div>'}
	if(wd=="shoulian"){word='<div class="banner"><img src="/images/banner/banner_shoulian.jpg"></div>'}
	if(wd=="chegua")  {word='<div class="banner"><img src="/images/banner/banner_chegua.jpg"></div>'}
	if(wd=="yaoshi")  {word='<div class="banner"><img src="/images/banner/banner_yaoshi.jpg"></div>'}
	if(wd=="fengshui"){word='<div class="banner"><img src="/images/banner/banner_fengshui.jpg"></div>'}
	if(wd=="help")    {word='<div class="banner"><img src="/images/banner/banner_help.jpg"></div>'}
	if(wd=="zhishi")    {word='<div class="banner"><img src="/images/banner/banner_zhishi.jpg"></div>'}
	if(wd=="jxw")    {word='<div class="banner"><img src="/images/banner/banner_jxw.jpg"></div>'}
	document.write(word);
	}


//站内Flash广告简写函数
function SetAdswf(width,height,url){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="Opaque">');
	//透明document.write('<param name="wmode" value="transparent">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
	document.write('</object>');
}


//Set Right
function Setright(){
	wd='';
	wd='<div class="r_t">本命佛总部-值得信赖</div>';
	wd=wd+'<ul>';
	//wd=wd+'<li style="height:62px"><a target="blank" onclick="return(confirm(\'您好，欢迎您使用本命佛在线咨询系统！\n\n点击下面的“确定”按钮开始对话！\n\n客服如不在线请留言，在线时会与您联系！\'))" class="a1" href="tencent://message/?uin=691110557&Site=www.okbmf.com&Menu=yes"><img src="/images/kefu_qq.gif" align="absmiddle" border="0"></a></li>';
	wd=wd+'<li><img src="/images/ico/ico_tel.gif" align="absmiddle"> 电话：<img src="/images/kefu_phone.gif" border="0"></li>';
	wd=wd+'<li><img src="/images/ico/ico_pingzhi.gif" align="absmiddle"> 品质：<a href="/Html/News/2008-7-4/ILTB.shtml" target="_blank">权威玉石鉴定证书</a></li>';
	wd=wd+'<li><img src="/images/ico/ico_kaiguang.gif" align="absmiddle"> 开光：<a href="/Html/News/2008-7-19/TBCQ.shtml" target="_blank">佛教圣地九华山高僧开光</a></li>';
	wd=wd+'<li><img src="/images/ico/ico_xinyu.gif" align="absmiddle"> 信誉：<a href="/Html/News/2008-7-19/UYUY.shtml" target="_blank">专业佛文化品牌信心保证</a></li>';
	wd=wd+'<li><img src="/images/ico/ico_chengnuo.gif" align="absmiddle"> 承诺：<a href="/Html/News/2008-7-19/UYTB.shtml" target="_blank">真货、平价、假一赔十</a></li>';
	wd=wd+'<li><img src="/images/ico/ico_pay.gif" align="absmiddle"> 付款：<a href="/Html/News/2008-7-19/MERN.shtml" target="_blank">多种支付方式由您选择</a></li>';
	wd=wd+'</ul>';
	document.write(wd);
	}

//Set bottom
function Setbottom(){
	wd='';
	wd=wd+'<div class="bottom">';
	wd=wd+'<table width="950" border="0" cellpadding="0" cellspacing="0">';
	wd=wd+'<tr bgcolor="#D10F03"><td height="1" colspan="3"></td></tr>';
	wd=wd+'<tr><td height="10" colspan="3"></td></tr>';
	wd=wd+'<tr>';
	wd=wd+'<td width="182" rowspan="4"><a href="http://www.okbmf.com"><img src="/images/logo_bottom.jpg" border="0" title="本命佛-护身开运保平安"></a></td>';
	wd=wd+'<td height="25" colspan="2" style="padding-top:20">';
	wd=wd+'<a href="/Html/News/2008-7-19/UYUY.shtml" target="_blank">关于我们</a> |';
	wd=wd+'<a href="/Contact.asp" target="_blank">联系方式</a> |';
	wd=wd+'<a href="/Pay.asp" target="_blank">汇款方式</a> |';
	wd=wd+'<a href="/Help/" target="_blank">常见问题</a> |';
	wd=wd+'<a href="/zhiNan/" target="_blank">请购指南</a> |';
	wd=wd+'<a href="/Html/News/2008-6-22/PWPW.shtml" target="_blank">交易说明</a> |';
	wd=wd+'<a href="/Html/News/2008-6-22/PWCQ.shtml" target="_blank">用户安全</a> |';
	wd=wd+'<a href="/Html/News/2008-7-19/TBPW.shtml" target="_blank">版权声明</a> |';
	wd=wd+'<script>';
	wd=wd+'if (top.location == self.location){';
	wd=wd+'document.write (\'<a href="/main.asp" target="_top" style="color:red">本命佛音乐导航版</a>\')';
	wd=wd+'}else{';
	wd=wd+'document.write (\'<a href="/" target="_top" style="color:red">本命佛无音乐版</a>\')';
	wd=wd+'}';
	wd=wd+'</script>';
	wd=wd+'</td>';
	wd=wd+'</tr>';
	wd=wd+'<tr>';
	wd=wd+'<td width="525" height="25">版权所有 安徽天腾 [本命佛开光圣品总部] 增值电信业务许可证：<a href="http://www.miibeian.gov.cn" target="_blank"><font style="font-family:arial;">皖B2-20050031</font></a></td>';
	wd=wd+'<td width="243" rowspan="3" align="center"><a href="/Html/News/2008-7-19/UYXV.shtml" target="_blank"><img src="/images/ico/ico_gs.gif" align="absmiddle" border="0"></a>　　<a href="http://wow.alipay.com/consumer/logoProtect.htm?id=200801" target="_blank"><img border="0" src="http://img.alipay.com/img/apcgp/logo/147x24.png" width="147" height="24" /></a></td>';
	wd=wd+'</tr>';
	wd=wd+'<tr>';
	wd=wd+'<td height="25">* 除本站正式公布以外的任何分销点均属假冒，请认准域名，谨访受骗！</td>';
	wd=wd+'</tr>';
	wd=wd+'<tr>';
	wd=wd+'<td height="25">* 本站所有设计及图片文字均在版权部门登记，侵权必定追究法律责任！</td>';
	wd=wd+'</tr>';
	wd=wd+'</table>';
	wd=wd+'<noscript><iframe src="/"></iframe></noscript>';
	wd=wd+'<script language="javascript" src="/Js/copyright.js"></script>';
	wd=wd+'</div>';
	document.write(wd);
	}


//Set so
function Setleftso(){
	wd='';
	/*
	wd='<div style="background:url(/images/bg_more.gif) no-repeat 0px -970px;position:absolute;width:68px;height:67px;z-index:1;"></div>';
	wd=wd+'<div id="bg_t"></div>';
	wd=wd+'<div id="bg_m">';
	wd=wd+'<ul>';
	wd=wd+'<li style="font-size:14px;width:166px;padding-left:5px">';
	wd=wd+'<b style="color:FF6600 ">○ 产品搜索</b><br>';
	wd=wd+'<form name="formso" method="get" action="" onSubmit="return checksearch()">';
	wd=wd+'材　质：<select name="c" id="c" style="width:90px">';
	wd=wd+'<option value="" selected="">=不限材质=</option>';
	wd=wd+'<option value="16">和田玉</option>';
	wd=wd+'<option value="13">昆仑玉</option>';
	wd=wd+'<option value="17">翡翠</option>';
	wd=wd+'<option value="14">岫玉</option>';
	wd=wd+'<option value="15">红玉髓</option>';
	wd=wd+'<option value="18">玛瑙</option>';
	wd=wd+'<option value="19">绿东陵</option>';
	wd=wd+'<option value="20">阿富汗玉</option>';
	wd=wd+'<option value="21">卡瓦石</option>';
	wd=wd+'<option value="22">水晶</option>';
	wd=wd+'<option value="23">其它</option>';
	wd=wd+'</select><br>';
	wd=wd+'价　格：<select name="m" id="m" style="width:90px">';
	wd=wd+'<option value="">=不限价格=</option>';
	wd=wd+'<option value="1">100元以下</option>';
	wd=wd+'<option value="2">101-200元</option>';
	wd=wd+'<option value="3">201-300元</option>';
	wd=wd+'<option value="4">301-500元</option>';
	wd=wd+'<option value="5">501-1000元</option>';
	wd=wd+'<option value="6">1001-5000元</option>';
	wd=wd+'<option value="7">5000元以上</option>';
	wd=wd+'</select>';
	wd=wd+'<br>';
	wd=wd+'关键字：<input name="s" type="text" id="s" style="width:90px" value="">';
	wd=wd+'<div style="height:8px;line-height:8px"></div>';
	wd=wd+'<input type="submit" value="本类搜索" style="width:72px;color:red;background:url(/images/bg_more.gif) 0px -1070px no-repeat;width:72px;height:20px;border:0px;cursor:hand"> ';
	wd=wd+'<input type="submit" value="全站搜索" style="width:72px;background:url(/images/bg_more.gif) 0px -1095px no-repeat;width:72px;height:20px;border:0px;cursor:hand" onclick="document.formso.action=\'so.asp\'">';
	wd=wd+'<input name="t" type="hidden" id="t" value="4">';
	wd=wd+'</form>';
	wd=wd+'</li>';
	wd=wd+'</ul>';
	wd=wd+'</div>';
	wd=wd+'<div id="bg_b"></div>';
	*/
	document.write(wd);
	}

//Set left
function Setleft(){
	wd='';
	wd='<div style="background:url(/images/bgzt.gif) no-repeat 0px 0px;position:absolute;width:68px;height:67px;z-index:1;"></div>';
	//wd='<div></div>';
	wd=wd+'<div id="bg_t"></div>';
	wd=wd+'<div id="bg_m">';
	wd=wd+'<ul>';
	wd=wd+'<li><a href="http://life.httpcn.com/sm/?gourl=vip_yc_sx_sub.asp" target="_blank"><img src="/images/175-1.gif" border="0"></a></li>';
	wd=wd+'<li><a href="/zt/2010" target="_blank"><img src="/images/175-2.gif" border="0"></a></li>';
	wd=wd+'<li><a href="/So/?wd=%B1%D9%D0%B0#focus" target="_blank"><img src="/images/175-3.gif" border="0"></a></li>';
	wd=wd+'<li><a href="/So/?wd=%D5%D0%B2%C6#focus" target="_blank"><img src="/images/175-1.gif" border="0"></a></li>';
	wd=wd+'<li><a href="/benmingfo.shtml" target="_blank"><img src="/images/175-5.gif" border="0"></a></li>';
	wd=wd+'<li><a href="/So/?wd=%CA%C2%D2%B5#focus" target="_blank"><img src="/images/175-6.gif" border="0"></a></li>';
	wd=wd+'</ul>';
	wd=wd+'</div>';
	wd=wd+'<div id="bg_b"></div>';
	document.write(wd);
	}


//top
function Settops(){
	wd='';
	<!--soso-->
	wd='<div class="soso">';
	wd=wd+'<div class="sosol"></div>';
	wd=wd+'<div class="sosom">';
	<!--sosot-->
	wd=wd+'<ul class="sosot">';
	wd=wd+'<li class="t1"><a href="/">首 页</a></li>';
	wd=wd+'<li class="t2"><a href="/BenMingfo.shtml">本命佛</a></li>';
	wd=wd+'<li class="t3"><a href="/yupei/">吊坠</a></li>';
	wd=wd+'<li class="t4"><a href="/Shoulian/">手链</a></li>';
	wd=wd+'<li class="t5"><a href="/Chegua/">车挂</a></li>';
	wd=wd+'<li class="t7"><a href="/Fengshui/">风水</a></li>';
	wd=wd+'<li class="t8"><a href="/Jxw/">生肖吉祥物</a></li>';
	wd=wd+'<li class="t6" style="position:relative"><div style="position:absolute; left:50px; top:-15px; width:27px; height:23px; z-index:100;background:url(/images/hot.gif) no-repeat"></div><a href="/zt/2010/">开运宝典</a></li>';
	wd=wd+'<li class="t9"><a href="/Zengpin/">赠品</a></li>';
	wd=wd+'<li class="t01"></li>';
	wd=wd+'<li class="t02"><a href="/BenMingfo/ShushuBenmingfo.shtml#focus">鼠</a> | ';
	wd=wd+'<a href="/BenMingfo/ShuniuBenmingfo.shtml#focus">牛</a> ';
	wd=wd+'<a href="/BenMingfo/ShuhuBenmingfo.shtml#focus">虎</a> | ';
	wd=wd+'<a href="/BenMingfo/ShutuBenmingfo.shtml#focus">兔</a> | ';
	wd=wd+'<a href="/BenMingfo/ShulongBenmingfo.shtml#focus">龙</a> ';
	wd=wd+'<a href="/BenMingfo/ShusheBenmingfo.shtml#focus">蛇</a> | ';
	wd=wd+'<a href="/BenMingfo/ShumaBenmingfo.shtml#focus">马</a> | ';
	wd=wd+'<a href="/BenMingfo/ShuyangBenmingfo.shtml#focus">羊</a> ';
	wd=wd+'<a href="/BenMingfo/ShuhouBenmingfo.shtml#focus">猴</a> | ';
	wd=wd+'<a href="/BenMingfo/ShujiBenmingfo.shtml#focus">鸡</a> | ';
	wd=wd+'<a href="/BenMingfo/ShugouBenmingfo.shtml#focus">狗</a> ';
	wd=wd+'<a href="/BenMingfo/ShuzhuBenmingfo.shtml#focus">猪</a>';
	wd=wd+'</li>';
	wd=wd+'<li class="t03"></li>';
	wd=wd+'</ul>';
	<!--sosot /-->
	<!--so-->
	wd=wd+'<div class="so">';
	wd=wd+'<form method="post" action="/So/">';
	wd=wd+'<select name="select" onChange="location.href=this.value">';
	wd=wd+'<option value="/So/" style="color:#999999" selected>请选择→生肖→查询本命佛 </option>';
	wd=wd+'<option value="/BenMingfo/shu.shtml#focus">==属鼠：佩戴千手观音菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/niu.shtml#focus">==属牛：佩戴虚空藏菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/hu.shtml#focus">==属虎：佩戴虚空藏菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/tu.shtml#focus">==属兔：佩戴文殊菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/long.shtml#focus">==属龙：佩戴普贤菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/she.shtml#focus">==属蛇：佩戴普贤菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/ma.shtml#focus">==属马：佩戴大势至菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/yang.shtml#focus">==属羊：佩戴大日如来菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/hou.shtml#focus">==属猴：佩戴大日如来菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/ji.shtml#focus">==属鸡：佩戴不动尊菩萨==</option>';
	wd=wd+'<option value="/BenMingfo/gou.shtml#focus">==属狗：佩戴阿弥陀佛==</option>';
	wd=wd+'<option value="/BenMingfo/zhu.shtml#focus">==属猪：佩戴阿弥陀佛==</option>';
	wd=wd+'</select>';
	
	wd=wd+'<select name="select" onChange="location.href=this.value">';
	wd=wd+'<option value="/So/" style="color:#999999" selected>2010年→生肖提示</option>';
	wd=wd+'<option value="">属鼠：当心破财</option>';
	wd=wd+'<option value="">属牛：注意健康</option>';
	wd=wd+'<option value="">属虎：犯太岁</option>';
	wd=wd+'<option value="">属兔：犯太岁</option>';
	wd=wd+'<option value="">属龙：小人当道</option>';
	wd=wd+'<option value="">属蛇：犯太岁</option>';
	wd=wd+'<option value="">属马：谨防是非</option>';
	wd=wd+'<option value="">属羊：当心损财</option>';
	wd=wd+'<option value="">属猴：犯太岁</option>';
	wd=wd+'<option value="">属鸡：注意阻碍</option>';
	wd=wd+'<option value="">属狗：调整情绪</option>';
	wd=wd+'<option value="">属猪：犯太岁</option>';
	wd=wd+'</select>';
	
	wd=wd+'<select name="select" onChange="location.href=this.value">';
	wd=wd+'<option value="/So/" style="color:#999999" selected>2010年→开运趋吉避凶</option>';
	wd=wd+'<option value="">2010 十二生肖保平安</option>';
	wd=wd+'<option value="">2010 制服太岁化是非</option>';
	wd=wd+'<option value="">2010 招财辟邪防破财</option>';
	wd=wd+'<option value="">2010 旺事业学业功名</option>';
	wd=wd+'<option value="">2010 平安健康增情缘</option>';
	wd=wd+'<option value="">2010 富贵聚财除小人</option>';
	wd=wd+'<option value="">2010 聚财化煞贵人助</option>';
	wd=wd+'<option value="">2010 招财化煞解桃花</option>';
	wd=wd+'</select> ';
	
	wd=wd+'<select id="c" size="1" name="c">';
	wd=wd+'<option value="" selected >所有材质</option>';
	wd=wd+'<option value="17">翡翠</option>';
	wd=wd+'<option value="16">和田玉</option>';
	wd=wd+'<option value="18">玛瑙</option>';
	wd=wd+'<option value="24">金属</option>';
	wd=wd+'<option value="22">水晶</option>';
	wd=wd+'<option value="25">木质</option>';
	wd=wd+'<option value="15">玉髓</option>';
	wd=wd+'<option value="23">其它材质</option>';
	wd=wd+'</select><select id="m" size="1" name="m">';
	wd=wd+'<option value="" selected>所有价格</option>';
	wd=wd+'<option value="1">100元以下</option>';
	wd=wd+'<option value="2">100-200元</option>';
	wd=wd+'<option value="3">200-300元</option>';
	wd=wd+'<option value="4">300-500元</option>';
	wd=wd+'<option value="5">500-1000元</option>';
	wd=wd+'<option value="6">1000元以上</option>';	
	
	wd=wd+'<input name="wd" type="text" value="输入关键词" style="color:#999999" onMouseOver="this.style.color=\'#000000\',this.select()" onClick="this.value=\'\'"> ';
	wd=wd+'<input type="submit" name="Submit" value="搜索圣品" style="cursor:hand;">';
	wd=wd+'</form>';
	wd=wd+'</div>';
	<!--so /-->
	<!--hot-->
	wd=wd+'<ul class="hot">';
	wd=wd+'<li>开运导读：</li>';
	wd=wd+'<li><a href="" target="_blank">护身开运本命佛</a></li>';
	wd=wd+'<li><a href="" target="_blank">化解太岁</a></li>';
	wd=wd+'<li><a href="" target="_blank">招财聚财</a></li>';
	wd=wd+'<li><a href="" target="_blank">事业学业</a></li>';
	wd=wd+'<li><a href="" target="_blank">健康祛病</a></li>';
	wd=wd+'<li><a href="" target="_blank">护身辟邪</a></li>';
	wd=wd+'<li><a href="" target="_blank">平安祈福</a></li>';
	wd=wd+'<li><a href="" target="_blank">消灾</a></li>';
	wd=wd+'<li><a href="" target="_blank">除小人</a></li>';
	wd=wd+'<li><a href="" target="_blank">旺贵人</a></li>';
	wd=wd+'<li><a href="" target="_blank">旺人缘</a></li>';
	wd=wd+'<li><a href="" target="_blank">解桃花</a></li>';
	wd=wd+'<li><a href="" target="_blank">化煞</a></li>';
	wd=wd+'<li><a href="" target="_blank">镇妖除秽</a></li>';
	wd=wd+'<li><a href="" target="_blank">聚集旺气</a></li>';
	wd=wd+'<li><a href="" target="_blank">车挂</a></li>';
	wd=wd+'</ul>';
	<!--hot /-->
	wd=wd+'</div>';
	wd=wd+'<div class="sosor"></div>';
	wd=wd+'</div>';
	<!--soso-->
	document.write(wd);
	}
	
//12shengxiao
function Set12pic(){
	wd='';
	wd=wd+'<div style="width:950px;text-align:center;margin-bottom:5px;">';
	wd=wd+'<a href="/BenMingfo/shu.shtml#focus"><img src="/images/shengxiao/s_1.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/niu.shtml#focus"><img src="/images/shengxiao/s_2.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/hu.shtml#focus"><img src="/images/shengxiao/s_3.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/tu.shtml#focus"><img src="/images/shengxiao/s_4.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/long.shtml#focus"><img src="/images/shengxiao/s_5.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/she.shtml#focus"><img src="/images/shengxiao/s_6.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/ma.shtml#focus"><img src="/images/shengxiao/s_7.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/yang.shtml#focus"><img src="/images/shengxiao/s_8.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/hou.shtml#focus"><img src="/images/shengxiao/s_9.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/ji.shtml#focus"><img src="/images/shengxiao/s_10.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/gou.shtml#focus"><img src="/images/shengxiao/s_11.gif" border="0"></a> ';
	wd=wd+'<a href="/BenMingfo/zhu.shtml#focus"><img src="/images/shengxiao/s_12.gif" border="0"></a>';
	wd=wd+'</div>';
	document.write(wd);
	}

//tongji
function Settongji(){
	wd='';
	wd=wd+'';
	wd=wd+'<script language="JavaScript" type="text/javascript" src="/huodong.asp"></script>';
	wd=wd+'<div style="display:none">';
	wd=wd+'<script type="text/javascript" src="http://js.tongji.linezing.com/827125/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/827125/tongji.php"/></a></noscript>';
	wd=wd+'</DIV>';
	wd=wd+'<script>var online= new Array();</script>';
	wd=wd+'<script src="http://webpresence.qq.com/getonline?Type=1&691110557:863353980:"></script>';
	wd=wd+'<script language="JavaScript" type="text/javascript" src="/Js/kefu.js"></script>';
	wd=wd+'<script language="JavaScript" type="text/javascript" src="/mess.asp"></script>';
	document.write(wd);
	}


function Setpic(url){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="300" class="NoSwap">');
	document.write('<param name="movie" value="s_pic.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="Opaque">');	
	document.write('<param name="FlashVars" value="pURL='+encode(url,strK)+'&home=http%3A%2F%2Fwww.okbmf.com">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src="s_pic.swf" quality="high" id="FlashShowImageObject" FlashVars="pURL='+encode(url,strK)+'&home=http%3A%2F%2Fwww.okbmf.com" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="300"></embed>');
	document.write('</object>');
	}

//加密
	strK="3irjklsd8432uisdklvr892348";
    function secode(opArray) {
        var _local2 = opArray;
        var strEnd="=";
        var _local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
        var bits;
        var decOut = new Array ();
        var _local1 = 0;
        var j = 0;
        _local1 = 0;
        while (_local1 < _local2.length) {
            bits = ((_local2[_local1]<<16) | (_local2[_local1+1]<<8) | (_local2[_local1+2]));
            decOut[j++] = _local3.charAt((bits & 16515072) >> 18);
            decOut[j++] = _local3.charAt((bits & 258048) >> 12);
            decOut[j++] = _local3.charAt((bits & 4032) >> 6);
            decOut[j++] = _local3.charAt(bits & 63);
            _local1 = _local1 + 3;
        }
        switch(_local2.length%3){
        	case 1:decOut.pop();decOut.pop();break;
        	case 2:decOut.pop();break;
        	case 0:strEnd="";break;
        }
        decOut.push(strEnd);
        return (decOut.join(""));
    }
    function encode(var1, key) {
        var _local3 = var1;
        var2 = new Array();
        var _local2 = 0;
        var _local1 = 0;
        while (_local1 < _local3.length) {
            var2.push(_local3.charCodeAt(_local1) ^ key.charCodeAt(_local2++));
            if (_local2 >= key.length) {
                _local2 = 0;
            }
            _local1++;
        }
        var2=secode(var2);
        return (var2);
    }


//本命佛会员登录表单验证
function checkmember(){
var user_name=document.member_login.user_name.value;
var user_psw=document.member_login.user_psw.value;
//var user_getcode=document.member_login.user_getcode.value;
//验证用户名
if(user_name=="" || user_name.length<2 || user_name.length>20){
document.member_login.user_name.focus();
alert("错误提示：用户名必须是2-20位的字符！");
return false;
}
ii=0;
bString="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
while (ii<user_name.length) 
{
if (bString.indexOf(user_name.substring(ii,ii+1))==-1) 
{
alert("错误提示：用户名不能包含非法字符，只能由数字、字母和下划线组成。")
return false;
}
ii=ii+1;
};
//验证密码
if(user_psw=="" || user_psw.length < 4 || user_psw.length >20) {
document.member_login.user_psw.focus();
alert("错误提示：用户密码必须是4-20位的字符！");
return false;
}
ii=0;
bString="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
while (ii<user_psw.length) 
{
if (bString.indexOf(user_psw.substring(ii,ii+1))==-1) 
{
alert("错误提示：密码不能包含非法字符，只能由数字和字母组成，区分大小写。")
return false;
}
ii=ii+1;
};
//if(user_getcode==""){
//alert('错误提示：验证码不能为空')
//document.member_login.user_getcode.focus()
//return false
//}
}

function setlogin(no){
document.member_login.no.value=no;
if (no==0){
document.member_login.action="/Check/CheckUser.asp";
}
if (no==1){
document.member_login.action="/Check/CheckAdUser.asp";
}
}
//隐藏层
function menus(obj){
if(obj.style.display==""){
obj.style.display="none"
}else if(obj.style.display=="none"){
obj.style.display=""
}
}
	
//==评论==
function checkplun(){
while(document.formask.plun_name.value.indexOf(" ")!=-1){
document.formask.plun_name.value=document.form1.plun_name.value.replace(" ","");
}
while(document.formask.plun_name.value.indexOf("	")!=-1){
document.formask.plun_name.value=document.form1.plun_name.value.replace("	","");
}
while(document.formask.plun_text.value.indexOf(" ")!=-1){
document.formask.plun_text.value=document.form1.plun_text.value.replace(" ","");
}
while(document.formask.plun_text.value.indexOf("	")!=-1){
document.formask.plun_text.value=document.form1.plun_text.value.replace("	","");
}
var plun_name=document.formask.plun_name.value;
var plun_text=document.formask.plun_text.value;
var plun_getcode=document.formask.plun_getcode.value;
if(plun_name==""||plun_name.length>16){
alert('昵称不能为空并且长度不能超过16个字符！')
document.formask.plun_name.focus()
return false
}
if(plun_getcode==""){
alert('验证码不能为空')
document.formask.plun_getcode.focus()
return false
}
if(plun_text==""||plun_text.length>300){
alert('提问内容不能为空且长度不能超过300个字符！')
document.formask.plun_text.focus()
return false
}
}


function SetshowMenu(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	menu.cells[i].className="bg_105_02";
	menu.cells[no].className="bg_105_01";}
}

//控制导航切换函数
function SetMenu(menu,no)
{
	for(i=0;i<document.getElementById(menu).cells.length;i++) {
	document.getElementById(menu).cells[i].className="bg_83_02";
	document.getElementById(menu).cells[no].className="bg_83_01";}
}


function SetDiv(div,no){
	switch(no){
		case 1:
		if(div=="div_show"){
		document.getElementById(div+"1").style.display="block";
		document.getElementById(div+"2").style.display="block";
		document.getElementById(div+"3").style.display="block";
		document.getElementById(div+"4").style.display="block";
		document.getElementById(div+"5").style.display="block";
		document.getElementById(div+"6").style.display="block";
		document.getElementById(div+"7").style.display="block";
		document.getElementById(div+"8").style.display="block";
		}else{
		document.getElementById(div+"1").style.display="block";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		}
		break;
		case 2:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="block";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		break;
		case 3:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="block";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		break;
		case 4:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="block";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		break;
		case 5:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="block";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		break;
		case 6:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="block";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		break;
		case 7:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="block";
		document.getElementById(div+"8").style.display="none";
		break;
		case 8:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="block";
		break;
	}
}


//====================================================

function $(_sId)
{return document.getElementById(_sId);}
  
function moveDiv(event, _sId)
{
	var oObj = $(_sId);	
	oObj.onmousemove = mousemove;
	oObj.onmouseup = mouseup;
	oObj.setCapture ? oObj.setCapture() : function(){};
	oEvent = window.event ? window.event : event;
	var dragData = {x : oEvent.clientX, y : oEvent.clientY};
	var backData = {x : parseInt(oObj.style.top), y : parseInt(oObj.style.left)};
   
	function mousemove()
	{
		var oEvent = window.event ? window.event : event;
		var iLeft = oEvent.clientX - dragData["x"] + parseInt(oObj.style.left);
		var iTop = oEvent.clientY - dragData["y"] + parseInt(oObj.style.top);
		oObj.style.left = iLeft;
		oObj.style.top = iTop;
		dragData = {x: oEvent.clientX, y: oEvent.clientY};  
	}
   
	function mouseup()
	{
		var oEvent = window.event ? window.event : event;
		oObj.onmousemove = null;
		oObj.onmouseup = null;
		if(oEvent.clientX < 1 || oEvent.clientY < 1)
		{
			oObj.style.left = backData.y;
			oObj.style.top = backData.x;
		}
			oObj.releaseCapture ? oObj.releaseCapture() : function(){};
	}
}

function closeDiv1(_sID)
{
	var oObj = $(_sID);
	var overlay = $("overlay");	
	if(overlay != null)
	{
		overlay.outerHTML = "";
	}
	oObj.style.display = "none";
	
}

function showDiv(_sID,event)
{
	var arrySize = getPageSize();
	var oObj = $(_sID);
	//创建一个DIV,改名为 overlay 这个是透明的层	
	var oDiv =document.createElement("div");
	oDiv.id = "overlay";
	document.body.appendChild(oDiv);
	var overlay = $("overlay");
	overlay.style.height = arrySize[1];
	overlay.style.width = arrySize[0];
	//alert(arrySize[1]);	
	if(event == null)
	{
		if(oObj.style.left == "")
		{
			oObj.style.left = arrySize[0] / 2 - 150 ;
		}
		
		if(oObj.style.top == "")
		{
			oObj.style.top =  arrySize[0] / 2;
		}		
	}
	else
	{		
		var iEvent= window.event ? window.event : event;		
		oObj.style.left = arrySize[0] / 2 - 150 ; // iEvent.clientX;
		oObj.style.top = arrySize[1] / 2 - 150 ;// iEvent.clientY;
		
	}
	
	oObj.style.display = "block";
	overlay.style.display = "block";
	overlay.style.zindex = oObj.style.zindex - 1;
}

//取得页面大小
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}


//add cart
function SetAdd(id) {
   var xmlhttp;
   var url='/check/ajax.asp?id='+encodeURIComponent(id);
   if(window.ActiveXObject) {
       xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }else if(window.XMLHttpRequest)      {
       xmlhttp=new XMLHttpRequest();
   }
   if (xmlhttp) {
       xmlhttp.onreadystatechange=function() {
           if(4==xmlhttp.readyState) {
                if(200==xmlhttp.status)  {
					document.getElementById("divContent").innerHTML=xmlhttp.responseText;
					showDiv('floatDiv',event);
                }else {
                     alert("error")
                }          
           }
        }   
       xmlhttp.open("get",url,true);
       xmlhttp.send(null);
    }
}

//user login
function SetAjaxlogin(){
var user_name=document.formuser.user_name.value;
var user_psw=document.formuser.user_psw.value;
var user_getcode=document.formuser.user_getcode.value;

//验证用户名
if(user_name=="" || user_name.length<2 || user_name.length>16){
document.formuser.user_name.focus();
alert("错误提示：帐号必须是2-16位的字符！");
return false;
}
ii=0;
bString="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
while (ii<user_name.length) 
{
if (bString.indexOf(user_name.substring(ii,ii+1))==-1) 
{
alert("错误提示：帐号不能包含非法字符，只能由数字/字母或下划线组成。")
return false;
}
ii=ii+1;
};

//验证密码
if(user_psw=="" || user_psw.length < 4 || user_psw.length >16) {
document.formuser.user_psw.focus();
alert("错误提示：密码必须是4-16位的字符！");
return false;
}
ii=0;
bString="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
while (ii<user_psw.length) 
{
if (bString.indexOf(user_psw.substring(ii,ii+1))==-1) 
{
alert("错误提示：密码不能包含非法字符，只能由数字/字母或下划线组成，区分大小写。")
return false;
}
ii=ii+1;
};

if(user_getcode==""){
alert('错误提示：验证码不能为空')
document.formuser.user_getcode.focus()
return false
}
}

function SetAjaxform(){
user_name=document.formreg.user_name.value;
user_psw=document.formreg.user_psw.value;
user_psw1=document.formreg.user_psw1.value;

//验证用户名
if(user_name=="" || user_name.length<2 || user_name.length>16){
document.formreg.user_name.focus();
alert("错误提示：帐号必须是2-16位的字符！");
return false;
}
if(user_name.substr(0,4)=="test"){
document.formreg.user_name.focus();
alert("错误提示：帐号不能以test开头！");
return false;
}
ii=0;
bString="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
while (ii<user_name.length) 
{
if (bString.indexOf(user_name.substring(ii,ii+1))==-1) 
{
alert("错误提示：帐号不能包含非法字符，只能由数字/字母或下划线组成。")
return false;
}
ii=ii+1;
};
//验证密码
if(user_psw=="" || user_psw.length < 4 || user_psw.length >16) {
document.formreg.user_psw.focus();
alert("错误提示：密码必须是4-16位的字符！");
return false;
}
ii=0;
bString="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
while (ii<user_psw.length) 
{
if (bString.indexOf(user_psw.substring(ii,ii+1))==-1) 
{
alert("错误提示：密码不能包含非法字符，只能由数字/字母或下划线组成，区分大小写。")
return false;
}
ii=ii+1;
};
//密码确认
if(user_psw!=user_psw1) {
document.formreg.user_psw1.focus();
//document.formreg.user_psw.value ='';
document.formreg.user_psw1.value='';
alert("错误提示：二次输入的密码不同，请重新输入！");
return false;
}
document.formreg.submit.disabled=true;
document.formreg.submit()
}

//==获取浏览器类型==
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
(s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
(s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
(s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
(s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
//==获取浏览器类型 /==

//==订购按扭==
function SetButtom(num){
if (Sys.ie=="6.0"){
//document.write('<img src="/images/icon/buy_1.gif" onclick="SetCoodiesbuy('+num+')" style="cursor:pointer" border="0" alt="我要请购" /><a href="/Buy/?action=cart"><img src="/images/icon/buy_2.gif" alt="查看购物车" border="0" /></a>');
document.write('<a href="/Buy/?action=add&shop_id='+num+'"><img src="/images/icon/buy_1.gif" border="0" alt="我要请购" /></a><a href="/Buy/?action=cart"><img src="/images/icon/buy_2.gif" alt="查看购物车" border="0" /></a>');
}else{
//document.write('<img src="/images/icon/buy_1.gif" onclick="SetCoodiesbuy('+num+')" style="cursor:pointer" border="0" alt="我要请购" /><a href="/Buy/?action=cart"><img src="/images/icon/buy_2.gif" alt="查看购物车" border="0" /></a>');
document.write('<a href="/Buy/?action=add&shop_id='+num+'"><img src="/images/icon/buy_1.gif" border="0" alt="我要请购" /></a><a href="/Buy/?action=cart"><img src="/images/icon/buy_2.gif" alt="查看购物车" border="0" /></a>');
}
}
//==订购按扭 /==

var zd ="1";
var zds="10";
function Setpay(no){
var cat=no.toString(10);
document.getElementById('li'+zd).className='';
document.getElementById('li'+cat).className='focus';
document.getElementById('pay_div'+zd).style.display='none';
document.getElementById('pay_div'+cat).style.display='block';
zd = cat;
}

function chkform(){
	str_author=document.formplun.str_author.value;
	str_content=document.formplun.str_content.value;
	if(str_author.length<=1||str_author.length>=10||str_author=="请填写昵称"){
		alert('友情提示：请输入10位字符以内的昵称');
		document.formplun.str_author.value="";
		document.formplun.str_author.focus();
		return false;
		}
	if(str_content.length<=1||str_content.length>=1000){
		alert('友情提示：您可以发表1000字以内的评论');
		document.formplun.str_content.focus();
		return false;
		}
	return true;
}
	
	
	//评论内容字数限制
function SetCount(field, countfield, maxlimit) {
// 定义函数，传入3个参数，分别为表单区的名字，表单域元素名，字符限制；
if (field.value.length > maxlimit) 
//如果元素区字符数大于最大字符数，按照最大字符数截断； 
field.value = field.value.substring(0, maxlimit);
else
//在记数区文本框内显示剩余的字符数； 
countfield.value = maxlimit - field.value.length;
}


//评论表单
function SetPlun(news_id){
	document.write('<div class="news_plun">');	
	document.write('<dl>');	
	document.write('<dt>■　发表评论(补充知识) | 查询评论 <a href="#">↑</a></dt>');	
	document.write('<dd>');	
	document.write('<form action="/Check/SavePlun.asp" method="post" name="formplun" onSubmit="return chkform();">');	
	document.write('<input name="str_author" type="text" id="str_author" style="border:1px #cccccc solid;" value="请填写昵称">');	
	document.write('<input name="news_id" type="hidden" id="news_id" value="'+news_id+'"> ');	
	document.write('您还可以写<input readonly="readonly" style="border:0;color:#ff0000;background:#FFFFFF" type="text" name="remLen" size="3" maxlength="3" value="1000" />字');	
	document.write('<textarea name="str_content" rows="5" class="plun_textarea" id="str_content" style="border:1px #cccccc solid;width:640px" onKeyDown="SetCount(this.form.str_content,this.form.remLen,1000);" onKeyUp="SetCount(this.form.str_content,this.form.remLen,1000);"></textarea>');	
	document.write('<div style="text-align:right;padding-right:18px"><input name="plun_add" type="checkbox" id="plun_add" value="1"> ');	
	document.write('申请知识补充');	
	document.write('<input type="submit" name="Submit2" value="发表评论" style="border:1px #cccccc solid;background:"></div>');	
	document.write('</form></dd>');	
	document.write('</dl>');	
	document.write('</div>');	
}


function SetCoodiesbuy(id) {
   var xmlhttp;
   var url='/Buy/Addbuy.asp?id='+encodeURIComponent(id);
   if(window.ActiveXObject) {
       xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }else if(window.XMLHttpRequest)      {
       xmlhttp=new XMLHttpRequest();
   }
   if (xmlhttp) {
       xmlhttp.onreadystatechange=function() {
           if(4==xmlhttp.readyState) {
                if(200==xmlhttp.status)  {
					document.getElementById("buyalt").style.display='';
					document.getElementById("buyalt").innerHTML=xmlhttp.responseText;
                }else {
                     alert("error")
                }          
           }
        }   
       xmlhttp.open("get",url,true);
       xmlhttp.send(null);
    }
}

//==div nosee==
function SetDisnone(obj){
if($(obj).style.display==""){
$(obj).style.display="none"
}else if($(obj).style.display=="none"){
$(obj).style.display=""
}
}
//==div nosee /==
