function trim(str) {
    			return str.replace(/^\s+|\s+$/g, '');
}

function checkform(form) {
	for (i=0; i<form.length; i++) {
		if (form.elements[i].value.length < 3) {
			alert('String contains less than 3 simbols!');
			form.elements[i].focus();
			return false;
			}
		}
}
