//上傳附件改變事件
function changes(e,c)
{
var child = document.getElementById("child")
var parent = document.getElementById("parent")
var val = child.value;
var index1=val.lastIndexOf(".");
var index2=val.length;
var suffix=val.substring(index1,index2);//後綴名
if((".xls"!=suffix)&&(".xlsx"!=suffix)&&(".doc"!=suffix)&&(".docx"!=suffix))
{
top.$.jBox.tip("請上傳後綴爲xls、xlsx、doc、docx的文件!");
var fileclone = child.cloneNode()
fileclone.value=""
parent.removeChild(child)
parent.appendChild(fileclone)
return false;
}
}