//使用说明：
//链接不传参数：addJYM (this,0)，链接需要传参数：addJYM (this,1)，
//Form表单不传参数：addJYM (this,2)，Form表单传参数：addJYM (this,3)。
//原有的链接不能有jym2005= 这个字串，如果有会被删除


    function addJYM(thisObject,hasparam){
	//产生随机数
       var time=((new Date().getTime()*9301+49297)%233280)/(233280.0);
	var rand=Math.random(); 
	//alert('rand is:'+rand+' time is:'+time);
	time=(time+rand)*9301;
	var indx=-2;	

	//表单的处理
	if(hasparam>1){	  
	  while(indx!=-1){
	    indx=thisObject.action.lastIndexOf('jym2005=');
	    if(indx!=-1){          
	      thisObject.action=thisObject.action.substring(0,indx-1);
	      //alert('current action is: '+thisObject.action);
            }
          }
	  if(hasparam==2){ //无参数
	    thisObject.action=thisObject.action+'?jym2005='+time;	    
	  }else{
	    thisObject.action=thisObject.action+'&jym2005='+time;
	  }
	  //alert('form action is: '+thisObject.action);
	  return true;
	}
	
	//链接的处理；
       indx=-2;	
	while(indx!=-1){
	  indx=thisObject.href.lastIndexOf('jym2005=');
	  if(indx!=-1){          
	    thisObject.href=thisObject.href.substring(0,indx-1);
	    //alert('current href is: '+thisObject.href);
          }
        }
	if(hasparam==0){  //无参数
	  thisObject.href=thisObject.href+'?jym2005='+time;
	}else{
	  thisObject.href=thisObject.href+'&jym2005='+time;
	}
	//alert('the last href is: ' +thisObject.href);
    }