//禁止文本框的内容被选中 
//调用实例:直接放在调用的JS文件中 
function select()   
{   
 document.selection.empty();  
}   
document.onselectstart=select;