image0=new Image();
image0.src="http://textanim.com/img/loader.gif";
image1=new Image();
image1.src="http://textanim.com/img/b0-en.png";
image2=new Image();
image2.src="http://textanim.com/img/b1-en.png";
function favorite(a,b){if (window.sidebar)window.sidebar.addPanel(a,b,"");
else if(window.opera && window.print){var c=document.createElement('a');c.setAttribute('title',a);c.setAttribute('href',b);c.setAttribute('rel','sidebar');c.click();} 
else if(document.all)window.external.AddFavorite(b, a);}
function openawindow(URL) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=400,left = 312,top = 184');");
}

function ajaxpost(urlpage,p0,p1,p2,p3,p4,p5,p6,p7,p11,p12,p9,p10,what)
{
if(window.XMLHttpRequest) http = new XMLHttpRequest();else if(window.ActiveXObject) http = new ActiveXObject("Microsoft.XMLHTTP");else return(false);	 
var url = urlpage;
var params = "p0="+document.getElementById(p0).value+"&p1="+document.getElementById(p1).value+"&p2="+document.getElementById(p2).value+"&p3="+document.getElementById(p3).value+"&p4="+document.getElementById(p4).value+"&p5="+document.getElementById(p5).value+"&p6="+document.getElementById(p6).value+"&p7="+document.getElementById(p7).value+"&p11="+document.getElementById(p11).value+"&p12="+document.getElementById(p12).value+"&p9="+document.getElementById(p9).value+"&p10="+document.getElementById(p10).value;	 

if(document.getElementById(p0).value=="")document.getElementById(p0).focus();

http.open("POST", url, true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
http.onreadystatechange = function() 
	{	
		if(http.readyState==1) {document.getElementById(what).innerHTML="<img src='http://textanim.com/img/loader-0.gif' alt='' border='0'/>";}
	         else if(http.readyState==4)
	         {
	                   if(http.status==200){document.getElementById(what).innerHTML=http.responseText;}
	                   else if(http.status==404){document.getElementById(what).innerHTML = "Url BUG";}
	                   else{document.getElementById(what).innerHTML = "Error : ".http.status;}
	         }	
	}
http.send(params);
}
function ajaxget(urlpage,what)
{
	if(window.XMLHttpRequest) obj1=new XMLHttpRequest();else if(window.ActiveXObject) obj1=new ActiveXObject("Microsoft.XMLHTTP");else return(false);
        obj1.open ('GET', urlpage, true);
        obj1.onreadystatechange = function() 
        {
         if(obj1.readyState==1) {document.getElementById(what).innerHTML="<img src='http://textanim.com/img/loader-1.gif' alt='' border='0'/>";}
         else if(obj1.readyState==4)
         {
                   if(obj1.status==200){document.getElementById(what).innerHTML=obj1.responseText;}
                   else if(obj1.status==404){document.getElementById(what).innerHTML = "Url BUG";}
                   else{document.getElementById(what).innerHTML = "Error : ".obj1.status;}
         }
        }
        obj1.send(null);
        return;
} 
function ajaxgetnext(urlpage,what)
{
	if(window.XMLHttpRequest) obj1=new XMLHttpRequest();else if(window.ActiveXObject) obj1=new ActiveXObject("Microsoft.XMLHTTP");else return(false);
        obj1.open ('GET', urlpage, true);
        obj1.onreadystatechange = function() 
        {
         if(obj1.readyState==1) {document.getElementById(what).innerHTML="<img src='http://textanim.com/img/loader-0.gif' alt='' border='0'/>";}
         else if(obj1.readyState==4)
         {
                   if(obj1.status==200){document.getElementById(what).innerHTML=obj1.responseText;}
                   else if(obj1.status==404){document.getElementById(what).innerHTML = "Url BUG";}
                   else{document.getElementById(what).innerHTML = "Error : ".obj1.status;}
         }
        }
        obj1.send(null);
        return;
} 	
function see(what) 
{
	where = document.getElementById(what);
	if (where.style.display=="none" || where.style.display==""){where.style.display="block";where.focus();} 
	else {where.style.display="none";}
}
function seeinline(what) 
{
	where = document.getElementById(what);
	if (where.style.display=="none" || where.style.display==""){where.style.display="inline";where.focus();} 
}
function dontsee(what) 
{
	where = document.getElementById(what);
	where.style.display="none";
}