js файл:
var isPress = false;
function enter2(event)
{
    
	if (event.keyCode == 17) {
		isPress = true;
	}
	if (event.keyCode == 48 && isPress) {
                var wnd = window.open('forma.php', '123', 'width=100, height=100, resizable');
	}
}
function enter(event)
{
	if (event.keyCode == 17) {
		isPress = false;
	}
}
forma.php:
<form name="record" method="post" action=" " onsubmit="return checkform();">
<script language="jscript">
var checks = false;
 function checkform() {
	checks = false;
	if (document.record.comm.value=='') {
		//alert('Скажете нам что-нибудь?'); return false;
		checks = true;
	}
	if (document.record.yourname.value=='') {
		//alert('Скажете нам что-нибудь?'); return false;
		checks = true;
	}
	if (checks) {
		alert('Скажете нам что-нибудь?'); return false;
	}
	return true;
}
</script>
Имя: </b>  <input type="text" name="yourname" size="26" maxlength="40">
ЭлектроЯщик: </b>  <input type="text" name="youmail" size="26" maxlength="40">
Тут ошибка: </b>  <textarea cols="50" rows="15" name="comm" id="text"></textarea>
<input type="submit" value="Отправить">