/* 
    This is the source code for the validation function. 
    Add the following code just after the </HEAD> in the files where the 
    generalised validation functionality is required. 
    <SCRIPT language="JavaScript1.2" src="../generalValidationStep1.js"></SCRIPT> 
*/ 
    /* 
    *   File : generalValidationStep1.js 
    *     
    *   Author : Prasanth M J 
    *   
    *   CreativeProgrammers.com - 
	*	Turn your Programming Expertise into Achievements!
    *   Visit http://www.creativeprogrammers.com 
    *     
    *   Email : prasanth@creativeprogrammers.com
    */ 
//---------------------------------EMail Check ------------------------------------ 

/* 
*   checks the validity of an email address entered 
*   returns true or false 
*/ 

function validateEmail(email)
{
// a very simple email validation checking. 
// you can add more complex email checking if it helps 
    var splitted = email.match("^(.+)@(.+)$");
    if(splitted == null) return false;
    if(splitted[1] != null )
    {
      var regexp_user=/^\"?[\w-_\.]*\"?$/;
      if(splitted[1].match(regexp_user) == null) return false;
    }
    if(splitted[2] != null)
    {
      var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
      if(splitted[2].match(regexp_domain) == null) 
      {
	    var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
	    if(splitted[2].match(regexp_ip) == null) return false;
      }// if
      return true;
    }
return false;
}

/* function validateData 
*  Checks each field in a form 
*  Called from validateForm function 
*/ 
function validateData(strValidateStr,objValue,strError) 
{ 
    var epos = strValidateStr.search("="); 
    var  command  = ""; 
    var  cmdvalue = ""; 
    if(epos >= 0) 
    { 
     command  = strValidateStr.substring(0,epos); 
     cmdvalue = strValidateStr.substr(epos+1); 
    } 
    else 
    { 
     command = strValidateStr; 
    } 

    switch(command) 
    { 
        case "req": 
        case "required": 
         { 
           if(eval(objValue.value.length) == 0) 
           { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.id + " : Required Field"; 
              }//if 
              alert(strError); 
              return false; 
           }//if 
           break;             
         }//case required 
        case "maxlength": 
        case "maxlen": 
          { 
             if(eval(objValue.value.length) >  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.id + " : "+cmdvalue+" characters maximum "; 
               }//if 
               alert(strError + "\n[Current length = " + objValue.value.length + " ]"); 
               return false; 
             }//if 
             break; 
          }//case maxlen 
        case "minlength": 
        case "minlen": 
           { 
             if(eval(objValue.value.length) <  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.id + " : " + cmdvalue + " characters minimum  "; 
               }//if               
               alert(strError + "\n[Current length = " + objValue.value.length + " ]"); 
               return false;                 
             }//if 
             break; 
            }//case minlen 
        case "login": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9_]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
               if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alpha-numeric characters and underscore (A-Z, a-z, 0-9, _) are allowed "; 
                }//if 
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//case login 
        case "password": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9_@#$^*()-=\|+{}<>?]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
               if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alpha-numeric characters and some special charaters (A-Z, a-z, 0-9, _ @ # $ ^ * ( ) - = | + { } < > ?) are allowed "; 
                }//if 
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//case password 
        case "alphanumericHyphenDotUnderscore": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9-_.]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
               if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alpha-numeric, Hyphen, Underscore, period(.) characters are allowed "; 
                }//if 
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//case alphanumeric 
        case "alnum": 
        case "alphanumeric": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
               if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alpha-numeric characters allowed "; 
                }//if 
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//case alphanumeric 
        case "num": 
        case "numeric": 
           { 
              var charpos = objValue.value.search("[^0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only digits allowed "; 
                }//if               
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break;               
           }//numeric 
        case "alphabetic": 
        case "alpha": 
           { 
              var charpos = objValue.value.search("[^A-Za-z]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alphabetic characters allowed "; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//alpha 
        case "alphaspace": 
           { 
              var charpos = objValue.value.search("[^A-Za-z ]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alphabetic characters allowed "; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//alphaspace		   
        case "alphaspacecomma": 
           { 
              var charpos = objValue.value.search("[^A-Za-z ,]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alphabetic characters allowed "; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//alphaspacecomma		   		   
        case "alnumspacecomma": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9 ,]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alphabetic characters allowed "; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//alnumspacecomma		   		   
        case "address": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9,-.()_?=\/% \\s]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Special Characters Are Not Allowed "; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//address		
        case "alnumspace": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9 ]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only alphabetic characters allowed "; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//alnumspace				   
        case "email": 
          { 
				if((objValue.value)) 
				{ 
               if(!validateEmail(objValue.value)) 
               { 
                 if(!strError || strError.length ==0) 
                 { 
                    strError = objValue.id+": Enter a valid Email address "; 
                 }//if                                               
                 alert(strError); 
                 return false; 
               }//if 
				}//if 
           break; 
          }//case email 
        case "lt": 
        case "lessthan": 
         { 
            if(isNaN(objValue.value)) 
            { 
              alert(objValue.id+": Should be a number "); 
              return false; 
            }//if 
            if(eval(objValue.value) >=  eval(cmdvalue)) 
            { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.id + " : value should be less than "+ cmdvalue; 
              }//if               
              alert(strError); 
              return false;                 
             }//if             
            break; 
         }//case lessthan 
        case "gt": 
        case "greaterthan": 
         { 
            if(isNaN(objValue.value)) 
            { 
              alert(objValue.id+": Should be a number "); 
              return false; 
            }//if 
             if(eval(objValue.value) <=  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.id + " : value should be greater than "+ cmdvalue; 
               }//if               
               alert(strError); 
               return false;                 
             }//if             
            break; 
         }//case greaterthan 
        case "regexp": 
         { 
            if(!objValue.value.match(cmdvalue)) 
            { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.id+": Invalid characters found "; 
              }//if                                                               
              alert(strError); 
              return false;                   
            }//if 
           break; 
         }//case regexp 
        case "dontselect": 
         { 
            if(objValue.selectedIndex == null) 
            { 
			  alert(objValue);
              alert("BUG: dontselect command for non-select Item"); 
              return false; 
            } 
            if(objValue.selectedIndex == eval(cmdvalue)) 
            { 
             if(!strError || strError.length ==0) 
              { 
              strError = objValue.id+": Please Select one option "; 
              }//if                                                               
              alert(strError); 
              return false;                                   
             } 
             break; 
         }//case dontselect 
        case "date": 
         { 
            if(!isDate(objValue.value)) 
            { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.id+": Please enter date in format mm/dd/yyyy"; 
              }//if                                                               
              alert(strError); 
              return false;                   
            }//if 
           break; 
         }//case date 		 
        case "greaterthantodaydate": 
         { 
            if(!isGreaterThanTodayDate(objValue.value)) 
            { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.id+": Date must be greater than todays date"; 
              }//if                                                               
              alert(strError); 
              return false;                   
            }//if 
           break; 
         }//case greaterthantodaydate 	
        case "phone": 
           { 
              var charpos = objValue.value.search("[^0-9-]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                if(!strError || strError.length ==0) 
                { 
                  strError = objValue.id+": Only digits and hyphen (0-9, -) allowed "; 
                }//if               
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break;               
           }//numeric 	 		 
    }//switch 
    return true; 
} 

/* 
* function validateForm 
* the function that can be used to validate any form 
* returns false if the validation fails; true if success 
* arguments : 
*   objFrm     : the form object 
*   arrObjDesc : an array of objects describing the validations to conduct on each 
*        input item. 
*          The array should consist of one object per input item in the order the input 
*          elements are present in the form. Each object consist of zero or more validation 
*          objects. Each of these validation object is a pair consisting of the validation 
*          descriptor string and an optional Error message. 
*/ 

function validateForm(objFrm,arrObjDesc) 
{	
 for(var itrobj=0; itrobj < arrObjDesc.length; itrobj++) 
 { 
   if(objFrm.elements.length <= itrobj) 
   { 
        alert("BUG: Obj descriptor for a non existent form element"); 
        return false; 
   }//if 
   for(var itrdesc=0; itrdesc < arrObjDesc[itrobj].length ;itrdesc++) 
   { 
      if(validateData(arrObjDesc[itrobj][itrdesc][0], 
                 objFrm[itrobj],arrObjDesc[itrobj][itrdesc][1]) == false) 
       	{ 
	    	 objFrm[itrobj].focus();
         	return false; 
       	}//if	 
   }//for 
 }//for 
 
 	if (document.form1.password.value != document.form1.confirmPassword.value) {
		alert("Password and Confirm Password don't match.\n Please enter Password and Confirm Password again");
		//document.form1.password.value="";
		//document.form1.confirmPassword.value="";
		document.form1.password.focus();
		return false;
	}
 
} 


function CallValidate(objFrm)
{
	arrValidationDesc1=
						[	 	//validation description for Login
						 	[
								["required"],
								["login"],
								["minlen=6","Login Id : Minimum length 6 character"],
								["maxlen=15","Login Id : Maximum length 15 character"]
							 ],
							[	// validation description for password			
								["required"],
								["password"],
								["minlen=6","Password : Minimum length 6 character"],
								["maxlen=15","Password : Maximum length 15 character"]
							],
							[	// validation description for confirm password
								["required"],
								["password"],
								["minlen=6","Confirm Password : Minimum length 6 character"],
								["maxlen=15","Confirm Password : Maximum length 15 character"]
							],
							[	// validation description for email
								//["dontselect=0"]							
								["required"],
								["email"]
							],
							[	// validation description for Password Forget Question
								["required"],
								["alnumspacecomma"],
								["minlen=10","Password Forget Question : Minimum length 10 character"]
							],
							[	// validation description for Password Forget Answer
								["required"],
								["alnumspacecomma"],
								["minlen=10","Password Forget Answer : Minimum length 10 character"]
							],
							[	// validation Date of Birth
								["required"],
								["phone"]
							],
							[	// validation Date of Birth button
								//["required"]
								//["phone"]
							],
							
							//BASIC INFO (for internal use only, will not be displayed except name)
							
							
							[	// validation description for Name 
								["required"],
								["alphaspace"]
							],
							[	// validation description for Address 1
								["required"],
								["address"]
							],
							[	// validation description for Address 2
								["address"]
							],
							[	// validation description for City 
								["required"],
								["alphaspace"]
							],
							[	// validation description for State  
								["required"],
								["alphaspace"]
							],
							[	// validation description for Country   
								["required"],
								["dontselect"]
							],
							[	// validation description for Pin / Zip Code 
								["required"],
								["numeric"],
								["minlen=5","Pin / Zip Code : Minimum length 5 character"]
							],
							[	// validation description for Home Phone
								["required"],
								["phone"]
							],
							[	// validation description for Mobile No
								["required"],
								["phone"]
							],
							
							// INSTITUTION DETAILS (to be displayed to all) 
							
							
							[	// validation Full Time / Part Time
								["required"],
								["dontselect"],
								["numeric"]
							],
							[	// validation Batch 
								["required"],
								["dontselect"],
								["numeric"]
							],
							
							//CURRENT EMPLOYMENT DETAILS (to be displayed to all) 
							
							
							[	// validation Company Name
								["required"],
								["address"]
							],
							[	// validation Designation
								["required"],
								["address"]
							],
							[	// validation Date of Joining
								["required"],
								["phone"]
							],
							[	// validation Date of Joining button
								//["required"]
								//["phone"]
							],
							[	// validation Date of Joining clear button
								//["required"]
								//["phone"]
							],
							[	// validation Office Address
								["address"]
							],
							
							//PREVIOUS EMPLOYMENT DETAILS, (if any) (to be displayed to all) 
							
							[	// validation Company Name
								["address"]
							],
							[	// validation Designation
								["address"]
							],
							[	// validation Date of Joining
								//["required"],
								["phone"]
							],
							[	// validation Date of Joining button
								//["required"]
								//["phone"]
							],
							[	// validation Date of Joining clear button
								//["required"]
								//["phone"]
							],
							[	// validation Date of Leaving 
								//["required"],
								["phone"]
							],
							[	// validation Date of Leaving button
								//["required"]
								//["phone"]
							],
							[	// validation Date of Leaving clear button
								//["required"]
								//["phone"]
							],
							[	// validation Office Address
								["address"]
							],
														
							//OTHER INFO (to be displayed to all) 
							
							[	// validation Your Home Page if any 
								["address"]
							],
							[	// validation Yahoo Messenger Id
								["alphanumericHyphenDotUnderscore"]
							],
							[	// validation MSN Messenger Id
								["alphanumericHyphenDotUnderscore"]
							],
							[	// validation Google Talk Id
								["alphanumericHyphenDotUnderscore"]
							],
							[	// validation ICQ Id
								["numeric"]
							],
							[	// validation description for Any other info 
								//["required"],
								["address"],
								["maxlen=10000","Any other info : Maximum length 10000 character"]
							]
						];						
						
	arrValidationDesc = arrValidationDesc1;	
	
	return validateForm(objFrm,arrValidationDesc1); 

}
 	



function CallValidatePlacement(objFrm)
{
	arrValidationDesc1=
						[	 	//validation description for Login
						 	[
								["required"],
								["login"],
								["minlen=6","Login Id : Minimum length 6 character"],
								["maxlen=15","Login Id : Maximum length 15 character"]
							 ],
							[	// validation description for password			
								["required"],
								["password"],
								["minlen=6","Password : Minimum length 6 character"],
								["maxlen=15","Password : Maximum length 15 character"]
							],
							[	// validation description for confirm password
								["required"],
								["password"],
								["minlen=6","Confirm Password : Minimum length 6 character"],
								["maxlen=15","Confirm Password : Maximum length 15 character"]
							],
							[	// validation description for email
								//["dontselect=0"]							
								["required"],
								["email"]
							],
							[	// validation description for Password Forget Question
								["required"],
								["alnumspacecomma"],
								["minlen=10","Password Forget Question : Minimum length 10 character"]
							],
							[	// validation description for Password Forget Answer
								["required"],
								["alnumspacecomma"],
								["minlen=10","Password Forget Answer : Minimum length 10 character"]
							],
							
							//BASIC INFORMATION
							
							
							[	// validation description for FIRST Name 
								["required"],
								["alphaspace"]
							],
							[	// validation description for MIDDLE Name 
								//["required"],
								["alphaspace"]
							],
							[	// validation description for LAST Name 
								["required"],
								["alphaspace"]
							],
							[	// validation description for Father / Guardian Name 
								["required"],
								["alphaspace"]
							],
							[	// validation Date of Birth
								["required"],
								["phone"]
							],
							[	// validation Date of Birth button
								//["required"]
								//["phone"]
							],
							[	// validation description for Gender 
								//["required"],
								["dontselect"],
								["alphaspace"]
							],
							
							//Contact Address
							
							[	// validation description for Address 1
								["required"],
								["address"]
							],
							[	// validation description for City 
								["required"],
								["alphaspace"]
							],
							[	// validation description for State  
								["required"],
								["alphaspace"]
							],
							[	// validation description for Country   
								["required"],
								["dontselect"]
							],
							[	// validation description for Pin / Zip Code 
								["required"],
								["numeric"],
								["minlen=6","Pin / Zip Code : Minimum length 6 character"]
							],
							[	// validation description for Home Phone
								["required"],
								["phone"]
							],
							[	// validation description for Mobile No
								["required"],
								["phone"]
							],
							
							// EDUCATIONAL INFO
							
							//Name of School (10th Pass) -
							[	// validation School/College Name 
								["required"],
								["address"]
							],
							[	// validation Board / University
								["required"],
								["address"]
							],
							[	// validation Year Passed Out 
								["required"],
								["dontselect"],
								["numeric"]
							],
							[	// validation Percentage Obtained 
								["required"],
								["dontselect"],
								["numeric"]
							],
							
							//Name of School / College (12th Pass) 
							[	// validation School/College Name 
								["required"],
								["address"]
							],
							[	// validation Board / University
								["required"],
								["address"]
							],
							[	// validation Year Passed Out 
								["required"],
								["dontselect"],
								["numeric"]
							],
							[	// validation Percentage Obtained
								["required"],
								["dontselect"],
								["numeric"]
							],
							
							//Graduation
							[	// validation School/College Name 
								["required"],
								["address"]
							],
							[	// validation Board / University
								["required"],
								["address"]
							],
							[	// validation Year Passed Out 
								["required"],
								["dontselect"],
								["numeric"]
							],
							[	// validation Percentage Obtained
								["required"],
								["dontselect"],
								["numeric"]
							],
							
							//Post Graduation
							[	// validation School/College Name 
								["address"]
							],
							[	// validation Board / University
								["address"]
							],
							[	// validation Year Passed Out 
								["numeric"]
							],
							[	// validation Percentage Obtained
								["numeric"]
							],
							
							//Any Other Course / Diploma
							[	// validation School/College Name 
								["address"]
							],
							[	// validation Board / University
								["address"]
							],
							[	// validation Year Passed Out 
								["numeric"]
							],
							[	// validation Percentage Obtained
								["numeric"]
							],
							
							//ACADEMIC INFORMATION
							
							
							[	// validation Specilaisation I 
								["required"],
								["address"]
							],
							[	// validation Specilaisation II 
								["required"],
								["address"]
							],
							[	// validation Full Time / Part Time
								["required"],
								["dontselect"],
								["numeric"]
							],
							[	// validation Year Passing Out
								["required"],
								["dontselect"],
								["numeric"]
							],
							[	// validation Summer Training Project Name 
								["required"],
								["address"]
							],
							[	// validation BOP Project Name  
								["required"],
								["address"]
							],
							
							//WORK EXPERIENCE
							
							//row 1
							[	// validation Company Name
								["address"]
							],
							[	// validation Duration From
								["address"]
							],
							[	// validation Duration From Date Button
								//["address"]
							],
							[	// validation Duration To
								["address"]
							],
							[	// validation Duration To Date Button
								//["address"]
							],
							[	// validation Job Profile (500 words)
								["address"],
								["maxlen=500","Job Profile 1 : Maximum length 500 character"]
							],
							
							//row 2
							[	// validation Company Name
								["address"]
							],
							[	// validation Duration From
								["address"]
							],
							[	// validation Duration From Date Button
								//["address"]
							],
							[	// validation Duration To
								["address"]
							],
							[	// validation Duration To Date Button
								//["address"]
							],
							[	// validation Job Profile (500 words)
								["address"],
								["maxlen=500","Job Profile 1 : Maximum length 500 character"]
							],
							
							//row 3
							[	// validation Company Name
								["address"]
							],
							[	// validation Duration From
								["address"]
							],
							[	// validation Duration From Date Button
								//["address"]
							],
							[	// validation Duration To
								["address"]
							],
							[	// validation Duration To Date Button
								//["address"]
							],
							[	// validation Job Profile (500 words)
								["address"],
								["maxlen=500","Job Profile 1 : Maximum length 500 character"]
							],
							
							// validation EXTRA CURRICULAR ACTIVITIES / HOBBIES (5000 WORDS)
							[	
								["required"],
								["maxlen=5000","Job Profile 1 : Maximum length 5000 character"]
							]
						];						
						
	arrValidationDesc = arrValidationDesc1;	
	
	return validateForm(objFrm,arrValidationDesc1); 

}
 	
	

function CallValidateCorporate(objFrm)
{
	arrValidationDesc1=
						[	 	//validation description for Login
						 	[
								["required"],
								["login"],
								["minlen=8","Login Id : Minimum length 8 character"],
								["maxlen=15","Login Id : Maximum length 15 character"]
							 ],
							[	// validation description for password			
								["required"],
								["password"],
								["minlen=8","Password : Minimum length 8 character"],
								["maxlen=15","Password : Maximum length 15 character"]
							],
							[	// validation description for confirm password
								["required"],
								["password"],
								["minlen=8","Confirm Password : Minimum length 8 character"],
								["maxlen=15","Confirm Password : Maximum length 15 character"]
							],
							[	// validation description for email
								//["dontselect=0"]							
								["required"],
								["email"]
							],
							[	// validation description for Corporate Name 
								["required"],
								["address"]
							],
							[	// validation description for Contact Person Name 
								["required"],
								["address"]
							],
							[	// validation description for Contact Person Designation
								["required"],
								["address"]
							],
							[	// validation description for Office Phone
								["required"],
								["phone"]
							],
							[	// validation description for Mobile No
								["required"],
								["phone"]
							]
						];						
						
	arrValidationDesc = arrValidationDesc1;	
	
	return validateForm(objFrm,arrValidationDesc1); 

}
 	
