function GP_popupConfirmMsg(msg) { //v1.0
  document.MM_returnValue = confirm(msg);
}
function ShowSignin(){
document.getElementById("signin").style.display = "block";
}
function HideSignin(){
document.getElementById("signin").style.display = "none";
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

var emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var regexEmail = new RegExp(emailReg);

function checkComplete1() {
  if (!regexEmail.test(document.fSignin.signE.value)) {
    alert("No valid e-mailaddress given");
    document.fSignin.signE.focus();
    document.fSignin.signE.select();	
    return false;
  }    
  else if (document.fSignin.signP.value == "") {
    alert("No password given");
    document.fSignin.signP.focus();
    return false;
  }             
  else {
  }
}
function checkComplete2() {
  if (document.formContact.fName.value == "") {
    alert("Please enter your name");
    document.formContact.fName.focus();
    return false;
  }   
  else if (document.formContact.fPosition.value == "") {
    alert("Please enter your position");
    document.formContact.fPosition.focus();
    return false;
  }  
  else if (document.formContact.fOrganisation.value == "") {
    alert("Please enter your organisation");
    document.formContact.fOrganisation.focus();
    return false;
  }   
  else if (!regexEmail.test(document.formContact.fEmail.value)) {
    alert("No valid e-mailaddress given");
    document.formContact.fEmail.focus();
    document.formContact.fEmail.select();	
    return false;
  }          
  else {
  }
}