Xact, I don't think that is what Finner is looking for.
Finner, what you want to do so your site validates is wrap the JS code in
<!-- //--> like so:
Code:
<script type="text/javascript">
<!--
function browsing(){
var existprev = "<IMAGE_PREVIOUS_ID>";
var existnext = "<IMAGE_NEXT_ID>";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" title="click for previous" onclick="document.location=\'index.php?showimage=<IMAGE_PREVIOUS_ID>\';"></a>');
}
if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" title="click for next" onclick="document.location=\'index.php?showimage=<IMAGE_NEXT_ID>\';"></a>');
}
}
// -->
</script>