function liv(){
document.write("<img src='http://counter.yadro.ru/hit?t42.16;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' width=31 height=31>")
}
function resize(){
	if (screen.width>1220) {
		v="141px";
		a=giD("iul");
		a.style.width=v;
		a=giD("iur");
		a.style.width=v;
		a=giD("iml");
		a.style.width=v;
		a=giD("imr");
		a.style.width=v;
		a=giD("ibl");
		a.style.width=v;
		a=giD("ibr");
		a.style.width=v;
	}
}
function giD(id){
	var iM=null;
	if(document.getElementById){
		iM=document.getElementById(id);
	}else if(document.all){
		iM=document.all[id];
	}else if(document.layers){
		iM=document.layers[id];
	}
	return iM;
}
function G(a){
s='0748427074';w=468;h=15;
if	(a==2){s=5575038369;h=280;w=336;}
else if	(a==3){s=4407974673;w=120;h=600;}
else if	(a==4){s=5731201021;w=200;h=200;}
document.write("<script type='text/javascript'>"+'google_ad_client="pub-7901115037849215";google_ad_slot="'+s+'";google_ad_width='+w+';google_ad_height='+h+';'+"</script>"+
"<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function getXmlHttp(){ 
  var xmlhttp; 
  try { 
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
  } catch (e) { 
    try { 
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
    } catch (E) { 
      xmlhttp = false; 
    } 
  } 
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
    xmlhttp = new XMLHttpRequest(); 
  } 
  return xmlhttp; 
} 

function addComment(num, last_comment, date, sign) { 
	var cid=giD("code").innerHTML; 
	var xmlhttp = getXmlHttp();
	var urix = '/commentsave/'+Math.random()+'/';
	var postx = 'num='+num+'&id='+cid+'&comm='+encodeURIComponent(last_comment)+'&date='+encodeURIComponent(date);
	xmlhttp.open('POST', urix, true); 
	xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Content-length", postx.length);
	xmlhttp.send(postx); 
}
