function omz() {
	var dlugosc	=	document.getElementById("cust_opis").value.length ;
	if(dlugosc<opis_min) {
		document.getElementById("cust_ileznak").innerHTML = '<b>'+dlugosc+'</b> - BŁĄD - Za krotki opis';
		document.getElementById("cust_ileznak").style.color = '#CC0000';
		document.getElementById("cust_submit").disabled=true

	} else {
		document.getElementById("cust_ileznak").innerHTML = '<b>'+dlugosc+'</b> - OK - Długość opisu prawidłowa';
		document.getElementById("cust_ileznak").style.color = '#00CC00';
		document.getElementById("cust_submit").disabled=false
	}
	//alert(opis);
}

function cut(obj,max) {
	if(obj.value.length>max) { 
		obj.value=obj.value.substr(0,max);
	} else {
		}
	}
	
	
function lmsg() {
		if(document.getElementById("cust_submit").disabled==true) alert('Nie możesz dodać wpisu ponieważ podany opis jest za krótki. Opis powinien mieć conajmniej '+opis_min+' znaków.');
		
		}
function check(own_css) {
    if(own_css.checked) {
		document.getElementById('cust_opismm').disabled="";      
    } else {
     document.getElementById('cust_opismm').disabled="disabled";
    }
}
