max = 255;

function checkForm_parteneriat_consultanta_solicita() {
         if (!VerifyText('document.form.name', 15))
                 return false;
         if (!VerifyText('document.form.type', 9))
                 return false;	         
		 if (!VerifyText('document.form.field', 10))
                 return false; 
         if (!VerifyText('document.form.CUI', 11))
                 return false;
         if (!VerifyText('document.form.city', 3))
                 return false;
         if (!VerifyText('document.form.county', 6))
                 return false;
         if (!VerifyText('document.form.country', 7))
                 return false;
         if (!VerifyText('document.form.contact_person', 12))
                 return false;
         if (!VerifyText('document.form.contact_person_position', 13))
                 return false;				 
         if (!VerifyText('document.form.phone', 8))
                 return false;
         if (!VerifyEmail('document.form.email')) {
                 return false;
         }
         if (!VerifyText('document.form.details', 14))
                 return false;		 
        return true;
}

function checkForm_utilizator_nou() {
         if (!VerifyText('document.form.username', 0))
                 return false;	
         if (!VerifyPassword()) {
                 return false;
		 }				 
         if (!VerifyText('document.form.forename', 1))
                 return false;
         if (!VerifyText('document.form.name', 2))
                 return false;
         if (!VerifyList('document.form.sex', 0))
                 return false;
         if (!VerifyList('document.form.day', 1))
                 return false;
         if (!VerifyList('document.form.month', 1))
                 return false;
         if (!VerifyList('document.form.year', 1))
                 return false;
         if (!VerifyText('document.form.city', 3))
                 return false;
     	if (!VerifyText('document.form.address', 4))
                 return false;
         if (!VerifyText('document.form.zip', 5, 'numbers'))
                 return false;
         if (!VerifyText('document.form.county', 6))
                 return false;
         if (!VerifyText('document.form.country', 7))
                 return false;		 		
         if (!VerifyText('document.form.phone', 8))
                 return false;
         if (!VerifyEmail('document.form.email')) {
                 return false;
         }
        return true;
}
<!---------------------------------------------------------------------------
function GetCurrentDate()
        {var months=new Array(13);
                months[1]=  "Ianuarie";
                months[2]=  "Februarie";
                months[3]=  "Martie";
                months[4]=  "Aprilie";
                months[5]=  "Mai";
                months[6]=  "Iunie";
                months[7]=  "Iulie";
                months[8]=  "August";
                months[9]=  "Septembrie";
                months[10]= "Octombrie";
                months[11]= "Noiembrie";
                months[12]= "Decembrie";

        var time=new Date();
        var lmonth=months[time.getMonth() + 1];
        var date=time.getDate();
        var year=time.getYear();

        if (year < 2000)
                year = year + 1900;
        document.write(date+" "+lmonth + " "+ year);
}
<!---------------------------------------------------------------------------

function VerifyText(str, j, action) {
                        var Messages = new Array(14);
                         Messages[0]  = 'Campul "Nume de utilizator" contine caractere invalide sau nu a fost completat !!!';
                         Messages[1]  = 'Campul "Prenume" contine caractere invalide sau nu a fost completat !!!';
                         Messages[2]  = 'Campul "Nume" contine caractere invalide sau nu a fost completat !!!';
                         Messages[3]  = 'Campul "Localitate" contine caractere invalide sau nu a fost completat !!!';
                         Messages[4]  = 'Campul "Adresa" contine un caracter invalid sau nu a fost completat !!!';
                         Messages[5]  = 'Campul "Cod postal" contine caractere invalide sau nu a fost completat !!!';
                         Messages[6]  = 'Campul "Judet/Sector" contine caractere invalide sau nu a fost completat !!!';
                         Messages[7]  = 'Campul "Tara" contine caractere invalide sau nu a fost completat !!!';
                         Messages[8]  = 'Campul "Telefon" contine caractere invalide sau nu a fost completat !!!';
						 
						 Messages[9]  = 'Campul "Tipul organizatiei" contine caractere invalide sau nu a fost completat !!!';
						 Messages[10]  = 'Campul "Domeniul de activitate" contine caractere invalide sau nu a fost completat !!!';
						 Messages[11]  = 'Campul "Codul fiscal" contine caractere invalide sau nu a fost completat !!!';
						 Messages[12]  = 'Campul "Persoana de contact" contine caractere invalide sau nu a fost completat !!!';
						 Messages[13]  = 'Campul "Functia persoanei de contact" contine caractere invalide sau nu a fost completat !!!';
						 Messages[14]  = 'Campul "Detalii asupra proiectului si asupra cererii de asistenta. " contine caractere invalide sau nu a fost completat !!!';						 
						 Messages[15]  = 'Campul "Denumirea organizatiei" contine caractere invalide sau nu a fost completat !!!';						 
                        
						
						var temp;

                        if (action != 'numbers')
                                ValidChr = "0123456789ABCDEFGHIJKLMNOPRSTUVZYWXQabcdefghijklmnoprstuzywxvq-.,+ \\\""
                        else
                                ValidChr = "0123456789"

                        if (eval(str+'.value==""')) {
                                alert(Messages[j]);
                                eval(str+'.select()');
                                eval(str+'.focus()');
                                return false
                        }

                        for (var i=0;i < eval(str+'.value.length');i++){
                                temp = eval(str + '.value.substring(i,i+1)');
                                if (ValidChr.indexOf(temp) == -1){
                                        eval(str+'.select()');
                                        eval(str+'.focus()');
                                        alert(Messages[j]);
                                        return false
                                }
                        }
                        return true
                }
<!---------------------------------------------------------------------------
function VerifyPassword() {
        if (document.form.password.value!='') {
                if (document.form.password.value != document.form.cf_password.value) {
                        alert('Campurile "Parola" si "Confirma parola" trebuie sa contina aceeasi valoare !');
                        return false;
                }

        if (document.form.password.value.length < 6) {
                alert('Parola trebuie sa aiba intre 6 si 10 caractere !');
                return false;
        }
        }
        return true;

}
<!---------------------------------------------------------------------------
function VerifyEmail(str){
  emailAddress = eval(str + '.value');
  var atSymbol = emailAddress.indexOf("@");																	// Get the index of the '@'
  var period = emailAddress.lastIndexOf(".");																// Get the value of the last '.'
  var suffix = emailAddress.substring(period + 1, emailAddress.length);
  
  // Make sure the '@' symbol and '.' is in a valid location
  if (((atSymbol != 0) && (atSymbol != -1)) && (suffix.length == 3) && (atSymbol < period) && (atSymbol != period - 1)) return true;
  	alert("Adresa de email este invalida!");
	return false;
}
<!---------------------------------------------------------------------------
function VerifyList(Common, j) {
          var Messages = new Array(5);
          Messages[0]  = 'Trebuie sa faci o alegere in campul "Sex" !';
          Messages[1]  = 'Va rugam sa selectati ziua, luna si anul nasterii !';
          Messages[2]  = 'luna ?';
          Messages[3]  = 'anul ?';
          Messages[4]  = 'tara ?';

        if (eval(Common+'.selectedIndex == 0'))        {
                alert(Messages[j]);
                eval(Common+'.focus()');
                return false;
                }
        else
                return true;

        }
<!-----------------------------------------------------
function Reset(str) {
        eval (str+'.value=""');
}
<!-----------------------------------------------------
function changeCase(frmObj) {
	var index;
	var tmpStr;
	var tmpChar;
	var preString;
	var postString;
	var strlen;
        tmpStr = frmObj.value.toLowerCase();
        strLen = tmpStr.length;
        if (strLen > 0)  {
                for (index = 0; index < strLen; index++)  {
                        if (index == 0)  {
                                tmpChar = tmpStr.substring(0,1).toUpperCase();
                                postString = tmpStr.substring(1,strLen);
                                tmpStr = tmpChar + postString;
                        }
                        else {
                                tmpChar = tmpStr.substring(index, index+1);
                                if ((tmpChar == " " || tmpChar == "-")&& index < (strLen-1))  {
                                        tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
                                        preString = tmpStr.substring(0, index+1);
                                        postString = tmpStr.substring(index+2,strLen);
                                        tmpStr = preString + tmpChar + postString;
                                 }
                        }
                }
        }
frmObj.value = tmpStr;

}