Lastof = function Lastof ( LastOf, Last ) { // if the LastOf variable is null ? change it to "" LastOf = ( LastOf == null ) ? "" : LastOf // if the Last variable is null ? change it to 0 Last = ( Last || 0 ) Buffer = 1000 isLast = 0 for ( LastCounter = Last ; LastCounter < Buffer ; LastCounter++ ) { if ( !LastOf [ LastCounter ] ) { isLast = 1 } else { isLast = 0 break } } return ( isLast ) } Sizeof = function Sizeof ( SizeOf ) { SizeOf = ( SizeOf == null ) ? "" : SizeOf Size = 0 for ( Size = 0 ; Lastof ( SizeOf, Size ) == 0 ; Size++ ) { } return ( Size ) }