如何讓超連結點選一次就不能再點呢?

<a href="<%=path%>/orders/export" class="daoc" onclick="disablea(this,1);return com.whuang.hsj.confirmdelete('确定要導出嗎?')" >導 出(快)</a>&nbsp;
t;a href="<%=path%>/orders/exportslow" class="daoc" onclick="disablea(this,2);return com.whuang.hsj.confirmdelete('确定要導出嗎(包含産品詳情)?')" >導 出(慢)</a>

var disablea=function(object,num){
if (object!=null) {
object.onclick=function(){
return false;
}
function cleanup22(){
alert("begin");
if(num==1){
object.onclick=function(){
return com.whuang.hsj.confirmdelete('确定要導出嗎?');
}
}else {
return com.whuang.hsj.confirmdelete('确定要導出嗎(包含産品詳情)?');
}
}
settimeout(cleanup22,4000);
}