public final static long sizestring(String s)
{
 int multi;
 double value=0;
 int i;
 if(s==null) return 0;
 s=s.trim(); 
 for(i=0;i<s.length();i++)
 {
     char c;
     c=s.charAt(i);
     if(c=='.' || c=='-') continue;
     if(c>'9' || c<'0' )
	 break;
 }
 value=Float.valueOf(s.substring(0,i)).floatValue();
 multi=parseSizeUnits(s.substring(i).trim());
 return (long)(multi*value);
}