function checkEmail(myForm) {
 var errmsg  = "The following required field(s) were not filled in or were filled in incorrectly:\n";
 var result  = true;
 if (myForm.uname != null)
   if (myForm.uname.value == "") {
     result = false;
     errmsg = errmsg + "First Name\n";
   }
 if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value))){
   result = false;
   errmsg = errmsg + "E-Mail\n";
 }
 if (!result) alert (errmsg);
 return result;
}

function windowOpener(url,width,height,name,scrolls, location, toolbar, menubar, resizable, margin_left) {

browserName = navigator.appName;
browserVer = navigator.appVersion.substring(0,1);
if (height==null) height=400;
if (name==null) name="globaltPopup";
if (margin_left==null) margin_left=0;
var widthV =(width==null)?600:(width-margin_left);
var scrollsOption =(scrolls==true)?"yes":"no";
var locationV =(location==true)?"yes":"no";
var toolbarV =(toolbar==true)?"yes":"no";
var menubarV =(menubar==true)?"yes":"no";
var resizableV =(resizable==true)?"yes":"no";
var topPx = (browserName=="Netscape")?"screenX":"top";
var leftPx = (browserName=="Netscape")?"screenY":"left";

if (browserName != "Netscape" || browserVer != 2) {
  controlWindow=window.open(
    url,name,"toolbar="+toolbarV+",height="+height+",width="+widthV+",location="+locationV+",directories=no,status=no,menubar="+menubarV+",scrollbars="+scrollsOption+",resizable="+resizableV+","+leftPx+"="+margin_left+","+topPx+"=0"
  );
  controlWindow.focus();
}

}

function windowPartOpener(url, delta_width, delta_height, name, scrolls, location, toolbar, menubar, resizable, margin_left) {

    var width = screen.width - delta_width;
    var height = screen.height - delta_height;
    windowOpener(url, width, height, name, scrolls, location, toolbar, menubar, resizable, margin_left);
}


