<script language= "JavaScript" >
function Loadtel () {
if ($ (' Tel '). Value.length ==0) {
Alert ("Please enter the phone number you want to query");
return false;
}
if ($ (' Tel '). value.length<6) {
Alert ("The phone number you entered does not exist");
return false;
}
var url = "${base}/news/telphone/" + $ (' tel '). Value + ". shtml";
var myajax = new Ajax.request (URL,
{
Method: ' Post ',
Oncomplete:loadinajax,
Asynchronous:true
}
);
var readyState = myAjax.transport.readyState;
alert (readyState);
if (readyState!= 4) {
$ ("Loading"). Style.display = "block";
$ ("Showsubperstock"). Style.display = "None";
}
}
function Loadinajax (transport) {
var readyState = transport.readystate;
alert (readyState);
if (readyState = = 4) {
alert (transport.status);
if (Transport.status = = 200) {
$ ("Loading"). Style.display = "None";
$ ("Showsubperstock"). Style.display = "block";
}
}
A = Transport.responsetext;
alert (a);
}
</script>