Its not that easy...
function docrap(){ codetodo;}Do the crap that you want to do by: docrap();
Yus it is.That's why they invented "For... loops", functions, and sub-routines.