function checkImgAddr(url){ var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("post",url,false); xmlhttp.send(); if(xmlhttp.readyState==4){ if(xmlhttp.status==404){ return "File Not Exist."; }else if(xmlhttp.status == 200){ return "File is Exist."; }else{ return xmlhttp.status; } } }