



function space_count(Fld){
var count = 0;
var str = new String(Fld.value);


  for (var i=0; i<str.length; i++){		
    if (str.charAt(i) == " " ) { //found white space
      count ++;}
    }
            
  if (count == str.length)    //know the whole string is white spaces
    return true;
  else
    return false;                                 
      
	
}

function checkLength(Fld, size)
{
  var str = new String(Fld.value);
  
  if (str.length < size )
     return true;
  else
     return false;   
}







