function obj_addtocart(id,div){

	$(div).load('/iahah.php',{iq:'obj_addtocart',obj_id:id});

}
function obj_delfromcart(id,div){

	$(div).load('/iahah.php',{iq:'obj_delfromcart',obj_id:id});

}
// -----------------------------------------------------------
function set_Mask(I,M){
    function R(s){return new RegExp('('+s.replace(/\(/g,'\\(').replace(/\)/g,'\\)').replace(/\//g,'\\/').replace(/9/g,'\\d').replace(/a/g,'[a-zā-˙¸]').replace(/\*/g,'[a-zā-˙¸0-9]')+')','gi')}
    function N(c,j,x){
        for(var k=0,s='';k<L;k++)s+=$[k]||c||'_';
        I.value=s;
        x?0:I.sC(!j?i:0)
    }
    function D(e,p,i){
        p=I.gC();
        if (p[0]==p[1]) {
            if(e)p[1]++;
            else p[0]--
        }
        for(i=p[0];i<p[1];i++)
            if(!S[i]&&$[i]){
                $[i]=0;
                j--
            }
        return p
    }
    function V(){
        setTimeout(function(k){
                if (R(M).test(I.value)) {
                    I.value=RegExp.$1;
                    $=I.value.split('');
                    for(k=j=0;k<L;k++)if(!S[k])j++
                }
                else N()
            },0)
    }
    function P(c){
        if (c<35&&c!=8||c==45) return 1;
        switch(c){
            case 8:        i=D()[0]; return 0;
            case 46:    i=D(1)[1]; return 0;
            case 35:    i = L; return 1;
            case 36:    i = 1;
            case 37:    if (i-=2<-1) i=-1;
            case 39:    if (++i>L) i=L; return 1;
            default:    i=I.gC()[0];
                        while(i<L&&S[i]){i++}
                        if (i==L) return 0;
 
                        c = String.fromCharCode(c)
                        if (R(M.charAt(i)).test(c)) {
                            D(1);
                            $[i++] = c;
                            j++;
                            while(i<L&&S[i]){i++}
                        }
                        return 0
        }
    }
 
    var d=document, c='character', y=-100000, L=M.length, G=!c, i=0, j=0, $=M.split(''), S=M.split('');
 
    for (var k=0;k<L;k++) if (/a|9|\*/.test($[k])) $[k]=S[k]=0;
    I = typeof I=='string' ? d.getElementById(I) : I;
 
    I.sC = function(l,g){
        if(this.setSelectionRange) this.setSelectionRange(l,l);
        else {
            g = this.createTextRange();
            g.collapse(true);
            g.moveStart(c,y);
            g.move(c,l);
            g.select();
        }
    }
    I.gC = function(r,b){
        if (this.setSelectionRange) return [this.selectionStart,this.selectionEnd];
        else {
            r = d['selection'].createRange();
            b = 0-r.duplicate().moveStart(c,y)
            return [b,b+r.text.length]
        }
    }
    I.onfocus = function(){
        setTimeout(function(){N(0,!j)},0)
    }
    I.onblur = function(){
        j ? N(' ',0,1) : this.value=''
    }
    I.onkeydown = function(e,c){
        e = e||event;
        c = e.keyCode||e.charCode;
 
        if (c==8||c==46) {
            G = true;
            P(c);
            N();
            return !G
        }
        else if (!window.netscape&&(c>34&&c<38||c==39)) P(c)
    }
    I.onkeypress = function(e){
        if (G) return G=!G;
 
        e = e||event;
 
        if (P(e.keyCode||e.charCode)) return !G;
 
        N();
 
        return G
    }
 
    if (d.all&&!window.opera) I.onpaste=V;
    else I.addEventListener('input',V,false)
}
// -----------------------------------------------------------
function unchk(){
	$("input[@abc='abc']:checkbox").removeAttr("checked");
	//alert(12);
}
// -----------------------------------------------------------

function unchkr(obj){
	//alert($(obj).attr("checked"));
	if($(this).attr("checked")=="checked" || $(obj).attr("checked")==true){
		$("input[@abc='abc']:radio").removeAttr("checked");
	}
	//alert(12);
}

// -----------------------------------------------------------
function check5(obj){
	//alert(123);
	//alert($(obj).attr("checked"));


	if($(obj).attr("checked")===true && $(obj).attr("id")=="none"){
		
		$("#c32").removeAttr("checked");
		$("#c33").removeAttr("checked");
		$("#c29").removeAttr("checked");
		$("#c34").removeAttr("checked");
		$("#c31").removeAttr("checked");
		$("#c35").removeAttr("checked");
		$("#c36").removeAttr("checked");
	
	}else if(
		$("#c32").attr("checked")===false &&	
		$("#c33").attr("checked")===false &&	
		$("#c29").attr("checked")===false &&	
		$("#c34").attr("checked")===false &&	
		$("#c31").attr("checked")===false &&	
		$("#c35").attr("checked")===false &&	
		$("#c36").attr("checked")===false
	){
		$("#none").attr("checked","checked");
	}else if(
		$("#c32").attr("checked")===true ||	
		$("#c33").attr("checked")===true ||	
		$("#c29").attr("checked")===true ||	
		$("#c34").attr("checked")===true ||	
		$("#c31").attr("checked")===true ||	
		$("#c35").attr("checked")===true ||	
		$("#c36").attr("checked")===true		
	){
		$("#none").removeAttr("checked");
	}

}
// -----------------------------------------------------------
function check51(obj){
	//alert(123);
	//alert($(obj).attr("checked"));


	if($(obj).attr("checked")===true && $(obj).attr("id")=="none51"){
		
		$("#c22").removeAttr("checked");
		$("#c23").removeAttr("checked");
		$("#c24").removeAttr("checked");
		$("#c25").removeAttr("checked");

	
	}else if(
		$("#c22").attr("checked")===false &&	
		$("#c23").attr("checked")===false &&	
		$("#c24").attr("checked")===false &&	
		$("#c25").attr("checked")===false 
	){
		$("#none51").attr("checked","checked");
	}else if(
		$("#c22").attr("checked")===true ||	
		$("#c23").attr("checked")===true ||	
		$("#c24").attr("checked")===true ||	
		$("#c25").attr("checked")===true	
	){
		$("#none51").removeAttr("checked");
	}

}
// -----------------------------------------------------------
function check52(obj){
	//alert(123);
	//alert($(obj).attr("checked"));


	if($(obj).attr("checked")===true && $(obj).attr("id")=="none52"){
		
		$("#c19").removeAttr("checked");
		$("#c20").removeAttr("checked");
		$("#c21").removeAttr("checked");
		$("#c122").removeAttr("checked");
	
	}else if(
		$("#c19").attr("checked")===false &&	
		$("#c20").attr("checked")===false &&	
		$("#c21").attr("checked")===false &&
		$("#c122").attr("checked")===false
	){
		$("#none52").attr("checked","checked");
	}else if(
		$("#c19").attr("checked")===true ||	
		$("#c20").attr("checked")===true ||	
		$("#c21").attr("checked")===true ||
		$("#c122").attr("checked")===true
	){
		$("#none52").removeAttr("checked");
	}

}
// -----------------------------------------------------------
function check6(obj){
	//alert(123);
	//alert($(obj).attr("checked"));


	if($(obj).attr("checked")===true && $(obj).attr("id")=="none"){
		
		$("#c39").removeAttr("checked");
		$("#c40").removeAttr("checked");
		$("#c41").removeAttr("checked");
		$("#c42").removeAttr("checked");
		$("#c43").removeAttr("checked");
	
	}else if(
		$("#c39").attr("checked")===false &&	
		$("#c40").attr("checked")===false &&	
		$("#c41").attr("checked")===false &&	
		$("#c42").attr("checked")===false &&	
		$("#c43").attr("checked")===false
	){
		$("#none").attr("checked","checked");
	}else if(
		$("#c39").attr("checked")===true ||	
		$("#c40").attr("checked")===true ||	
		$("#c41").attr("checked")===true ||	
		$("#c42").attr("checked")===true ||	
		$("#c43").attr("checked")===true	
		
	){
		$("#none").removeAttr("checked");
	}

}
// -----------------------------------------------------------
function check7(obj){
	//alert(123);
	//alert($(obj).attr("checked"));


	if($(obj).attr("checked")===true && $(obj).attr("id")=="none"){
		
		$("#c111").removeAttr("checked");
		$("#c112").removeAttr("checked");
		$("#c113").removeAttr("checked");
		$("#c114").removeAttr("checked");
			
	}else if(
		$("#c111").attr("checked")===false &&	
		$("#c112").attr("checked")===false &&	
		$("#c113").attr("checked")===false &&	
		$("#c114").attr("checked")===false
	){
		$("#none").attr("checked","checked");
	}else if(
		$("#c111").attr("checked")===true ||	
		$("#c112").attr("checked")===true ||	
		$("#c113").attr("checked")===true ||	
		$("#c114").attr("checked")===true	
		
	){
		$("#none").removeAttr("checked");
	}

}
// -----------------------------------------------------------
// -----------------------------------------------------------
// -----------------------------------------------------------

