window.onload = function() { var str = "sdddrtkjsfkkkkkkkasjdkddjk" var count = 0; var strMax = ""; for (var i = 0; i