	function get(name_control){
		
		try{
	    	if (eval("document.CustomerAreaForm." + name_control + ".value") == "")
			{
				
				return false;
			}
		    else{
				
				return true;
			}
		}
		catch(err)
		{
			
		}
	}


	function check(){
		if (get('user') == false){
	   		alert('Sorry, field User is mandatory');
			document.CustomerAreaForm.user.focus();
			return; 
		}
		if (get('password') == false){ 
	   		alert('Sorry, field Password is mandatory');
			document.CustomerAreaForm.password.focus();
			return;
		} 
		else
			document.CustomerAreaForm.submit(); 
		return;
	}
