function fileExist(FileURL)
{
if(window.ActiveXObject){
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}else if (window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}
xmlhttp.open("GET",FileURL,false);
xmlhttp.send();
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200) {
return "1";
}else if(xmlhttp.status==404){
return "2";
}else{
return "3";
}
}
}
{
if(window.ActiveXObject){
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}else if (window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}
xmlhttp.open("GET",FileURL,false);
xmlhttp.send();
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200) {
return "1";
}else if(xmlhttp.status==404){
return "2";
}else{
return "3";
}
}
}