function chkcurrent(obj){
var f=document.getElementsByName('filUpload[]');
var count = 0;
for(var k in f ){
if(f.item(k).value>'')
if(f.item(k).value.search(/((\.pdf)|(\.doc)|(\.docx))$/)!=-1){
count++;
}else{
alert("Please attach file type 'pdf', 'doc' or 'docx' only");
f.item(k).focus(); return false;
}
}
if(count>0) obj.submit(); else alert('No item file attach');
}