function geturl(selurl)
{
	window.open(selurl.options[selurl.selectedIndex].value);
}
function openwin(theU,theN,W,H,X,Y){
  if (theU==null) theU="about:blank";
  if (theN==null) var Win = window.open(theU,'_top');
  else {
    if (X==null) X=Math.ceil( (window.screen.width-W) / 2 )
    if (Y==null) Y=Math.ceil( (window.screen.height-H) / 2 )
    var Win = window.open(theU,theN,'scrollbars=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,width='+W+',height='+H);
    Win.resizeTo( Math.ceil( W ) , Math.ceil( H ) )
    Win.moveTo  ( Math.ceil( X ) , Math.ceil( Y ) )
  }
  Win.focus();
}
function openwinn(theU,theN,W,H,X,Y){
  if (theU==null) theU="about:blank";
  if (theN==null) var Win = window.open(theU,'_top');
  else {
    if (X==null) X=Math.ceil( (window.screen.width-W) / 2 )
    if (Y==null) Y=Math.ceil( (window.screen.height-H) / 2 )
    var Win = window.open(theU,theN,'scrollbars=no,toolbar=0,location=0,directories=0,status=0,menubar=0,width='+W+',height='+H);
    Win.resizeTo( Math.ceil( W ) , Math.ceil( H ) )
    Win.moveTo  ( Math.ceil( X ) , Math.ceil( Y ) )
  }
  Win.focus();
}
//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",20);
}
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



function keypress()
{
if((window.event.keyCode>95 && window.event.keyCode<106)|| (window.event.keyCode>47 && window.event.keyCode<58)|| (window.event.keyCode>36 && window.event.keyCode<41) || window.event.keyCode == 8|| window.event.keyCode == 46|| window.event.keyCode == 45|| window.event.keyCode == 36|| window.event.keyCode == 35|| window.event.keyCode == 13|| window.event.keyCode == 9){
event.returnValue=true}
else{
alert('如果您无法输入数字，请关闭中文输入法再试！');
event.returnValue=false}
}

function check_id()
{
if((window.event.keyCode>64 && window.event.keyCode<91 )|| (window.event.keyCode>95 && window.event.keyCode<106)|| (window.event.keyCode>47 && window.event.keyCode<58)|| (window.event.keyCode>36 && window.event.keyCode<41) || window.event.keyCode == 8|| window.event.keyCode == 46|| window.event.keyCode == 45|| window.event.keyCode == 36|| window.event.keyCode == 35|| window.event.keyCode == 13|| window.event.keyCode == 9){
event.returnValue=true}
else{
alert('如果您无法输入身份证号，请关闭中文输入法再试！');
event.returnValue=false}
}

function OpenWindowAndSetValue(Url,Width,Height,WindowObj,SetObj)
{
	var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;');
	if (ReturnStr!='') SetObj.value=ReturnStr;
	return ReturnStr;
}
function OpenWindow(Url,Width,Height,WindowObj)
{
	var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;');
	return ReturnStr;
}
function swfView(width, height,background, url){
	document.write("<div Style='background:"+background+";' Class=PIC_001><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("		codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("		width='"+width+"' height='"+height+"' align='middle'>");
	document.write("	<param name='allowScriptAccess' value='always' /> ");
	document.write("	<param name='movie'				value='"+url+"' /> ");
	document.write("	<param name='quality'			value='high' /> ");
	document.write("	<param name='wmode' value='transparent'/> ");
	document.write("	<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("		pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object></div>");
}
function imgView(width,height,alt,src,url){
	document.write("<a href='"+url+"' target='_blank'/>");
	document.write("<img src='"+src+"' alt='"+alt+"' border='0' id='Pic' WIDTH='"+width+"' height='"+height+"'/>");
	document.write("</a>");
}

 function CheckSearchForm(ThisForm)
{   
    
  var FoundError = false
  var Errormsg = ' '


 if(ThisForm.keyword.value =="请输入关键字")
   {
    ThisForm.keyword.focus()
    FoundError = true
    Errormsg = "未输入关键字...\n"
   } 
 if(ThisForm.keyword.value =="")
   {
    ThisForm.keyword.focus()
    FoundError = true
    Errormsg = "未输入关键字...\n"
   }

 if(FoundError == false)
  {      
  }
  else
  {
    alert(Errormsg)
    return false
  }
  }
  
  function CorpData(ThisForm)
{   
    
  var FoundError = false
  var Errormsg = ' '


 if(ThisForm.keyword.value =="输入企业名称、行业、产品、服务、地址或企业类型进行搜索")
   {
    ThisForm.keyword.focus()
    FoundError = true
    Errormsg = "请输入关键字...\n"
   } 
 if(ThisForm.keyword.value =="")
   {
    ThisForm.keyword.focus()
    FoundError = true
    Errormsg = "请输入关键字...\n"
   }

 if(FoundError == false)
  {      
  }
  else
  {
    alert(Errormsg)
    return false
  }
  }
  
  function SupplyData(ThisForm)
{   
    
  var FoundError = false
  var Errormsg = ' '


 if(ThisForm.keyword.value =="请输入产品名称或同时输入品牌、型号等要求")
   {
    ThisForm.keyword.focus()
    FoundError = true
    Errormsg = "请输入关键字...\n"
   } 
 if(ThisForm.keyword.value =="")
   {
    ThisForm.keyword.focus()
    FoundError = true
    Errormsg = "请输入关键字...\n"
   }

 if(FoundError == false)
  {      
  }
  else
  {
    alert(Errormsg)
    return false
  }
  }
function togglePerspective() {
	var d = document; {
		document.getElementById('perspective').style.display = "block";
		document.getElementById('perspectiveTab').style.backgroundPosition = "0 0";
		document.getElementById('welcome').style.display = "none";
		document.getElementById('welcomeTab').style.backgroundPosition = "0 -24px";
	} 
}
function toggleWelcome() {
	var d = document; {
		document.getElementById('welcome').style.display = "block";
		document.getElementById('welcomeTab').style.backgroundPosition = "0 0";
		document.getElementById('perspective').style.display = "none";
		document.getElementById('perspectiveTab').style.backgroundPosition = "0 -24px";
	} 
}