function ok(maxchars,maxlines) {

	var stripLine = document.profile.info.value.match(/\n+/g);
	var countLine = stripLine?stripLine.length:0;
   	
    if (countLine > (maxlines-1)) {      
    	alert('There is a maximum of ' + maxlines + ' lines.');		
        return false;
    } else {
    
		if(document.profile.info.value.length > maxchars) {
    		alert('There is a maximum of ' + maxchars + ' characters. Please remove '+ (document.profile.info.value.length - maxchars)+ ' characters.');
        	return false;
		} else
			return true;
    }
}