onerror = stopError;
function stopError()
{
 	return true;
}
$(document).ready(function() {
        $(".textInput", document.forms[0]).focus();
        
        $('.docCountfield').keyup(function() {
        	var rel = $(this).attr("rel");
        	var val = $(this).val();
        	if (!val || val == "0" || val == "00" || val == "000") {
        		$('.check'+rel).attr("checked", false);	
        	} else {
 				$('.check'+rel).attr("checked", true);
 			}
 			//alert($(this).val());
		});
		$('.docCheckbox').change(function() {
        	var rel = $(this).attr("rel");
        	var countVal = $('.count'+rel).val();
        	if ($(this).attr("checked") == true) {
        		if (!countVal || countVal == "0" || countVal == "00" || countVal == "000") {
        			$('.count'+rel).val("1");	
        		}
        	} else {
        			$('.count'+rel).val("");	
        	}
        	
 			//alert($(this).val());
		});
        
    });


