function openwin(page_name,width,height)
{
  width=width+20;
  height=height+20;
  window.open(page_name, "dmWin","width="+width+",height="+height+",toolbar=no,resize=yes,location=no,directories=no,status=yes,scrollbars=yes,menubar=no");
}

// Empty fields check function
function checkForm(form)
{
 if((form.lastName.value=="")||(form.firstName.value=="")||(form.EMail.value=="")||(form.city.value=="")||(form.CountryList.value==""))
 {
 alert("Заполните, пожалуйста, все обязательные поля!");
 return false;
 }
 else
 return true;
}

// Going across fields with 'Enter' function. 'mainForm' should conform to appropriate form name in HTML
function KeyPress(e,element)
{
	var kk = navigator.appName == 'Netscape' ? e.which : e.keyCode;
	if (kk == 13)
	{
		document.mainForm.elements[element].focus();
		return false
	}		
	return true
}
