// JavaScript Document
function   IsDate(mystring)   {  
	  var   reg   =   /^(\d{4})-(\d{2})-(\d{2})$/; var   str   =   mystring;  var   arr   =   reg.exec(str);  
      if   (!reg.test(str)&&RegExp.$2<=12&&RegExp.$3<=31){  
           return   false;  
        }  
}
function check_keyword(keyword,ziduan){
   if (keyword ==''){
	    alert('请输入关键字');
		return false;
   }
   if (keyword == '输入关键字'){
	    alert('请输入关键字');
		return false;	   
   }
   if (ziduan == 'ex_date'){
        if (IsDate(keyword) == false){
			alert("请确保输入的日期格式为yyyy-mm-dd!");  
			return false;					
		}
		else{
		   return true;
		}
   }
}
function count_web($str){
  	       $(".STYLE2").html('统计中,请稍候...');
	       $.ajax({
				 type:"POST",
				 async:false,
				 dataType:"html",  
				 url:"http://www.intex-sh.com/count.php",
				 data:"act=count",
				 success:function(data){
  	                 $(".STYLE2").html(data);
				 }
           })	
}