1 function getUrlState(URL){
2 var xmlhttp = new ActiveXObject("microsoft.xmlhttp");
3 xmlhttp.Open("GET",URL, false);
4 try{
5 xmlhttp.Send();
6 }catch(e){
7 }finally{
8 var result = xmlhttp.responseText;
9 if(result){
10 if(xmlhttp.Status==200){
11 return(true);
12 }else{
13 return(false);
14 }
15 }else{
16 return(false);
17 }
18 }
19 }