// JavaScript Document
	var specialChar = /[^a-zA-Z0-9_]+/;
	////////////////////////////////////////////////////////////////////
	function Omran()
		{
			Login=document.form_Reg.Comp_Login.value;
			if((document.form_Reg.Comp_Login.value.search(specialChar) != -1)||(document.form_Reg.Comp_Login.value=="")||(document.form_Reg.Comp_Login.value.length <5))
				{
					document.form_Reg.Comp_Login.focus();
					alert('Please insert the username first.\n(only letters, numbers and _ ) with a minimum of 5 characters are accepted!\n');
					
				}								
			else
				window.open('includes/c_login_check.asp?Comp_Login='+Login,'Window1','status=no,width=478,height=200,resizable=no,scrollbars=yes,toolbar=no,location=no');
			
		}
	///////////////////////////////////////////////////////////////////////////////////////	
	function agree() 
	{

	if(document.form_Reg.Terms.checked)
{
form_Reg.submit1.disabled=false
}
else
{
form_Reg.submit1.disabled=true
}
}
	////////////////////////////////////////////////////////////////////
function validation() 
{
var num= /[^0-9]+/;
var missinginfo = "";
//////////////////////////////////////////////
	if(document.form_Reg.mem_num.value.search(num) != -1)
			{
			missinginfo += "\n     -  Add just numbers in membership no";
			}
//////////////////////
if(document.form_Reg.genral_mem.value.length == "")
		{
          missinginfo += "\n     -  Genral member name  ";
		}
//////////////////////
		if(document.form_Reg.genral_mem_t.value.length == "")
		{			
		missinginfo += "\n     -  Genral member position ";
		}
//////////////////////
	if(document.form_Reg.Comp_Name.value.length == "")
		{
			missinginfo += "\n     -  Company name ";
		}
//////////////////////
	if(document.form_Reg.address.value.length == "")
		{
			missinginfo += "\n     -  Company address ";
		}
//////////////////////
			if(document.form_Reg.city.value.length == "")
			{
				missinginfo += "\n     -  City ";
		     }
//////////////////////
	if(document.form_Reg.country.value.length == "")
			{
				missinginfo += "\n     -  Country ";
			}
//////////////////////
		if(document.form_Reg.Comp_Tel.value.length == "")
		{
			missinginfo += "\n     -  Company phone ";
		}
//////////////////////
	if(document.form_Reg.Comp_Fax.value.length == "")
			{
				missinginfo += "\n     -  Company fax ";
    		}
//////////////////////
	var thestr= document.form_Reg.Comp_Contact_Email.value;
	if(thestr.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)
     	{
			missinginfo += "\n     -  Correct email address ";
		}
//////////////////////
		if(document.form_Reg.sector.value.length == "")
				{
					missinginfo += "\n     -  Company sector ";
          		}
//////////////////////
			if(document.form_Reg.companyprofile.value.length == "")
			{
				missinginfo += "\n     -  Company profile ";
			}
//////////////////////
			if((document.form_Reg.Comp_Login.value.search(specialChar) != -1)||(document.form_Reg.Comp_Login.value=="")||(document.form_Reg.Comp_Login.value.length <5))
				{
					missinginfo += "\n     -  Username (only letters, numbers and _ )\n        with a minimum of 5 characters are accepted! ";
	        	}		
//////////////////////////////////////////////////		
if (missinginfo != "") 
{
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
////////////////////////////////////////////////////
}
