
function openBrowserWindow(theURL,winName,features) { 
  window.open(theURL,winName,features); 
} 


function newWinow(url,name){
var height = screen.height-30;
var width = screen.width-10;
var newWin = window.open(url,name,'height='+height+',width='+width+',location=0,scrollbars=0,menubar=0,toolbar=0,status=0,screenX=0,screenY=0,fullscreen=1');
}

function validate_email(field,alerttxt)
{
with (field)
  {
  apos=value.indexOf("@");
  dotpos=value.lastIndexOf(".");
  if (apos<1||dotpos-apos<2)
    {alert(alerttxt);return false;}
  else {return true;}
  }
}

function validate_form(thisform)
{
with (thisform)
  {
  if (validate_email(email,"Not a valid e-mail address!")==false)
    {email.focus();return false;}
  }
}

