var x;
var y;
var z;
var mail;
function ipa(x,y,z)
{
var xmlHttp;

    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");   

x=x+"?t="+y;


  xmlHttp.open("GET",x,true);
  xmlHttp.onreadystatechange = stateChanged;
  xmlHttp.send(null);
function stateChanged() 
{



    if(xmlHttp.readyState == 4)
    {
     document.getElementById(z).innerHTML=xmlHttp.responseText;
    
    
 

    }
       
}
  }
  
  
  
  
var back1;
var back2;
var back3;
var back4;
var back5;
var back6;
function backme(back1,back2,back3,back4)
{
document.getElementById('back1').style.backgroundImage='url(images/'+back1+')'; 
document.getElementById('back2').style.backgroundImage='url(images/'+back2+')';
document.getElementById('back3').style.backgroundImage='url(images/'+back3+')';
document.getElementById('back4').style.backgroundImage='url(images/'+back4+')';

}





var name;
var alt;
function show(name,alt)
{
var xmlHttp;

    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");   

var x;

var x="myimage.php?name="+name+"&alt="+alt;

  xmlHttp.open("GET",x,true);
  xmlHttp.onreadystatechange = stateChanged;
  xmlHttp.send(null);
function stateChanged() 
{


if(xmlHttp.readyState == 0)
	{
document.getElementById("showdiv").innerHTML = '<table width="200" height="180" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}
	if(xmlHttp.readyState == 1)
	{
 document.getElementById("showdiv").innerHTML = '<table width="200" height="180" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}
	if(xmlHttp.readyState == 2)
	{
     document.getElementById("showdiv").innerHTML = '<table width="200" height="180" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}
	if(xmlHttp.readyState == 3)
	{
	 document.getElementById("showdiv").innerHTML = '<table width="200" height="180" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}


    if(xmlHttp.readyState == 4)
    {
     document.getElementById("showdiv").innerHTML=xmlHttp.responseText;
    
    
 

    }
       
}
  }
  
  
  
  
var name;
var alt;
function show2(name,alt)
{
var xmlHttp;

    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");   

var x;

var x="myimage2.php?name="+name+"&alt="+alt;

  xmlHttp.open("GET",x,true);
  xmlHttp.onreadystatechange = stateChanged;
  xmlHttp.send(null);
function stateChanged() 
{


if(xmlHttp.readyState == 0)
	{
document.getElementById("showdiv2").innerHTML = '<table width="402" height="402" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}
	if(xmlHttp.readyState == 1)
	{
 document.getElementById("showdiv2").innerHTML = '<table width="402" height="402" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}
	if(xmlHttp.readyState == 2)
	{
     document.getElementById("showdiv2").innerHTML = '<table width="402" height="402" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}
	if(xmlHttp.readyState == 3)
	{
	 document.getElementById("showdiv2").innerHTML = '<table width="402" height="402" cellspacing="0" cellpadding="0"><tr><td align="center"><img border="0" src="images/load.gif"  width="16" height="16" align="center"> &#1575;&#1606;&#1578;&#1592;&#1575;&#1585;</td></tr></table>';
	}








    if(xmlHttp.readyState == 4)
    {
     document.getElementById("showdiv2").innerHTML=xmlHttp.responseText;
    
    
 

    }
       
}
  }

 var xcount=1;
function myfun()
{


if(xcount==5){xcount=1;}

    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");   
var x="ximage.php?xcount="+xcount;


  xmlHttp.open("GET",x,true);
  xmlHttp.onreadystatechange = stateChanged;
  xmlHttp.send(null);
function stateChanged() 
{



    if(xmlHttp.readyState == 4)
    {
     document.getElementById("showdiv").innerHTML=xmlHttp.responseText;
    
    
 

    }



}
xcount=xcount+1;
setTimeout("myfun()",4000);

}

var a;
var b;
var c;
var d;
var e;
var im;
function showhide(a,b,c,d,e,im)
{
document.getElementById(a).style.backgroundImage='url(rec1.png)'; 
document.getElementById(b).style.backgroundImage='url(xrec1.png)';
document.getElementById(c).style.backgroundImage='url(xrec1.png)';
document.getElementById(d).style.backgroundImage='url(xrec1.png)';
document.getElementById(e).style.backgroundImage='url(xrec1.png)';

a=a+"1";
b=b+"1";
c=c+"1";
d=d+"1";
e=e+"1";
document.getElementById(a).style.backgroundImage='url(rec2.png)';
document.getElementById(b).style.backgroundImage='url(xrec2.png)';
document.getElementById(c).style.backgroundImage='url(xrec2.png)';
document.getElementById(d).style.backgroundImage='url(xrec2.png)';
document.getElementById(e).style.backgroundImage='url(xrec2.png)';

document.getElementById("showtable").style.backgroundImage='url('+im+')';

}


