Some utility javascript functions for use with Yii's CActiveForm widget