  	function gValidateField( field, maxlen ){
		if ( field.value.length > maxlen ){
			field.value = field.value.substr(0,maxlen);
		}
		document.forms['gContactForm']['counter_'+field.name].value = maxlen - field.value.length;
	}

	function gDoValidateField( form, field, fieldName, type, gt, lt){
		value = parseInt(form[field].value);
		if ( type == 'int' ){
			if ( isNaN(value) || (value < gt) || (lt < value) ){
				alert (fieldName + " trebuie sa fie un intreg in intervalul (" +gt+ " <= int <= " +lt+ ").");
				form[field].value = "";
				form[field].focus();
				return false;
			}
		}
		return true;
	}// end function 
	
	function submitform(){
		document.forms[0].submit();
	}

//
// Do nothing
//
function _void(){
	return;
}


