function getrowbg () { global $bgcounter; if ($bgcounter++%2==0) { return "firstalt"; } else {return "secondalt";} }