Я сделал вот так: <head> <META content='text/html; charset=windows-1251' http-equiv=Content-Type> <title>Пример</title> <link href='style_real_estate.css' rel='stylesheet' type='text/css'> <script language='javascript'> function tot(x) { if (x==0) { document.forms.write__obmen3.action = \"write_obmen.php\"; document.forms.write__obmen3.target=\"_blank\"; document.forms.write__obmen3.submit(); } else if(x==1) { document.forms.write__obmen3.action = \"write_obmen3.php\"; document.forms.write__obmen3.target=\"_blank\"; document.forms.write__obmen3.submit(); } } </script> </head> <form method='post' name='write__obmen3'> —————————————-- <input type='image' id='im' onMouseOver='dalllw();' onMouseOut='dallw();' onclick=\"var r=0; tot®;}\" src='images/dalee.png'> <input type='image' id='nazadd' onMouseOver='nazz();' onMouseOut='naz();' onclick=\"var r=1; tot®;}\" src='images/nazad.png'> </form>