<!--

//以下是开发中使用的下拉菜单function程序
function navbarOver(src,clrOver,clrOverBorder) { if (!src.contains(event.fromElement)){ src.style.cursor = 'hand'; src.bgColor = clrOver; src.borderColor = clrOverBorder;  }}

function navbarOut(src,clrIn,clrInBorder) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; src.borderColor = clrInBorder; }}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; 
	//alert(i);
	//alert(args.length-2);
	}
}	
function mail_login()
{
var obj;
obj=document.logon;
if (space_check(obj.name.value)=="")
	{
	alert('请输入您的用户名！');
	obj.name.focus();
	return;
	}
if (space_check(obj.passwd.value)=="")
	{
	alert('请输入您的邮箱密码！');
	obj.passwd.focus();
	return;
	}

obj.action="http://mail.sz-bw.com/igenus/login.php?Cmd=login";
obj.submit();
}
function menuid(id,n)
{
var obj;
obj=document.info;
obj.f_menuid.value=id;
obj.f_oper.value="";
obj.action=n;
obj.submit();
}
function goto_page(n) //翻页函数
{ 
var obj;
obj=document.info;
obj.f_page.value=n;
obj.f_oper.value="";
obj.submit();
}
function goto_page1() //翻页函数
{ 
var obj;
obj=document.info;
obj.f_page.value=obj.page1.value;
obj.f_oper.value="";
obj.submit();
}
function num_check(NUM) //数字符校验函数 
{ 
	var 
	i,j,strTemp; 
	strTemp="0123456789"; 
	if (NUM.length==0) return false 
	for 
	(i=0;i<NUM.length;i++) 
		{ 
		j=strTemp.indexOf(NUM.charAt(i)); 
		if (j==-1) 
		{ return false;} 
		} 
		return true; 
}
function date_check(NUM) //日期符校验函数 
{ 
	var 
	i,j,strTemp; 
	strTemp="0123456789-"; 
	if (NUM.length==0) return false 
	for 
	(i=0;i<NUM.length;i++) 
		{ 
		j=strTemp.indexOf(NUM.charAt(i)); 
		if (j==-1) 
		{ return false;} 
		} 
		return true; 
} 
function space_check(sString) //空字符校验函数
{ 
	var sStr,i,iStart,sResult = "";
	sStr = sString.split("");
	iStart = -1 ;
	for (i = 0 ; i < sStr.length ; i++)
	{
	if (sStr[i] != " ") 
		{
		iStart = i;
		break;
		}
	}
	if (iStart == -1) { return "" ;}    //表示sString中的所有字符均是空格,则返回空串
	else { return sString.substring(iStart) ;}
}
function enchar_check(str)  //英文字符校验函数
{
strlen=str.length
for(i=0;i<=strlen-1;i++)
	{
	str1=str.charCodeAt(i);
	if (str1<32||str1>126)
		{
		return false;
		break;
		}
	}
	return true;
}
function vote(n,m,k)
{
var obj;
obj=document.info
obj.f_control.value="Vote";
obj.f_id.value=n;
obj.f_number.value=m;
obj.submit();
}
function customer_login()
{
var obj;
obj=document.info
if(space_check(obj.f_userid.value)=="")
	{
	alert("请输入您的客户账号，非常感谢!");
	obj.f_userid.focus();
	}
else if(space_check(obj.f_pass.value)=="")
	{
	alert("请输入您的客户密码，非常感谢!");
	obj.f_pass.focus();
	}
else
	{
	obj.f_control.value="Login";
	obj.submit()
	}
}
function customer_reset()
{
var obj;
obj=document.info;
obj.f_userid.value="";
obj.f_pass.value="";
}
function weblink()
{
var obj;
obj=document.info;
if (!space_check(obj.f_txtlink.value)=="")
	{
	//window.open(obj.f_txtlink.value);
	window.location.href=obj.f_txtlink.value;
	}
}
function yxdl_reset()
{
var obj;
obj=document.logon;
obj.userid.value="";
obj.passwd.value="";
}
function clickproducts(type)
{
var obj;
obj=document.info;
obj.f_search.value="";
obj.f_typesearch.value=type;
obj.f_menuid.value="35";
obj.f_oper.value="Search";
obj.action="../products/index.asp";
obj.submit();
}
function showproducts(name,type)
{
var obj;
obj=document.info;
obj.f_oper.value="查看";
obj.f_id.value=name;
obj.f_menuid.value="35";
obj.action="../products/index.asp";
obj.submit();
}
function feedback(id)
{
window.open('../products/product_back.asp?id='+id+'&name='+name,'Product','height=450,width=650,scrollbars=yes,resizable=no,top=80,left=70')
}
//-->

