if (imgm.src == 'http://www.domain.com/images/...')
echo '<p onclick="ChangeUrl(\'menuimg'.$namecount.'\')">';