function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}


function doAction() {
stroka=document.pvdsubs.email.value; ind=stroka.indexOf('\@');
if (ind>0 && ind<stroka.length-1) {
  pvdWin= open("", "pvdwin", "width=350,height=200");
  pvdWin.focus(); pvdWin.document.open();
  pvdWin.document.write("<html><head><title>Process data...");
  pvdWin.document.write("</title></head>");
  pvdWin.document.write("<body topmargin=0 bgcolor=#F9F1D7 leftmargin=0 marginwidth=0 marginheight=0>");
  pvdWin.document.write("<table width=100% height=100% align=center><tr><td align=center>Wait please...</td></tr></table>");
  pvdWin.document.write("</body></html>");
  pvdWin.document.close();  
document.pvdsubs.submit();
}
else {alert('Wrong email');}

}