// JavaScript Document
function ValidateEncodingHTTP(id){
  var re = "http://";
  if (document.getElementById(id).value.match(re)) {
    alert("URLs not allowed");
	return false;
  }
  var re = "https://";
  if (document.getElementById(id).value.match(re)) {
    alert("URLs not allowed");
	return false;
  }  
  return true;
}

var mikExp = /[$\\@\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|]/;
function validateFormI(id){
	if ((document.getElementById(id).value.length==0)||(document.getElementById(id).value==null)){
	  alert("Fields Marked With * are Required. \r\n (Alpha-Numner characters only please)");
      document.getElementById(id).focus();
      return true;
	}
	if(document.getElementById(id).value.search(mikExp)!=-1){
	  alert("Fields Marked With * are Required. \r\n (Alpha-Numner characters only please)");	
      document.getElementById(id).focus();
      return true;
    }
	return true;
}
function validateFormX(id){
  if(document.getElementById(id).value.search(mikExp)!=-1){
    alert("Alpha-Numner characters only please \n\r\ @ $ % ^ & * # ( ) [ ] \\ { + } ` ~ =  |");
    document.getElementById(id).select();
    document.getElementById(id).focus();
	return true;
  }
  return true;
}

function validateFormEmail(){
		if(preg_match("/([_a-z0-9-]+(?:\.[_a-z0-9-]+)*)\s*(at|from|to|@)\s*([a-z0-9-זרו]+(?:\.[a-z0-9-זרו]+)*)(\.[a-z]{2,3})/i", $address)) {
			return true;
		}
}

