Mistři v programování na #hovnokod

JavaScript #996

Better safe than sorry I guess. http://thedailywtf.com/Articles/The-New-TODO-and-More.aspx

function checkAlpha(sStr)
{
var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
var num   = '0123456789';
var Char;
var isChar = true; 
for (var i=0;(i<sStr.length) && (isChar==true);i++)    
    {
    Char = sStr.charAt(i);
    if (alpha.indexOf(Char)==-1)
        { 
        isChar=false;
        }
    }
return isChar;
} //end function

HovnoKod,