<!--
    function validate(forma)
    {
     if ((trim(document.forma.searchword.value) != '') & (trim(document.forma.searchword.value).length < 3))
       {
       alert('Please enter minimum 3 characters !');
    	 document.forma.searchword.focus();
    	 return false;
       }
    	
    } 

	function addOption(selectId, txt, val)
	{
		var objOption = new Option(txt,val);
		
		document.getElementById(selectId).options.add(objOption);
	}

    function validation_register(forma)
     {
    
     if (trim(document.forma.user.value) == '')
    	 {
    	 alert('Please enter the username !');
    	 document.forma.user.focus();
    	 return false;
    	 }
      
     if (trim(document.forma.user.value).length < 4)
    	 {
    	 alert('Please enter minimum 4 characters for the username !');
    	 document.forma.user.focus();
    	 return false;
    	 } 	
    
     if (document.forma.parola.value == '')
    	 {
    	 alert('Please enter the password !');
    	 document.forma.parola.focus();
    	 return false;
    	 }
    
     if (document.forma.parola.value.length < 4)
    	 {
    	 alert('Please enter minimum 4 characters for the password !');
    	 document.forma.parola.focus();
    	 return false;
    	 }
    
    
     if (document.forma.parola.value != document.forma.repeta_parola.value)
        {
        alert('Passwords are not identical !');
    	return false;
        }
    
      if (trim(document.forma.name_display.value) == '')
    	 {
    	 alert('Please enter the name that will be displayed at Contact details !');
    	 document.forma.name_display.focus();
    	 return false;
    	 }
    
       if (!isEmail(forma.email.value))
       {
    	alert('Please enter a valid email address !');
    	 document.forma.email.focus();
    	 return false;
       }
     
     }
/**********************************************************************
Name: trim
Description: Removes leading and trailing spaces
**********************************************************************/
    function trim(str) {
    	return (str.replace(/^\s*|\s*$/gi,''))
    } 
    

	function remember()
       {
            var URL = 'html/rem.html';
            var options = "toolbar=0,status=0,menubar=0,scrollbars=1," + "resizable=0,width=300,height=100, left=700,top=200";
            //alert(URL);
            window.open(URL, "", options);
       }

-->	
