Not Found
The requested URL /ajax.php was not found on this server.
Additionally, a 404 Not Founderror was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at robot-blog.ir Port 80 ";
var w = window;
function ajax_init(is_xml)
{
var req = false;
if (w.XMLHttpRequest) {
req = new XMLHttpRequest();
if (req.overrideMimeType) {
if( is_xml ) { req.overrideMimeType("application/xml"); }
else { req.overrideMimeType("text/plain"); }
}
} else if (w.ActiveXObject) {
try { req = new w.ActiveXObject("MSXML3.XMLHTTP"); } catch(exptn) {
try { req = new w.ActiveXObject("MSXML2.XMLHTTP.3.0"); } catch(exptn) {
try { req = new w.ActiveXObject("Msxml2.XMLHTTP"); } catch(exptn) {
try { req = new w.ActiveXObject("Microsoft.XMLHTTP"); } catch(exptn) {
}}}}
}
return req;
}
function upd(blog)
{
var req = ajax_init(false);
if( ! req ) { return; }
req.open("GET", "blog_up.php?blog="+blog+"&"+Math.round(Math.random()*1000), true);
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
req.onreadystatechange=function()
{
if (req.readyState==4 && req.status == 200)
{
var giveOutput = req.responseText;
document.getElementById('list').value=giveOutput;
}
}
req.send();
}
function motion(s,e){
document.getElementById('alert').style.top=s;
if(s>=e){
setTimeout(function(){motion(s-1,e);document.getElementById('alert').style.opacity=document.getElementById('alert').style.opacity-0.01;},20);
}
}
function alertb(mess){
document.getElementById('alert').style.display='block';
document.getElementById('alert').style.opacity='0.9';
document.getElementById('alert').style.top='10';
document.getElementById('alert').innerHTML=mess;
//setTimeout(motion(10,-90),2000);
setTimeout(function(){motion(10,-91);}, 8000);
}
function progress(s,id){
document.getElementById('progressbar').style.display='block';
if(s<=100){
//setTimeout(function(){document.getElementById('progressbar2').style.width=s+'%';progress(s+1,id);},40);
}
}
function proc(id,cap,param,t,auto)
{
for (var i=0;i<=300;i++){
var element = document.getElementById('cap'+i.toString());
if (typeof element !== "undefined" && element !== null){
document.getElementById('cap'+i.toString()).focus();
}
}
t = (typeof t === "undefined") ? "0" : t;
auto = (typeof auto === "undefined") ? "0" : auto;
var req = ajax_init(false);
if( ! req ) { return; }
progress(0,id);
req.timeout = 15000;
req.open("POST", "send.php?cap="+cap+"&auto="+auto+"&"+Math.round(Math.random()*1000), true);
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
req.ontimeout = function () {if(t<=2){proc(id,cap,param,t+1,auto)}else{go(id+3,0,auto);alertb("به دلیل کند عمل کردن سرور از این وبلاگ صرف نظر شد");}}
req.onerror=function () { proc(id,cap,param,t,auto); }
req.onreadystatechange=function()
{
if (req.readyState==4 && req.status == 200)
{
var giveOutput = req.responseText;
var outstr = req.responseText;
giveOutput=giveOutput.split("^*^");
for (var i=0;i<=300;i++)
{
if(document.getElementById('item'+i.toString()).innerHTML.length<5){
var nextpanel=i;
break;
}
}
document.getElementById('show'+nextpanel.toString()).style.display='block';
document.getElementById('show'+nextpanel.toString()).style.opacity=1;
if(id%3==2){
document.getElementById('blog'+nextpanel.toString()).innerHTML=document.getElementById('currentaddr1').innerHTML;
}else if(id%3==1){
document.getElementById('blog'+nextpanel.toString()).innerHTML=document.getElementById('currentaddr2').innerHTML;
}else if(id%3==0){
document.getElementById('blog'+nextpanel.toString()).innerHTML=document.getElementById('currentaddr3').innerHTML;
}
if(outstr.indexOf("1^*^")!=-1){
alertb(giveOutput[1]);
//document.getElementById('status').style.display='block';
document.getElementById('sent').innerHTML=parseInt(document.getElementById('sent').innerHTML)+1;
document.getElementById('item'+nextpanel.toString()).innerHTML="