<!--
function cookie(name){
this.$name=name;
var allc=document.cookie;
if (allc=="")return;
var cookies=allc.split(';');
var cookie=null;
for (var i=0; i<cookies.length; i++){
if(cookies[i].charAt(0)==' '){cookies[i]=cookies[i].substring(1)}
if (cookies[i].substring(0, name.length+1)==(name+"=")){
cookie=cookies[i];
break;}
}   
if (cookie==null)return;
var cookieval=cookie.substring(name.length+1);
var a=cookieval.split('&');
for(var i=0; i<a.length; i++){
a[i]=a[i].split(':');}
for(var i=0; i<a.length; i++){
this[a[i][0]]=decodeURIComponent(a[i][1]);}  
}
cookie.prototype.store=function(){
var cookieval=""
for(var prop in this){
if((prop.charAt(0)=='$')||((typeof this[prop])=='function'))
continue;
if(cookieval !="")cookieval+='&';
cookieval +=prop + ':' + encodeURIComponent(this[prop]);
}  
var cookie=this.$name + '=' + cookieval;
cookie += "; path=/";
document.cookie=cookie;   
}
function con_reg(){
var eAct=document.getElementById('act');
if(!eAct){return;}
var nAct=eAct.getAttribute("name");
switch(nAct){
case "cntpas":
var mynum=document.getElementById('mynum').getAttribute("name");
var indreg=document.getElementById('indreg').getAttribute("name");           
var cook = new cookie("saanddata");
cook.indreg=indreg;
cook.mynum=mynum;          
cook.store();
break;
case "zakaz":
var indreg=document.getElementById('indreg').getAttribute("name");
if(indreg){if(indreg=='3'){
top.masBas=[];
var cook = new cookie("saanddata");
cook.zakaz='3';
cook.store();              
}} 
default:
break;
}
}
//-->
