
<!--
function BookMarkit()
{
	window.external.addFavorite("http://www.njzdzm.com","江苏中达新材料集团股份有限公司")
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
/*function ShowLayer(No)
{
	//document.all["Layer1"].style.display = "none";
	document.all["Layer2"].style.display = "none";
	//document.all["Layer3"].style.display = "none";
	document.all["Layer4"].style.display = "none";
	document.all["Layer5"].style.display = "none";
	//document.all["Layer6"].style.display = "none";
	//document.all["Layer7"].style.display = "none";
	//document.all["Layer8"].style.display = "none";
	document.all[No].style.display = "";
}
function ShowLayer1(No)
{
	//document.all["Layer1"].style.display = "none";
	//document.all["Layer2"].style.display = "none";
	//document.all["Layer3"].style.display = "none";
	//document.all["Layer4"].style.display = "none";
	//document.all["Layer5"].style.display = "none";
	//document.all["Layer6"].style.display = "none";
	//document.all["Layer7"].style.display = "none";
	//document.all["Layer8"].style.display = "none";
	document.all[No].style.display = "";
}*/
function open_pic(pic_name)
{
	window.open(pic_name,'pic1','width=780, height=550,top=0,left=0,scrollbars=1,resizable=1');
}
function ViewDIV(DIV_NAME,DIV_MODE)
{
	switch (DIV_MODE) 
	{
		case '1': S_left =98;break;
		case '2': S_left =4;break;
		case '3': S_left = 195;break;
		case '4': S_left = 60;break;
		case '5': S_left = 60;break;
		case '6': S_left = 394;break;
		case '7': S_left = 455;break;
		case '8': S_left = 580;break;
		case '9': S_left = 411;break;
		case '10': S_left = 10;break;
		default:S_left = 0;break;
	}
	document.all[DIV_NAME].style.visibility="visible";
	DIV_width  = window.document.body.clientWidth;
	if (DIV_width>760)
	{
		L_LEFT = (DIV_width-760)/2+S_left;
	}
	else
	{
		L_LEFT = S_left;
	}
	document.all[DIV_NAME].style.left=L_LEFT;
}
function CloseDIV(DIV_NAME)
{
	document.all[DIV_NAME].style.visibility="hidden";
}
function crf_form(theForm)
{
	var msg;
	msg = "";
	if (theForm.c_name.value=="")
	{
		msg = "姓名不能为空!\r\n";
	}
	if (theForm.c_tel.value=="")
	{
		msg += "电话不能为空!!\r\n";
	}

	if (theForm.c_com.value=="")
	{
		msg += "公司名称不能为空!\r\n";
	}

	if (theForm.c_cont.value=="")
	{
		msg += "内容不能为空!\r\n";
	}
	if (msg!="")
	{
		msg = "填写出错:\r\n\r\n"+msg;
		alert(msg);
		return false
	}
	return true;
}

function Open_Content(Where,Item,No)
{
	if(No!="")
	{
		window.open(Where+'?Item='+Item+'&ID='+No,'','width=663, height=500,top=0,left=0,resizable=1,scrollbars=1');
	}
	else
	{
		window.open(Where,'','width=600, height=600,top=0,left=0,scrollbars=1,resizable=1');
	}
}

function Open_Image(Where,Item,No,width,height)
{
	if(No!="")
	{
		window.open(Where+'?Item='+Item+'&ID='+No,'','top=50,left=100,width='+width+', height='+height+',resizable=0,scrollbars=0');
	}
	else
	{
		window.open(Where,'','width=530, height=600,top=0,left=0,scrollbars=1,resizable=1');
	}
}
//-->
