//-----------------------------------------全局变量----------------------------------------------------

//---------------应用函数---------------
function showflash(flashurl,flashwidth,flashheight )
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH='+flashwidth+' HEIGHT='+flashheight+' align="center" id="Company">');
document.write('<PARAM NAME=movie VALUE='+flashurl+'>');
document.write('<param name=wmode value=transparent>');
document.write('<PARAM NAME=quality VALUE=high>');
document.write('<PARAM NAME=allowScriptAccess VALUE=sameDomain>');
document.write('<EMBED src='+flashurl+' quality=high bgcolor=#FFFFFF WIDTH='+flashwidth+' HEIGHT='+flashheight+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent" >');
document.write('</EMBED>');
document.write('</OBJECT>');
}
function writePageDate()
{
	var nowDate=new Date();
	var nowYear=nowDate.getFullYear();
	var nowMonth=nowDate.getMonth()+1;
	var nowDay=nowDate.getDate();
	var nowWeek=nowDate.getDay();
	var nowWeekArray=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
	document.write("<font class='verdana_11px'>"+nowYear+"</font>年<font class='verdana_11px'>"+nowMonth+"</font>月<font class='verdana_11px'>"+nowDay+"</font>日&nbsp;&nbsp;"+nowWeekArray[nowWeek]);
}

function get_Code() {
	var Dv_CodeFile = "/include/GetCode.asp";
	if(document.getElementById("imgid"))
		document.getElementById("imgid").innerHTML = '<img src="'+Dv_CodeFile+'?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;" onclick="this.src=\''+Dv_CodeFile+'?t=\'+Math.random()" />'
}
function get_Code2() {
	var Dv_CodeFile = "/include/GetCode.asp";
	if(document.getElementById("imgid2"))
		document.getElementById("imgid2").innerHTML = '<img src="'+Dv_CodeFile+'?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;" onclick="this.src=\''+Dv_CodeFile+'?t=\'+Math.random()" />'
}

function openWindow(Url,Width,Height)
{
	topS=(screen.height-Height)/2;
	leftS=(screen.width-Width)/2;
	newWindow=window.open(Url,"","top="+topS+",left="+leftS+",status=no,scrollbars=yes,resizable=yes,width="+Width+",height="+Height);
}
function clearstr(seb){
	if(seb.value=="请输入搜索关键字..."){
		seb.value="";
	}
}
function addstr(seb){
	if(seb.value==""){
		seb.value="请输入搜索关键字...";
	}
}
function clsNull(Obj)
{
	//右键
	Obj.oncontextmenu = function() { return false; }

	//不能选择
	Obj.onselectstart = function() { return false; }
	Obj.ondragstart = function() { return false; }
}
//tab选项卡开始
function showtab(m,n,count){
	var strPic1;
	var strPic2;
	var tdcolor;
	if (m==1) {
		strPic1='url(images/index7.jpg)';
		strPic2='url(images/index8.jpg)';
		for(var i=1;i<=count;i++){
			if (i==n){			
				getObject(m+'_'+i).style.background=strPic1;
				getObject('td_'+m+'_'+i).style.color='#ffffff';
				getObject('tab_'+m+'_'+i).style.display='';
			}
			else {
				getObject(m+'_'+i).style.background=strPic2;
				getObject('td_'+m+'_'+i).style.color='#000000';
				getObject('tab_'+m+'_'+i).style.display='none';
			}
		}
	}
	if (m==2) {
		strPic1='url(images/index7.jpg)';
		strPic2='url(images/index8.jpg)';
		for(var i=1;i<=count;i++){
			if (i==n){			
				getObject(m+'_'+i).style.background=strPic1;
				getObject('td_'+m+'_'+i).style.color='#ffffff';
				getObject('tab_'+m+'_'+i).style.display='';
			}
			else {
				getObject(m+'_'+i).style.background=strPic2;
				getObject('td_'+m+'_'+i).style.color='#000000';
				getObject('tab_'+m+'_'+i).style.display='none';
			}
		}
	}
}
function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
}
//tab选项卡结束
