
/* -------------------------------------------------------------- */
function jQuery_start() {
   jQuery(document).ready(
      function() {
        jQuery(".niceCheck").mousedown(
          function() {
            changeCheck(jQuery(this));
          });
        jQuery(".niceCheck").each(
           function() {
             changeCheckStart(jQuery(this));
           });
     });
}
/* -------------------------------------------------------------- */
function changeCheck(el) {
    var el = el,input = el.find("input").eq(0);

    if(!input.attr("checked")){
        el.css("color","#000");
        el.css("background-position","0 -13px");
        input.attr("checked",true)
    } else {
        el.css("color","#aaa");
        el.css("background-position","0 0");
        input.attr("checked",false)
    }
    return true;
}
/* -------------------------------------------------------------- */
function changeCheckStart(el) {
    var el = el,input = el.find("input").eq(0);

    if(input.attr("checked")) {
        el.css("color","#000");
        el.css("background-position","0 -13px");
    }
    return true;
}
/* -------------------------------------------------------------- */
function disableSelection(target) {
    if (typeof target.onselectstart!="undefined") {
        target.onselectstart=function(){return false}
    } else {
        if (typeof target.style.MozUserSelect!="undefined") {
            target.style.MozUserSelect="none"
        } else {
             target.onmousedown=function(){return false}
             target.style.cursor = "default"
        }
    }
}
/* -------------------------------------------------------------- */
function clearText(field){

    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;

}
/* -------------------------------------------------------------- */

