function F_flash(flashURL,flashWIDTH,flashHEIGHT)
{
document.writeln ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+'>'); 
document.writeln ('<PARAM NAME=movie VALUE="'+flashURL+'">'); 
document.writeln ('<PARAM NAME=wmode VALUE=transparent>'); 
document.writeln ('<PARAM NAME=loop VALUE=true>'); 
document.writeln ('<PARAM NAME=quality VALUE=high>'); 
document.writeln ('<EMBED src="'+flashURL+'" loop=true wmode=opaque quality=high swLiveConnect=FALSE WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>'); 
document.writeln ('</OBJECT>'); 
}

//打开新窗口
function OpenWin(theURL) { //v2.0
  window.open(theURL,'newwindow','scrollbars=yes,width=460,height=300');
}
function change_zc(img_zc,DownPic,Img_detail,flag,Pname,pageID,Pv,Pn)
{//flag,1为图片，2为Flash
	if (flag=='1'){
		document.getElementById("zc_img").innerHTML="<img src='img/product_images/b/"+img_zc+"'>";
	}
	else{
		document.getElementById("zc_img").innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='734' height='363'><param name='movie' value='img/product_images/b/"+img_zc+"'/><param name='quality' value='high' /><embed src='img/product_images/b/"+img_zc+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='734' height='363'></embed></object>";
	}
	document.getElementById("Img_detail").innerHTML=Img_detail;
	document.getElementById("DownLink").href="javascript:downfile_M('"+DownPic+"')";
	document.getElementById("Send_frend").href="javascript:OpenWin('MailForm.asp?flag=Friend&FileUrl="+DownPic+"')";
	document.getElementById("Send_Myself").href="javascript:OpenWin('MailForm.asp?flag=Myself&FileUrl="+DownPic+"')";
	document.getElementById("Pname").innerHTML=Pname;
	document.getElementById("PageTxt").innerHTML=pageID;
	document.getElementById("Pv").href="?page="+Pv;
	document.getElementById("Pn").href="?page="+Pn;
}

//改变图大小
function imgresize(thispic)
{
if(thispic.width>530){thispic.height=thispic.height*530/thispic.width;thispic.width=530;} 
}
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize

var status0='';
var curfontsize=10;
var curlineheight=18;
<!--
//改变图片大小
function resizepic(thispic)
{
if(thispic.width>700) thispic.width=700;
}
//无级缩放图片大小
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}

//product页的菜单函数
function menu_tree(meval,n,rscount){
	var left_n=eval(meval);
	if (left_n.style.display=='none'){
		eval(meval+".style.display='';");
		for(var i=0;i<rscount;i++)
		{
			if(i!=n)
			document.getElementById("left_"+i).style.display="none";
		}
	}
	else{
		eval(meval+".style.display='none';"); 
	}
}

//限制字符数
function textCounter(sElement, maxlimit) { 
	field = sElement;
	if (field.value.length > maxlimit){
		field.value = field.value.substring(0, maxlimit); 		
	} else{
		document.getElementById("remLen").value = maxlimit - field.value.length;
	}
	if (field.value.length == maxlimit){
		alert("请将字符限制在200个以内");
	}
}

function checktypeid()
{
	if (document.getElementById("typeID").value=="")
	{
		alert("请选择类别");
		document.getElementById("typeID").focus();
		return false;
	}
	return true;
}

function subSurvey()
{
	form1.content.value=document.getElementById("SurveyInfo").innerHTML;
	form1.submit();
}

function checkTelFormat(tel)
{
	var partten = /^1[3,8]\d{9}$/;
	if(partten.test(tel))
	{
		return true;
	}else{
		return false;
	}
}
function showL(l,n)
{
	for(i=1; i<=n;i++)
	{
		if(i==l)
		{
			document.getElementById("ProClassL"+i).style.display="";
		}else{
			document.getElementById("ProClassL"+i).style.display="none";
		}
	}
}
function SubLoginForm()
{
	if(document.getElementById("MName").value=="")
	{
		alert("请输入账号")
		document.getElementById("MName").focus();
		return false;	
	}
	if(document.getElementById("MPsw").value=="")
	{
		alert("请输入密码")
		document.getElementById("MPsw").focus();
		return false;	
	}
	if(document.getElementById("tel").value=="")
	{
		alert("请输入手机号码")
		document.getElementById("tel").focus();
		return false;	
	}
		if(document.getElementById("checkCode").value=="")
	{
		alert("请输入验证码")
		document.getElementById("checkCode").focus();
		return false;	
	}

}


