  function ValidateForm(this1)
  {
		
			if(this1.user_name.value == "" || this1.password.value == "" || this1.confirm_password.value == "" || this1.email.value == "" || this1.name.value == ""  || this1.user_type.value == "")
			{



					var error="" ;

					if(this1.user_name.value == "" )

					{

					if(error=="")

						{

							this1.user_name.focus();

						}

					error=error + "Usename Should Not Be Blank \n" ; 

					}

					if(this1.password.value == "" )

					{

					if(error=="")

						{

							this1.password.focus();

						}

					error=error + "Password Should Not Be Blank \n" ; 

					}

					if(this1.confirm_password.value == "" )

					{

					if(error=="")

						{

							this1.confirm_password.focus();

						}

					error=error + "Confirm Password Should Not Be Blank \n" ;

					}

					if(this1.email.value == "" )

					{

					if(error=="")

						{

							this1.email.focus();

						}

					error=error + "Email Should Not Be Blank \n" ; 

					}

					if(this1.name.value == "" )

					{

					if(error=="")

						{

							this1.name.focus();

						}

					error=error + "Name Should Not Be Blank \n" ;

					}
					/*//////////sh city not in use /////////////////
					if(this1.city.value == "" )

					{

					if(error=="")

						{

							this1.city.focus();

						}

					error=error + "City Should Not Be Blank \n" ;

					}
					///////////sh city not in use ////////////////*/
					
					if(this1.user_type.value == "" )

					{

					if(error=="")

						{

							this1.user_type.focus();

						}

					error=error + "Please select a userlevel \n" ; 

					}
					
					//////sh security code ///////////////
					if(this1.security_code.value == "" )

					{

					if(error=="")

						{

							this1.security_code.focus();

						}

					error=error + "Security Code Should Not Be Blank \n" ; 

					}
					//////sh security code ///////////////
					
					alert(error);
					return false ;
			}





	  



  

			s=this1.email.value

			//alert(s);			

			emailRe = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/



			if (!emailRe.test(s))

			{

					alert(s + ' Email Id is invalid');

					return false;

			}		

						

			

		





			if(this1.password.value != this1.confirm_password.value)

            {

				alert ("You did not enter the same password twice.Please re-enter your password.");

				return false;

			}





			if(this1.user_type.selectedIndex == "")

            {

				alert ("Please Select An Option");

				return false;

			}

			if(this1.security_code.value != this1.h_security_code.value )

            {
				alert ("Please Type The Exact Code Given Below. Or You Can Try Another Code By Clicking 'Try A Different Name'");
				return false;
			}



			return true;


	


  }

