﻿// JScript 文件
function $(id)
{
return document.getElementById(id);
}
function JM_wu(ob){
ob.style.display="none";
}
function JM_you(ob){
ob.style.display="block";
}

function getdivdisplay(ob1,ob2,str){

if (str=='1')
{
JM_wu($(ob1))
JM_you($(ob2))

}
else
{

JM_you($(ob1))
JM_wu($(ob2))
}
}

function getdivdisplay2(ob1,ob2,ob3,ob4,str){

if (str=='1')
{
JM_wu($(ob1))
JM_you($(ob2))

JM_you($(ob3))
JM_wu($(ob4))
}
else
{

JM_you($(ob1))
JM_wu($(ob2))

JM_you($(ob3))
JM_wu($(ob4))
}
}



  function del(message,url)
  {
  if (confirm(message))
  {window.location.href=url;}
  else
  {
    return false;
  }
  
  }
  
  
 // JScript 文件  add by  gff  for seeker.Master


function xuanze(kongjian)
{

if (kongjian.value=="公司名称、关键词")
    {
    kongjian.value="";
    kongjian.focus();
    }
}

 function xuanze2(kongjian)
{

if (kongjian.value=="")
    {
    kongjian.value="公司名称、关键词";
    }
}
    
    
function textLimitCheck(thisArea, maxLength,messageCount)
{
    if (thisArea.value.length > maxLength)
	{
      	// alert(maxLength + ' 个字限制. \r超出的将自动去除.');
     	 thisArea.value = thisArea.value.substring(0, maxLength);
     	 thisArea.focus();
    }
    /*回写span的值，当前填写文字的数量*/
    $(messageCount).innerHTML = thisArea.value.length;
}

function textLimitCheck2(thisArea, maxLength,messageCount,div)
{
    if (thisArea.value.length > maxLength)
	{
    
      	$(div).style.display="block";
       thisArea.focus();
    }
    else
    {
    	$(div).style.display="none";
    }
     $(messageCount).innerHTML = thisArea.value.length;
} 
  
  
