


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

function Validate(theForm){

if (theForm.FirstName.value == "")	{
	alert("من فضلك ادخل الاسم اولا");
	theForm.FirstName.focus();
	return (false);
	}

if (theForm.LastName.value == "")	{
	alert("من فضلك ادخل اللقب");
	theForm.LastName.focus();
	return (false);
	}

// check if EMail field is blank
 if (theForm.EMail.value == ""){
    alert("من فضلك ادخل الاميل بالشكل التالى \"Email\" field.");
    theForm.EMail.focus();
    return (false);
  }

  // test if valid EMail address, must have @ and .
  var checkEMail = "@.";
  var checkStr = theForm.EMail.value;
  var EMailValid = false;
  var EMailAt = false;
  var EMailPeriod = false;
  for (i = 0;  i < checkStr.length;  i++){
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkEMail.length;  j++){
      if (ch == checkEMail.charAt(j) && ch == "@")
        EMailAt = true;
      if (ch == checkEMail.charAt(j) && ch == ".")
        EMailPeriod = true;
	  if (EMailAt && EMailPeriod)
		break;
	  if (j == checkEMail.length)
		break;
	}

	// if both the @ and . were in the string
    if (EMailAt && EMailPeriod){
		EMailValid = true
		break;
	}
  }
  if (!EMailValid){
    alert("The \"Email\" field must contain an \"@\" and a \".\".");
    theForm.EMail.focus();
    return (false);
  }

if (theForm.HomeCountry.value == "0"){
	alert("من فضلك اختار بلد الاقامة");
	theForm.HomeCountry.focus();
	return (false);
}
	
  //Validation Complete
 document.register.submit(); 

}
//-->

