function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popup(url,width,height)
{
	alert('asd');
	var winTop = (screen.height / 2) - 100;
	var winLeft = (screen.width / 2) - 200;
	var windowFeatures = "width="+ width +",height="+ height +",";
	//windowFeatures = windowFeatures + "left=" + winLeft + ",";
	//windowFeatures = windowFeatures + "top=" + winTop + ",";
	//windowFeatures = windowFeatures + "resizable=yes,scrollbars=no";
	myWindow = window.open(url,"popup",windowFeatures);
	myWindow.focus();
	return false;
}

function checksubsform()
{
  if ( document.forms.employ.Name.value == "" )
  {
    alert("Error: Name field is empty");
    document.forms.employ.Name.focus();
    return false;
  }

  if ( (document.forms.employ.Email.value == "") || (document.forms.employ.Email.value.length < 7) )
  {
    alert("Error: E-mail field is empty");
    document.forms.employ.Email.focus();
    return false;
  }

  if (! (/^([a-z0-9_]|-|.)+@(([a-z0-9]|-)+.)+[a-z]{2,4}$/.test(document.forms.employ.Email.value)) )
  {
    alert("Error: E-mail is invalid");
    document.forms.employ.Email.focus();
    return false;
  }      
  if ( document.forms.employ.Message.value == "" )
  {
    alert("Error: Message filed is empty");
    document.forms.employ.Message.focus();
    return false;
  }

  
  document.forms.employ.submit();
  return true;
}
