//************************地址栏***********************
function js_address(strCode,strPath)
{
	var strTable=new Array(9),count;
	if(strPath=="default")
	{
		strPath="../"
	}
	document.write('<table  align="center" width="780px" border="0" cellspacing="0" cellpadding="0"><tr><td height="0"   align="center"></td></tr></table>');
/*
	document.write('<table width="780px" border="1" cellspacing="0" cellpadding="0" align="center"  height="50px"><tr><td height="10px"></td></tr><tr><td align="center" class="BottomInfo" height="*">');
    document.write('<font style="font-family:verdana,arial, helvetica;font-size:8pt;color:rgb(50,50,50);">');
    document.write('Copyright &copy; <br>');
    document.write('Post Code：&nbsp;&nbsp;Tel：&nbsp;&nbsp;Fax：<br>');
    document.write('Email：</font><br>');
    document.write('地址：<br>');
    document.write('版权所有：<br>');
    document.write('技术支持：<a href="http://www.sinitica.com/" target="_blank" class="aSupport">新龙科技</a>');
	document.write('</td></tr><tr valign="top"><td align="center" height="20px" valign="top">');
	document.write('<Script src="'+strPath+'counter/sycounter.asp?Style=1" language="JavaScript"></script></td></tr>');
	document.write('</table>');
	document.write('</td></tr></table>');
}
*/
var strTable=new Array(9),count;
	strTable[0]='<table width="780px" border="0" cellspacing="0" cellpadding="0" align="center">';
	strTable[1]='<tr><td align="center" class="a1"><br>';
	strTable[2]="";
	strTable[3]='';
	strTable[4]='';
	strTable[5]='</td></tr><tr valign="top"><td align="center">';
	strTable[6]='<table align="center" width="780px" class="MaxTable" cellpadding="0" cellspacing="0" border="0"><tr><td class="BottomInfo" style="line-height:1.6em;"><center>Copyright &copy; 2007 Hangzhou Eurasia Machinery Manufacture Co., Ltd. All rights reserved.<br>Tel : (0571) 81891180&nbsp;&nbsp;Fax : (0571) 85183257<br>E-mail:<a href="mailto:aemc@pulpmold.cn">aemc@pulpmold.cn</a><br></center><br><br></td></tr></table>';	
	strTable[7]='</td></tr>';
	strTable[8]='</table>';
	strTable[9]='</td></tr></table>';
	
	
	for(count=0;count<9;count++)
	{
		document.write(strTable[count]);
	}
}


//引自aic
//CDate:#2005.09.21#
//添加一个参数strCntUseName，为了给不同的子网站设置不同的计数器
//************************地址栏***********************
function js_address_v2(strCode,strPath,strCntUseName)
{
	var strTable=new Array(9),count;
	if(strPath=="default")
	{
		strPath="../"
	}
	document.write('<table  align="center" width="780px" border="0" cellspacing="0" cellpadding="0"><tr><td height="0"   align="center"></td></tr></table>');

var strTable=new Array(9),count;
	strTable[0]='<table width="780px" border="0" cellspacing="0" cellpadding="0" align="center">';
	strTable[1]='<tr><td align="center" class="a1"><br>';
	strTable[2]="";
	strTable[3]='';
	strTable[4]='';
	strTable[5]='</td></tr><tr valign="top"><td align="center"><Script src="'+strPath+'counter/counter.asp?name='+strCntUseName+'&ys=4&hidden=1" language="JavaScript"></script></td></tr>';
	if(strCntUseName=="aic_2")
	{
	strTable[5]='</td></tr><tr valign="top"><td align="center"><Script src="'+strPath+'counter/counte1.asp?name='+strCntUseName+'&ys=4&hidden=1" language="JavaScript"></script></td></tr>';	
	}
	strTable[6]='';	
	strTable[7]='';
	strTable[8]='</table>';
	strTable[9]='</td></tr></table>';
	
	
	for(count=0;count<9;count++)
	{
		document.write(strTable[count]);
	}
}

//*****************打开窗口函数********************************
function IsOpenWin(url,x,y,name,IsOpW)
{
	if(IsOpW==1)
	{
		var temp;
		temp='"'+" toolbar=no location=no directories=no status=no menubar=no scrollbars=yes resizable=yes"+" width="+x+" height="+y+'"';
		open(url,name,temp);
	}
	else
	{
		self.location = url
	}
}

//*****************打开窗口函数2003-10-27********************************
	function openWin(url,x,y,name)
	{
		var temp,new2;
		temp='"'+" width="+x+", height="+y+", toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes "+'"';
		new2=window.open(url,"_blank",temp);
//MosDate:#2005.07.05#
//___??____打开窗口后，若窗口内路径又转到别的网站，则弹出没有权限的错误提示！
//		new2.moveTo(0,0);
	}

	function openWinContactUs(url,x,y,name)
	{
		var temp,new2;
		temp='"'+" width="+x+", height="+y+", toolbar=no, location=no, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=no "+'"';
		new2=window.open(url,"_blank",temp);
//MosDate:#2005.07.05#
//___??____打开窗口后，若窗口内路径又转到别的网站，则弹出没有权限的错误提示！
//		new2.moveTo(0,0);
	}

	
	//控件得到焦点
	function js_Front_GetFocus(strName)
	{
		var o_GetFocus=eval(strName);
		var b_return=true;
		o_GetFocus.focus();
		return b_return;
	}
	
	
	


function onLink(url)
{
	if(url!='#')
	{
		window.open(url);
	}
}
 
 
//检查登录用户名、密码输入是否合法#2004.07.12#
function js_VerifyReaderLoginData()
{
	var msg = "";
	var l_return=false;
	var v1=document.LogRdForm.UserName.value;
//	var v2=document.LogRdForm.Password.value;
	var o_return=document.LogRdForm.UserName;

	if (js_alltrim(v1) == ""||(!js_IsValid(js_alltrim(v1),1)))
	{
		msg += "用户名";
	}
/*
	if (js_alltrim(v2) == ""||(!js_IsValid(js_alltrim(v2),1)))
	{
		if (msg=="")
		{
		  msg += "密码";
		  o_return=document.LogRdForm.Password;
		}
		else
		{msg += "、密码";}
	}
*/
	if (msg != "")
	{
		alert("对不起，请输入合法的"+msg+"！");
		o_return.focus();
	}
	else
	{
		l_return=true;
	}
	return l_return;
}


//***********date_display********s

function js_date_display()
{

	document.write("<font class=\"fTime\">[");
	today=new Date();
	var hours=today.getHours();
	var minutes=today.getMinutes();
	var seconds=today.getSeconds();
	var timeValue=hours;
	timeValue+=((minutes<10)?":0":":")+minutes;
	//timeValue+=(hours>=12)?"pm":"am";
	var d=new initArray("星期日]","星期一]","星期二]","星期三]","星期四]","星期五]","星期六]");
	document.write(today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日"," ",d[today.getDay()+1]," ");
	document.write("</font>");
}

function initArray()
{
    this.length=initArray.arguments.length;
	for(var i=0;i<this.length;i++)
	  this[i+1]=initArray.arguments[i];
}
