/*
Javascript 通用函数
2006年03月12日 19:39:47 星期日
Dev:LiuYueBo
*/

//页面提交搜索
function duSerarchSubmit()
{
	return true;
}

function DetailChangeFont(s)
{
	var Obj=document.getElementById("db_3_1");
	if (s==1) {
		Obj.style.fontSize="16px";
	} else if (s==2) {
		Obj.style.fontSize="14px";
	} else if (s==3) {
		Obj.style.fontSize="12px";
	}
}

function winClose()
{
	window.close();
}

//系统主函数
//2007年01月26日 星期五 11:50:11 lybykw 2007年04月21日 星期六 12:12:27
function MainClass()
{
	this.SiteTop=function()
	{
		var str='<a name="top" style="display:none;"></a><div id="top1">'+
			'<div id="top1_i">'+
			'	<div id="top1_r">'+
			//Ecms自带搜索
			//2007年08月08日 星期三 14:24:28 del

			'		<form name="formObj" method="post" action="/e/search/index.php" onsubmit="return duSerarchSubmit();">'+
			'			<input type="text" name="keyboard" value="" size="18" maxlength="195" needs="" class="top1_si">'+
			'			<select name="show" needs="">'+
			'				<option value="title" selected>标题</option>'+
			'				<option value="newstext">全文</option>'+
			'				<option value="writer">作者</option>'+
			'			</select>'+
			'			<input type="submit" value="搜索" id="submitElement" class="top1_sb">'+
			'		</form>'+

			//Gogole搜索
			//2007年08月08日 星期三 14:24:55 lybykw
			/*'<form method="get" action="http://www.google.cn/custom" target="google_window">'+
			'<input type="hidden" name="client" value="pub-5146350661949640"></input>'+
			'<input type="hidden" name="forid" value="1"></input>'+
			'<input type="hidden" name="ie" value="GB2312"></input>'+
			'<input type="hidden" name="oe" value="GB2312"></input>'+
			'<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:186;L:http://www.chinaddv.com/gogole_search_logo.gif;S:http://;FORID:1"></input>'+
			'<input type="hidden" name="hl" value="zh-CN"></input>'+
			'<input type="hidden" name="domains" value="www.chinaddv.com"></input>'+
			'<input type="hidden" name="sitesearch" value="www.chinaddv.com">'+
			'<table><tr><td style="padding-right:15px;"><input type="text" name="q" size="15" maxlength="255" value="" id="sbi" class="top1_si" style="font-size:14px;"></input></td>'+
			'<td><input type="submit" name="sa" value="搜索 Search" id="sbb" class="top1_sb" style="font:11px tahoma;"></input></td></tr></table>'+
			'</form>'+*/
			//'<div>请点击广告，以支持我们的发展。</div>'+

			'	</div>'+
			'</div>'+
		'</div>'+
		'<div id="top2"></div>';
		document.write(str);
	}
	this.copyRightEndTime=function()
	{
		document.write("2009")
	}

	this.SiteVersion=function()
	{
		document.write(" Version 5.1");
	}

	this.SitePowered=function()
	{
		var str='Site powered by <a href="http://www.phome.net" target="_blank">ecms</a>.Template design:<a href="http://www.hyhw.net" target="_blank">hyhw.net</a></span></div><div id="bottom_2_0"><span>'+
		'<a href="http://validator.w3.org/check?uri=referer" target="_blank"><img src="/skin/chinadu_cn_060312/image/index/t_8.gif" width="80" height="15" border="0" alt=""></a>&nbsp;'+
		'<a href="http://jigsaw.w3.org/css-validator/" target="_blank"><img src="/skin/chinadu_cn_060312/image/index/t_9.gif" width="80" height="15" border="0" alt=""></a>&nbsp;'+
		'<a href="http://www.mozilla.org/products/firefox/" target="_blank"><img src="/skin/chinadu_cn_060312/image/index/t_10.gif" width="80" height="15" border="0" alt=""></a>&nbsp;'+
		'<a href="http://www.w3csites.com/profile.asp?u=lybykw" target="_blank"><img src="/skin/chinadu_cn_060312/image/index/t_11.gif" width="80" height="15" border="0" alt=""></a>'+
		' <scr'+'ip'+'t id="y_js" src="http://stat.aliunion.cn.yahoo.com/stat.js?pubid=29184"><'+'\/s'+'crip'+'t>'+
		'';
		document.write(str);
	}
	this.AdVersion=function()
	{
		document.write('[Google Advertisement Version]');
	}
}

var Main=new MainClass();

//window.onload=function(){
//	alert("sdfasdf")
//}

//提交评论验证
//2009年12月25日 星期五 14:14:03 lybykw
function doSubmitPinLun(obj)
{
	if(obj.saytext.value=="")
	{
		alert("您没什么话要说吗？");
		obj.saytext.focus();
		return false;
	}
	return true;
}




