converted from asp. Have not looked at php code yet.