function changeLanguage(sLang)
{
	 setCookie('lang',sLang);
	 document.location.href='index.php';
}
window.onload=checkadv;
function goAdv(){
	document.location.href='warning.htm';
	}
function checkadv()
{
	if(getCookie('abc')=='yes')
	{
	   return;//ря╬╜спак	
	}
	 setCookie('abc','yes');
	 setTimeout('goAdv()',1000);
	 
}
setTimeout('checkadv()',2000);
function $m(s){
	return document.getElementById(s);
}
function wr(s){
	return document.writeln(s);
}
function rowDel(obj){
	obj.parentNode.parentNode.parentNode.removeChild(obj.parentNode.parentNode);//tr delete
}
var kAjax = {
   pickActiveX:[
    'Msxml2.XMLHTTP.4.0',
    'MSXML2.XMLHTTP.3.0',
    'MSXML2.XMLHTTP',
    'Microsoft.XMLHTTP'
  ],
  XMLHttpReq:null	
};
kAjax.pickActiveXVersion = function(arrVersions) {
    for (var iVn = 0; iVn < arrVersions.length; iVn++) {
      try {
        var o = new ActiveXObject(arrVersions[iVn]);
        return o;
      } catch (objException) {};
    }
    return null;
  };
kAjax.createXMLHttpRequest=function () {
		var obj;
		if(window.XMLHttpRequest) { //Mozilla
			obj = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) { 
			try {
				obj = kAjax.pickActiveXVersion(kAjax.pickActiveX);
			} catch (e) {}
		}
		return obj;
}

/*
obj
  method:post / get
  
*/
kAjax.f=function (obj) { 
    if (!obj.method) {
      obj.method = 'GET';
    }
    if(obj.content){
      obj.method='post';
    }
    if (!obj.contentType && obj.method.toUpperCase() == 'POST') {
      obj.contentType = 'application/x-www-form-urlencoded';
    }
    if(obj._self){
      kAjax._self=obj._self
    }else{
      kAjax._self=null;
    }
		this.XMLHttpReq=this.createXMLHttpRequest();
		kAjax.XMLHttpReq.open(obj.method, obj.url, true);//.open(objArgs.method, objArgs.url, objArgs.async);
		kAjax.XMLHttpReq.onreadystatechange = function (){
	    if (kAjax.XMLHttpReq.readyState == 4) { 
	       	if (kAjax.XMLHttpReq.status == 200) { 
	           	var res=kAjax.XMLHttpReq.responseText;
	            obj.onLoad(kAjax.XMLHttpReq);
	        } else { 
	            window.alert("Error Request Page File Not Found");
	        }
	    }
		}
    if (obj.contentType) {
      kAjax.XMLHttpReq.setRequestHeader('Content-Type', obj.contentType);
      kAjax.XMLHttpReq.send(obj.content);  
    }else{
      kAjax.XMLHttpReq.send(null); 
    }
}
function getCookie( name ) {     var start = document.cookie.indexOf( name + "=" );     var len = start + name.length + 1;     if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {         return null;     }     if ( start == -1 ) return null;     var end = document.cookie.indexOf( ';', len );     if ( end == -1 ) end = document.cookie.length;     return unescape( document.cookie.substring( len, end ) ); } 
function setCookie( name, value, path, domain, secure ) {     var today = new Date();     today.setTime( today.getTime() );     if ( expires=365 ) {         expires = expires * 1000 * 60 * 60 * 24;     }     var expires_date = new Date( today.getTime() + (expires) );     document.cookie = name+'='+escape( value ) +         ( ( expires ) ? ';expires='+expires_date.toGMTString() : '' ) +         ( ( path ) ? ';path=' + path : ';path=/' ) +         ( ( domain ) ? ';domain=' + domain : '' ) +         ( ( secure ) ? ';secure' : '' ); } 
function deleteCookie( name, path, domain ) {     if ( getCookie( name ) ) document.cookie = name + '=' +             ( ( path ) ? ';path=' + path : '') +             ( ( domain ) ? ';domain=' + domain : '' ) +             ';expires=Thu, 01-Jan-1970 00:00:01 GMT'; } 
