<!--

function winPopUp(path, w, h)
{
	winl = (screen.width - w) / 2;
	wint = (screen.height - h) / 2;
	conf = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ",noresize";
	path = "view.php?path=" + path;
	window.open(path, "", conf);
}

function validateEmail (emailField)
{
	emailpat = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;

	if (!emailField.value.match(emailpat))
	{
		alert('Neįvestas arba neteisingas el. pašto adresas!');
		emailField.focus();
		emailField.select();
		return false;
	}

	return true;
}

-->