*/ /** * Start a timer and hand it back to the JS by assigning the current time (of start) to * var asset_timer * @return string JavaScript time intializer */ function start_timer() { //$objResponse = new xajaxResponse(); $time = time(); //$objResponse->addScript("asset_timer='$time';asset_timer_total=0;"); //return $objResponse; return "olms.asset_timer='$time';olms.asset_timer_total=0;"; } echo start_timer();