document.write(
"<div id='phdive' class='phdive'></div><div id='phgray' class='phgray'></div>"
);
function loadph(param,path)
{
var params='params='+encodeURIComponent(param);
  if (typeof window.ActiveXObject != 'undefined' ) {
          xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
          xmlDoc.onreadystatechange = loadphr ;
        }
        else {
          xmlDoc = new XMLHttpRequest();
          xmlDoc.onload = loadphr ;
        }
        xmlDoc.open( "POST", path , true );
	xmlDoc.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        xmlDoc.send(params);
	close;

}
function loadphr()
{
        if ( xmlDoc.readyState != 4 ) return ;
	 document.getElementById("phgray").style.display ="block";
if (!ffs) {
if (navigator.userAgent.indexOf ("MSIE 6") != -1) {
document.getElementById("phdive").style.top= document.documentElement.scrollTop + document.body.scrollTop +15;}
document.getElementById("phgray").style.height=document.body.clientHeight;document.getElementById("phgray").style.width=document.body.clientWidth};
	 document.getElementById("phdive").style.display = "block";
         var okno =document.getElementById("phdive");
 	 okno.innerHTML ='<table cellspacing="0" border="0"><tr><td align="right"><a href="javascript:phclose()"><img src="/vam/i/pcrest.gif" border="0" alt="закрыть" title="закрыть"></a></td></tr><tr><td>' + xmlDoc.responseText + '</td></tr></table>';
if (self.innerHeight) {wh = self.innerHeight;} else if (document.documentElement && document.documentElement.clientHeight) {
wh = document.documentElement.clientHeight;  } else if (document.body) {wh = document.body.clientHeight;}
if ((document.getElementById('fgimg1').height+200)>wh) {document.getElementById('fgimg1').height=wh-205;}
	 acc("phdive");
	cinit('^');
      }
var zcoord=2000;
function acc(wid,wh) 
{if (self.innerHeight) {
w = self.innerWidth;
} else if (document.documentElement && document.documentElement.clientHeight) {
w = document.documentElement.clientWidth;
} else if (document.body) {
w = document.body.clientWidth;
} 
if (wh) {document.getElementById(wid).style.width=wh +"px";}
if (!wh) {wh=document.getElementById(wid).offsetWidth;}
if (w>wh) {
w=parseInt((w-wh)/2);
document.getElementById(wid).style.left=w + "px";
	}
zcoord+=1;
document.getElementById(wid).style.zIndex=zcoord;
}
function phclose ()
{
document.getElementById("phdive").style.display = "none";
document.getElementById("phdive").innerHTML = "";
document.getElementById("phgray").style.display = "none";
document.getElementById("phgray").innerHTML = "";
}
