/*
(C) DBLaci 2008-01-22
V 1.2 2009-02-06 16:04 include(jQuery.js)
*/
function uca(cel) {
    j=1;
    while (box = eval("document.searchform."+cel + j)) {
	box.checked = false;
	j++;
    }
    box = eval("document.searchform."+cel + "1x");
    box.checked=true;
}

function uc(cel) {
    vp=false;
    j=1;
    while (box = eval("document.searchform."+cel + j)) {
	if (box.checked) vp=true;
	j++;
    }
    box = eval("document.searchform."+cel + "1x");
    box.checked=!vp;
}

function ucd() {
    destpipa=false;
    for (i=1;i<=3;i++) {
	if (jQuery('#cel_'+i).attr('checked')) {
	    destpipa=true;
	    break;
	}
    }
    box = jQuery('#cel_erotic');
    if (!destpipa) {
	box.attr('checked',true);
    } else {
	box.attr('checked',false);
    }
}

function ucr() {
    if (jQuery('#cel_erotic').attr('checked')) {
	for (i=1;i<=3;i++) {
    	    jQuery('#cel_'+i).attr('checked',false);
	}
    }
}

function textlimit(id,max) {
    var limit=jQuery('#'+id);//eval("document.regform."+id);
    var limitcnt=jQuery('#'+id+'cnt');//eval("document.regform."+id+"cnt");
    if (max<limit.val().length) {
	limit.val(limit.val().substr(0,max));
    }
    limitcnt.val(max-limit.val().length);
    limit.focus();
}

function showwarn() {
    var l=document.getElementById('warn');
    var s=l.style||l;
    s.visibility='visible';s.display='block';
}

mobilc=false;
