<!--

function form6_onsubmit() {
  
     if(document.form6.Company_name.value.length==0){
          alert('Company name can not be free ! The field marked " * " must be filled.');
          document.form6.Company_name.focus();
          return false;
     }

     if(document.form6.Street_address.value.length==0){
          alert('Street address can not be free ! The field marked  " * " must be filled.');
          document.form6.Street_address.focus();
          return false;
     }

     for( var i=0;i<document.form6.Company_name.value.length;i++ ){

		var ch = document.form6.Company_name.value.charAt(i);
		if(!(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z'||ch>='0'&&ch<='9'||ch=='-'||ch==','||ch=='.'||ch==';'||ch==' '||ch=='&'||ch=='@')){
			alert("Company name included unusable char !");
                        document.form6.Company_name.focus();
			return false;

		}


     if(document.form6.City.value.length==0){
          alert('City can not be free ! The field marked " * " must be filled.');
          document.form6.City.focus();
          return false;
     }
    if(document.form6.Country.value.length==0){
          alert('Country can not be free ! The field marked " * " must be filled.');
          document.form6.Country.focus();
          return false;
     }
    
     if(document.form6.Country.value.length==0&&window.document.form6.country.value.length>50) {
          alert("Country can not be free and less than 50 chars !");
          document.form6.Country.focus();
          return false;
     }

          for( var i=0;i<document.form6.Country.value.length;i++ ){

		var ch = document.form6.Country.value.charAt(i);
		if(!(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z'||ch>='0'&&ch<='9'||ch=='-'||ch==','||ch=='.'||ch==';'||ch=='&'||ch=='@'||ch==' ')){
			alert("Country included unusable char !");
                        document.form6.Country.focus();
			return false;

		}

	}
 
     if(document.form6.Family_name.value.length==0){
          alert('Family name can not be free ! The field marked " * " must be filled.');
          document.form6.Family_name.focus();
          return false;
     }
     if(document.form6.First_name.value.length==0){
          alert('First name can not be free ! The field marked " * " must be filled.');
          document.form6.First_name.focus();
          return false;
     }

for( var i=0;i<document.form6.Family_name.value.length;i++ ){

		var ch = document.form6.Family_name.value.charAt(i);
		if(!(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z'||ch>='0'&&ch<='9'||ch=='-'||ch==','||ch=='.'||ch==';'||ch=='&'||ch=='@'||ch==' ')){
			alert("Family name included unusable char !");
                        document.form6.Family_name.focus();
			return false;

		}

	}
    
for( var i=0;i<document.form6.First_name.value.length;i++ ){

		var ch = document.form6.First_name.value.charAt(i);
		if(!(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z'||ch>='0'&&ch<='9'||ch=='-'||ch==','||ch=='.'||ch==';'||ch=='&'||ch=='@'||ch==' ')){
			alert("First name included unusable char !");
                        document.form6.First_name.focus();
			return false;

		}

	}
          

 for( var i=0;i<document.form6.Tel_number.value.length;i++ ){

		var ch = document.form6.Tel_number.value.charAt(i);
		if(!((ch>='0'&&ch<='9')||ch=='-')){
			alert("Tel number must fill with number among 0 to 9 !");
                        document.form6.Tel_number.focus();
			return false;

		}

	}
	
      if(document.form6.Tel_number.value.length==0){
          alert('Tel number can not be free ! The field marked " * " must be filled.');
          document.form6.Tel_number.focus();
          return false;
     }
          
    
      if(document.form6.Fax_number.value.length==0){
          alert('Fax number can not be free ! The field marked " * " must be filled.');
          document.form6.Fax_number.focus();     
          return false;
     }
     
     for( var i=0;i<document.form6.Fax_number.value.length;i++ ){

		var ch = document.form6.Fax_number.value.charAt(i);
		if(!((ch>='0'&&ch<='9')||ch=='-')){
			alert("Fax number must fill with number among 0 to 9 !");
                        document.form6.Fax_number.focus();
			return false;

		}

	}
     
     for( var i=0;i<document.form6.Email.value.length;i++ ){

		var ch = document.form6.Email.value.charAt(i);
		if(i==1&&ch=="."||i==document.form6.Email.value.length&&ch=="."){
		alert("Email address can not begin or finish with . !");
		document.form6.Email.focus();
                return false;		
		}
		if(!(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z'||ch>='0'&&ch<='9'||ch=='-'||ch=='_'||ch=='.'||ch=='&'||ch=='@')){
			alert("Email address included unusable char !");
                        document.form6.Email.focus();
			return false;

		}

	}
     
     var tmp1=0;
     var tmp2=0;
     var tmp3=0;
     for( var i=1;i<document.form6.Email.value.length-1;i++ ){
		var ch = document.form6.Email.value.charAt(i);
		if(ch==".")tmp1=tmp1+1;
		if(ch=="@")tmp2=tmp2+1;
		if(ch==" "||ch==";"||ch==",")tmp3=1;
      }
        
     if(tmp2!=1||tmp2<1||tmp3==1){
          alert("Unusable Email !");
          document.form6.Email.focus();
          return false;
         }
	}
     }

// -->

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
