function isEmpty1(textcontrol)  { 
   str = textcontrol.value;    
   for (i = 0; i < str.length; i++) {      
    chr = str.substring(i, i + 1);      
	if (chr != ' ') {    
	    return false;      
	}
   }
  return true;  
}
function login_form_onsubmit() {
	if (isEmpty1(document.login_form.user_name)) {
	 alert ('Please provide all of the required information');
	 return false; 
	}
	if (isEmpty1(document.login_form.password)) {
	 alert ('Please provide all of the required information'); 
	 return false; 
	}
 }
