Code:
<script language="javascript" >
need this code to work please help i'm bignner

function showmsg(arg)
{
	alert(arg);
}
</script> <?php 
$msg="hello";
echo '<img src="http://bytes.com/img/icons/ico_rej.gif" alt=""  style="cursor:pointer" onclick="showmsg($msg)" />';

?>