function showsubMenu(menuId) {
var obj=document.getElementById("subNav");
obj.innerHTML=mmenus[menuId];
}
function HidesubMenu() {
var obj=document.getElementById("subNav");
obj.innerHTML=" ";
}
function checkForm(){
var doc=document.loginForm;
if (doc.UserName.value=="" || doc.UserName.value.length<2 ) {
    alert("ÇëÊäÈëÄãµÄÓÃ»§Ãû»òÓÃ»§Ãû³¤¶È²»×ã3Î»");
    doc.UserName.focus;
	return false;
   }
  if (doc.userPassword.value=="" || doc.userPassword.value.length<6 ) {
    alert("ÊäÈëÃÜÂë£,»òÃÜÂë²»×ã6Î»×Ö·û£¡");
    doc.userPassword.focus;
	return false;
   }     
}
//¸Ä±äÍ¼Æ¬´óÐ¡
function resizepic(thispic)
{
if(thispic.width>120) thispic.width=120;
if(thispic.height>168) thispic.height=168;
}
//ÎÞ¼¶Ëõ·ÅÍ¼Æ¬´óÐ¡
function resizepicto(thispic,w,h)
{
if(thispic.width>w) thispic.width=w;
if(thispic.height>h) thispic.height=h;
}
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}
function scrollproduct()
{
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
}
