<!--
function validate(string2,caption,lengthmin,lengthmax) {

    if (string2.length < lengthmin) {
        alert('Fältet "' + caption + '" måste innehålla minst '+lengthmin+' tecken.');
        return false;
    }
    if (string2.length > lengthmax) {
        alert('Fältet "' + caption + '" får max innehålla '+lengthmax+' tecken.');
        return false;
    }
    return true;
} 
//-->

