Also this line:
 Code:
$prochtml = "<table>@crlf <tr bgcolour=$proccolour>@crlf <td colspan=2>CPU Load%</td>@crlf </tr>" + $cpuhtml + "</table>


Should most likely be:
 Code:
$prochtml = "<table>"+@crlf+"<tr bgcolour="+$proccolour+">"+@crlf+"<td colspan=2>CPU Load%</td>"+@crlf+"</tr>"+$cpuhtml+"</table>"