// JavaScript Document<script language="javascript1.2">



function checkemail(str)
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
		return true
	else
		return false
}
function currentEmployer(value)
{
	//alert("madhu..11..")
	var iChars = ",:";
	
  	for (var i = 0; i < value.length; i++)
	{
  		if (iChars.indexOf(value.charAt(i)) != -1)
		{
  	 		return false;
  		}
		if (iChars.indexOf(value.charAt(i)) == 0)
		{
  	 		return false;
  		}		
  	}
	 
}
function specialchar(login)
{
	var iChars = " !@#$%^&*()+=-[]\\\';,./{}|\":<>?";
	var inum="1234567890";
	var SpeUndscr = "_";
  	for (var i = 0; i < login.length; i++)
	{
  		if (iChars.indexOf(login.charAt(i)) != -1)
		{
  	 		return false;
  		}
		if ( (SpeUndscr.indexOf(login.charAt(i)) != -1) && (login.indexOf(login.charAt(i))==0))
		{
			return false
	  	}
		if (iChars.indexOf(login.charAt(i)) == 0)
		{
  	 		return false;
  		}
		else if ( (inum.indexOf(login.charAt(i)) != -1) && (login.indexOf(login.charAt(i))==0))
		{
			return false
	  	}
  	}
}
function Pswrd_specialchar(login)
{
	var iChars = " _!@#$%^&*()+=-[]\\\';,./{}|\":<>?";
	var inum="1234567890";
  	for (var i = 0; i < login.length; i++)
	{
  		if (iChars.indexOf(login.charAt(i)) != -1)
		{
  	 		return false;
  		}
		if (iChars.indexOf(login.charAt(i)) == 0)
		{
  	 		return false;
  		}
		/*else if ( inum.indexOf(login.charAt(i))==0)
		{
	  		return false
	  	}*/
  	}
 }
function enterNumerics(e)
{
	//alert("in nummerics")
	if (!e) var e = window.event;
	// e gives access to the event in all browsers
	if(!e.which) key = e.keyCode; // This is used store the keycode(IE Only) 
	else key = e.which; // This is used store the keycode(Netscape Only)

	if((key>=48)&&(key<=57)||key==8||key==9){
		key=key;
		return true;
	 }
	 else{
		 
	   key=0;
	  // alert("Please enter only numerics");
	   return false;
	 }
     
}
function enterAlphaWithSpace(e)
{
	var key=0;	  	
	if (!e) var e = window.event;
	// e gives access to the event in all browsers
	if(!e.which) key = e.keyCode; // This is used store the keycode(IE Only) 
	else key = e.which; // This is used store the keycode(Netscape Only)
	//alert(key);
	if((key!=27))
	{
     if((key>=65)&&(key<=90)||(key>=97)&&(key<=122)||key==8||key==9||key==32)
     {

        key=key;
        return true;

     }
     else
     {
       key=0;
       return false;

     }
	}
}
function enterAlphaNumericWithSpace(e)
{
//alert("in alpha numeris")
var key=0;
	
	if (!e) var e = window.event;
	// e gives access to the event in all browsers
	if(!e.which) key = e.keyCode; // This is used store the keycode(IE Only) 
	else key = e.which; // This is used store the keycode(Netscape Only)
	//alert("key value..."+key)
     if((key>=65)&&(key<=90)||(key>=97)&&(key<=122)||(key>=48)&&(key<=57)||key==8||key==9||key==32)
     {

        key=key;
        
		return true;

     }
     else
     {
      //alert("please enter Alpha Numeric values only");
	  key=0;
       return false;

     }
     
}

function trim(inputStr)
{
	if(typeof inputStr != "string")
	{
		return inputStr;
	}
	
	var retVal = inputStr;
	var ch = retVal.substring(0,1);
	while(ch==" ")
	{
		retVal = retVal.substring(1,retVal.length);
		ch = retVal.substring(0,1);
	}
	
	ch = retVal.substring(retVal.length-1, retVal.length);
	while(ch==" ")
	{
		retVal = retVal.substring(0,retVal.length-1);
		ch = retVal.substring(retVal.length-1, retVal.length);
	}
	
	return retVal;
}
// this method is used for to validate the Fresher Resumes Posting Form 
function validate()
{
	//alert('h1...2');
	
	
		var errors = ""
		
		var password = document.getElementById('Password')
	    var newPassword = document.getElementById('rePassword').value
		var country_mob=document.getElementById('country_mob').value
		var mobile=document.getElementById('mobile').value
		//var ph_Country = trim(document.getElementById('country_ph').value)
		//var ph_STD = trim(document.getElementById('std').value)
		//var ph_Number = trim(document.getElementById('number').value)
	    
		var loginname=trim(document.getElementById('loginName'))
		if((loginname.value==null) || (loginname.value==""))
		{
			errors += "Please Enter  Your Login Name. Should start with Alphabet, No special characters allowed except '_'.\n";
		}
		else if(loginname.value.length < 6)
		{
			errors += "Login Name  Should be Atleast of 6 char.\n";
		}
		
		
		else if(specialchar(loginname.value)==false)
		{
			errors += "Invalid Login  Name, No special characters allowed except '_' , \nShould start with Alphabet. \n";		
		}
		else if(document.getElementById('notavailable').style.display == '')
		{
			errors += "Login Name already exists. Try with different name !\n";
		}
		if((password.value==null) || (password.value==""))
		{
	   		errors += "Password Field Should not be empty &&  should start with character only \n";		
		}
			else if(password.value.length < 6)
		{
			errors += "Password Should be Atleast of 6 char.\n";
		}
		else if(Pswrd_specialchar(password.value)==false)
		{
			errors += "Invalid Password, No special characters allowed, Should start with Alphabet \n";		
		}
		if(newPassword == "")
		{
			errors += "Please Enter Confirm Password .\n";
		}
		else if(password.value != newPassword)
		{
			errors += "The  Password and Confirm Password should match.\n";
		}
	if(trim(document.getElementById('remques').value) == "")
		{
			errors += "Select  your Reminder Question.\n"
		}
		if(trim(document.getElementById('remans').value) == "")
		{
			errors += "Please Enter Reminder Answer.\n"
		}
	
		if(trim(document.getElementById('firstName').value) == "")
		{
			
			errors += "Please Enter your first name.\n"
		}
	
		if(trim(document.getElementById('lastName').value) == "")
		{
			errors += "Please Enter your Last Name.\n"
		}
		
		if(!(document.getElementById("male").checked || document.getElementById("female").checked))
		{
			errors += "Please select Gender .\n"
		}
		
		if(document.getElementById("DOB_MM").value == "" || document.getElementById("DOB_DD").value == "" || document.getElementById("DOB_YY").value == "")
		{
			errors += "Please select date of birth.\n"
		}
		if(trim(document.getElementById('email').value) == "")
		{
			errors += "Please Enter Email ID.\n"
		}
		else if(!checkemail(trim(document.getElementById('email').value)))
		{
			errors += "Please Enter Valid Email ID.\n"
		}
		
		if(trim(document.getElementById('country').value) == "")
		{
			errors += "Please select country.\n"
		}
		else if(trim(document.getElementById('country').value) == "Other" && trim(document.getElementById('country_textbox').value) == "")
		{
			errors += "Please Enter country name.\n"
		}
		
		if(trim(document.getElementById('location').value) == "")
		{
			errors += "Please Enter  location .\n"
		}
		
		if(country_mob == "")
		{
			errors += "Please Mobile Country Code.\n";
		}
		else if(isNaN(country_mob))
		{
		errors += "The Mobile Country code should  be Numeric.\n";
		}//Mobile country
		
		if(mobile == "" || mobile == "Mobile Number")
		{
			errors += "Please Enter Mobile Number.\n";
			
		}
		else if(isNaN(mobile))
		{
		errors += "The Mobile Number should be Numeric.\n";
		}//Mobile Number
		
		/*if(ph_Country == "")
		{
			errors += "Please Phone Country Code.\n";
			
		}
		else if(isNaN(ph_Country))
		{
		errors += "The Phone Country code should  be Numeric.\n";
		}//phone country
		
		if(ph_STD != "" && ph_STD != "STD" && isNaN(ph_STD))
		{
			errors += "The STD Code should be Numeric.\n";
			
		}//phone country		
		if(ph_Number != "" && ph_Number != "Phone Number" && isNaN(ph_Number))
		{
			errors += "The Phone Number should  be Numeric.\n";
			
		}//phone country
		
		if(ph_STD == "")
		{
			errors += "Please Enter STD Code Number.\n";
			
		}
		else if(isNaN(ph_STD))
		{
		errors += "The STD Code should be Numeric.\n";
		}//phone country
		
		if(ph_Number == "")
		{
			errors += "Please Enter Phone Number .\n";
			
		}
		else if(isNaN(ph_Number))
		{
		errors += "The Phone Number should  be Numeric.\n";
		}//phone country
		*/
		
		
		if(trim(document.getElementById('restitle').value) == "")
		{
			errors += "Please Enter the Resume Title.\n"
		}
		if(trim(document.getElementById('industry').value)== "")
		{
			errors += "Please Select Industry Name.\n"
		}
		else if(trim(document.getElementById('functionalArea').value) == "")
		{
			errors += "Please select the functional Area.\n"			
		}
		else
		{
			if(trim(document.getElementById('industry').value)== "NONIT")
			{
				if(trim(document.getElementById('Catagory').value) == "")
				{
					errors += "Please select the Catageory .\n"
				}
			}
			else
			{
				if(trim(document.getElementById('key_skills').value) == "")
				{
					errors += "Please Enter key skills .\n"
				}				
			}
		}
		
		/*if(trim(document.getElementById('pref_location').value) == "")
		{
			errors += "Please Enter the Prefered Work Location .\n"
		}*/
		if(trim(document.getElementById('resume').value) == "")
		{
			errors += "Please UpLoad the CV in the format of .doc/.rtf .\n"
		}
		/*if(trim(document.getElementById('resume').value == "")
		{
			errors += "Please UpLoad the CV in the format of .doc/.rtf .\n"
		}*/
		else if(!checkFileExtension())
		{			
			errors+="Invalid CV file format.\n"
			errors+="CV should be .doc/.rtf format.\n"			
		}		
		
	if(errors == '')
			return true;

	alert(errors);
	return false;

}

function Js2validate()
{
	
	 
	var errors = ""
		
	    
		
		if(trim(document.getElementById('industry').value) == "")
		{
			errors += "Please Select Industry .\n"
		}
		if(trim(document.getElementById('functionalArea').value)     == "")
		{
		errors += "Please select functional area.\n"
		
		}else
		{
		if (trim(document.getElementById('industry').value)   == "NONIT")
		{
				
			 if( trim(document.getElementById('Catagory').value)  == "")
			{
					errors += "Please select Catagory .....\n"
			}
			 
			}else
			{
				 if(trim(document.getElementById('key_skills').value)   == "")
				 {
					errors += "Please enter skills / keywords.\n"
				 }
			 }
		} 
		
		/*if(trim(document.getElementById('job_category').value) == "")
		{
			errors += "Please Select  Job Category.\n"
		}*/
		
	
	
		if(trim(document.getElementById('designation').value) == "")
		{
			errors += "Please enter your Designation/Role Name.\n"
		}
		if(trim(document.getElementById('restitle').value) == "")
		{
			errors += "Please Enter your Resume Title.\n"
		}
		
		
		if(document.getElementById("Tot_Exp_Years").value == "" || document.getElementById("Tot_Exp_Months").value == "" )
		{
			errors += "Please select Total Experience\n"
		}
		if(document.getElementById("Rel_Exp_Years").value == "" || document.getElementById("Rel_Exp_Months").value == "" )
		{
			errors += "Please select Relevent Experience\n"
		}
		if(document.getElementById("Lacs1").value == "" || document.getElementById("Thousands1").value == "" )
		{
			errors += "Please select Present CTC\n"
		}
		if(document.getElementById("Lacs2").value == "" || document.getElementById("Thousands2").value == "" )
		{
			errors += "Please select Expected CTC \n"
		}
		/*if(document.getElementById("NoticePeriod").value == "")
		{
			errors += "Please select Notice Period \n"
		}
			
		if(trim(document.getElementById('pref_location').value) == "")
		{
			errors += "Please Enter   Prefered Work Location.\n"
		}*/
		
		
	if(errors == '')
			return true;

	alert(errors);
	return false;
}

function Js3validate()
{	
		
		var errors = ""		
		
		// the below code is for validating the first row fields in domine experience comment1
		
		var domine=document.getElementById("firstrow_domine").value 
		
		var skills=document.getElementById("firstrow_skills").value
		
		var technologies=document.getElementById("firstrow_technology").value
		
		var expr_year=document.getElementById("firstrow_DomainExp_Yrs").value
	
		var expr_months=document.getElementById("firstrow_DomainExp_Months").value
		
		
		if(domine !="" ||skills !="" ||technologies!="" || expr_year!="" || expr_months!="")
		{
			
			if(domine =="")
			{
				errors += "Please Enter  Work Experience  domain .\n"
			}
			
			if(skills =="")
			{
				errors += "Please Enter  Work Experience  skills .\n"
			}
			//alert('prasee.........2........')
			if(technologies =="")
			{
				errors += "Please Enter  Technology.\n"
			}
			if(expr_year =="" || expr_months =="")
			{
				errors += "Please select Total Domine Experience.\n"
			}
			if(errors != "")
			{
				alert(errors)
				return false
			}
		
		}
		else if (Domain_rowNo > 1)
		{
			if(domine =="" && skills =="" && technologies =="" && expr_year =="" && expr_months =="")
			{
				alert("Please Enter The Domine Experience Details in First Row.\n")
				return false
			}
		}
		
		// comment1 ends
		var domainrow = Domain_rowNumber	
		
		//alert('madhu...'+domainrow)
		// the below code is for validating the last row fields in domine experience --> comment2 starts
		
		for(var i = 0; i < domainrow && i< 10; i++)
		{			
			//alert("rownumber...."+document.getElementById(i))
			if(document.getElementById(i) != null)
			{
				//alert("value..."+document.getElementById(i).childNodes[0].childNodes[0].value);
				if(document.getElementById(i).childNodes[0].childNodes[0].value =="")
				{			
					errors += "Please Enter Domain  Experience  .\n"
				}
				if(document.getElementById(i).childNodes[1].childNodes[0].value =="")
				{			
					errors += "Please Enter  Domain  Experience  skills .\n"
				}
				if(document.getElementById(i).childNodes[2].childNodes[0].value =="")
				{			
					errors += "Please Enter Domain  Technology.\n"
				}
				if(document.getElementById(i).childNodes[3].childNodes[0].value =="" || document.getElementById(i).childNodes[4].childNodes[0].value =="")
				{			
					errors += "Please select Total Domine Experience .\n"
				}
					
				if(errors != "")
				{
					alert(errors)
					return false
				}
			}			
			else
			domainrow++
		}	
		
		
		var employerName=document.getElementById("firstrow_PrevEmployer_Name").value 
		var employerDesig=document.getElementById("firstrow_PrevEmployer_Desg").value
		var employerLocation=document.getElementById("firstrow_PrevEmployer_Location").value
		var prev_start_Months=document.getElementById("firstrow_PrevEmployer_Strt_From_Months").value
		var prev_start_Years=document.getElementById("firstrow_PrevEmployer_Strt_To_Yrs").value
		var prev_end_Months=document.getElementById("firstrow_PrevEmployer_End_To_Months").value
		var prev_end_Years=document.getElementById("firstrow_PrevEmployer_End_To_Yrs").value
		
		if(employerName !="" ||employerDesig !="" ||employerLocation!="" || prev_start_Years!="" || prev_start_Months!="" || 		prev_end_Years!="" || prev_end_Months!="")
		{
			if(employerName =="")
			{
				errors += "Please Enter previous Employer Name  .\n"
			}
			
			if(employerDesig =="")
			{
				errors += "Please Enter previous Employer Designation.\n"
			}
			//alert('prasee.........2........')
			
			if(prev_start_Months =="" || prev_start_Years =="")
			{
				errors += "Please select previous working Experience Starting Period.\n"
			}
			if(prev_end_Months =="" || prev_end_Years =="")
			{
				errors += "Please select previous working Experience End Period.\n"
			}
			if(employerLocation =="")
			{
				errors += "Please Enter previous Employer Location.\n"
			}
			if(errors != "")
			{
				alert(errors)
				return false
			}
		
		}
		else if (PrevEmployer_rowNo > 1)
		{
			if(employerName =="" && employerDesig =="" && employerLocation =="" && prev_start_Years =="" && prev_start_Months =="" && prev_end_Years =="" && prev_end_Months =="")
			{
				alert("Please Enter The Previous Employer Details in First Row.\n")
				return false
			}
		}
		
		var prevEmployerrowNumber = PrevEmployer_rowNumber
		
		// the below code is for validating the last row fields in domine experience --> comment2 starts
		for(var i = 0; i < prevEmployerrowNumber && i< 10; i++)
		{
			var currentrow = "PRV"+i;
			//alert("rownumber...."+currentrow)
			if(document.getElementById(currentrow) != null)
			{
				//alert("value..."+document.getElementById(i).childNodes[0].childNodes[0].value);
				if(document.getElementById(currentrow).childNodes[0].childNodes[0].value =="")
				{			
					errors += "Please Enter previous Employer Name  .\n"
				}
				if(document.getElementById(currentrow).childNodes[1].childNodes[0].value =="")
				{			
					errors += "Please Enter previous Employer Designation.\n"
				}				
				if(document.getElementById(currentrow).childNodes[2].childNodes[0].value =="" || document.getElementById(currentrow).childNodes[3].childNodes[0].value =="")
				{			
					errors += "Please select previous working Experience Starting Period.\n"
				}
				if(document.getElementById(currentrow).childNodes[4].childNodes[0].value =="" || document.getElementById(currentrow).childNodes[5].childNodes[0].value =="")
				{			
					errors += "Please select previous working Experience End Period.\n"
				}
				if(document.getElementById(currentrow).childNodes[6].childNodes[0].value =="")
				{			
					errors += "Please Enter previous Employer Location.\n\n"
				}
				
				if(errors != "")
				{
					alert(errors)
					return false
				}
			}			
			else
			prevEmployerrowNumber++
		}
		
	
		
		
		var CurrEmployer_Name = document.Reg3Form.CurrEmployer_Name.value
		var CurrEmployer_Desg = document.Reg3Form.CurrEmployer_Desg.value
		var CurrEmployer_From_Months = document.Reg3Form.CurrEmployer_From_Months.value
		var CurrEmployer_From_Yrs = document.Reg3Form.CurrEmployer_From_Yrs.value
		var CurrEmployer_Location = document.Reg3Form.CurrEmployer_Location.value
		if (CurrEmployer_Name !="" || CurrEmployer_Desg !="" || CurrEmployer_From_Months !="" || CurrEmployer_From_Yrs !="" || CurrEmployer_Location !="")
		{
			if(CurrEmployer_Name == "")
			{
				errors += "Please Enter Current Employeer Name.\n"
			}
			else if(currentEmployer(CurrEmployer_Name)==false)
			{
				errors += "Please don't enter the ',' charectar in Current Employer Name.\n"	
			}
			if(document.Reg3Form.CurrEmployer_Desg.value == "")
			{
				errors += "Please Enter Current Designation Name.\n"
			}
			else if(currentEmployer(CurrEmployer_Desg)==false)
			{
				errors += "Please don't enter the ',' charectar in Current Employer Designation.\n"	
			}
			if(document.Reg3Form.CurrEmployer_From_Months.value == "" || document.Reg3Form.CurrEmployer_From_Yrs.value == "" )
			{
				errors += "Please select Total Current Company Experience. \n"
			}
			if(document.Reg3Form.CurrEmployer_Location.value == "")
			{
				errors += "Please Enter Current Working Location .\n\n"
			}
			else if(currentEmployer(CurrEmployer_Location)==false)
			{
				errors += "Please don't enter the ',' charectar in Current Employer Location.\n"	
			}
		}
		
		var PrefEmployerrowNo = PrefEmployer_rowNumber
		
		/*if(PrefEmployer_rowNo > 1)
		{
			var preferedCompanies=document.getElementById("firstrow_PrefEmployer").value 
			if(preferedCompanies =="")
			{			
				errors += "Please Enter Preferred Employer Name 1 .\n"			
			}
		}*/
		//alert("prefer employer...."+PrefEmployerrowNo)
		for(var i = 0; i < PrefEmployerrowNo && i< 10; i++)
		{	
			var prefRowValue = "PREF"+i;
			//alert("rownumber.111..."+prefRowValue)
			if(document.getElementById(prefRowValue) != null)
			{
				//alert("value..."+document.getElementById(prefRowValue).childNodes[1].childNodes[0].value);
				if(document.getElementById(prefRowValue).childNodes[1].childNodes[0].value =="")
				{			
					errors += "Please Enter Preferred Employer Name .\n"
				}				
			}
			else
			PrefEmployerrowNo++
		}
		
		if(document.getElementById("attachcv").value == "Jobseeker_Subscription3")
		{
			
			// here check the file upload cv file which is having .doc or .rtf extenstion code
			if(document.Reg3Form.input.value == "")
			{
				errors += "Please UpLoad the CV in the format of .doc/.rtf .\n"
			}
			else if(!checkFileExtension())
			{			
				errors+="Invalid CV file format.\n"
				errors+="CV should be .doc/.rtf format.\n"			
			}
		}else if(document.getElementById("attachcv").value == "WorkExperience")
		{
			if(document.Reg3Form.input.value != "")
			{
				if(!checkFileExtension())
				{			
					errors+="Invalid CV file format.\n"
					errors+="CV should be .doc/.rtf format.\n"			
				}	
			}
		}
		
				
	if(errors == '')
			return true;

	alert(errors);
	return false;
}

// this function for upload a cv with .doc or .rtf format with size not exceed 150 kb

		function checkFileExtension()
		{
		
		//var oas = new ActiveXObject("Scripting.FileSystemObject");
		
		parafilevalue =document.Reg3Form.input.value
		
//		if you want to find the size of file use this code below but it is recommanded code in jsp
		//var e = oas.getFile(parafilevalue);
		//var f = e.size;
		//alert(f/1024 + " kb");
		
		var file = parafilevalue.split('.');
		
		var validType = false;
		if( file.length < 2 )
		{
			return false;
		}
		var fileext = file[(file.length)-1].toLowerCase();
		if( fileext == 'doc' || fileext == 'rtf' ) 
		{
			validType = true;
		} 
		
		/*if(validType==false)
		{
			alert("Please enter specified document type");
		//var who= document.getElementsByName('FileUpload1')[0];
		//var who2= who.cloneNode(false);
		//who2.onchange = who.onchange;
		//who.parentNode.replaceChild(who2,who);
		}
		/*if (f/1024 >= 100)
		{
			alert("File size not more then 150 kb.")
			validType = false
		}*/
		return validType;
		
		} 

function Js1validate()
{
		//alert("Js1validate")
			//alert('madhu....111....')
		var errors = ""
		var password = document.getElementById('Password')
	    var newPassword = document.getElementById('rePassword').value
		var country_mob=document.getElementById('country_mob').value
		var mobile=document.getElementById('mobile').value
		var ph_Country = trim(document.getElementById('country_ph').value)
		var ph_STD = trim(document.getElementById('std').value)
		var ph_Number = trim(document.getElementById('number').value)
	    
		var loginname=trim(document.getElementById('loginName'))
		if((loginname.value==null) || (loginname.value==""))
		{
			errors += "Please Enter  Your Login Name. Should start with Alphabet, No special characters allowed except '_'.\n";
		}
		else if(loginname.value.length < 6)
		{
			errors += "Login Name  Should be Atleast of 6 char.\n";
		}
		else if(specialchar(loginname.value)==false)
		{
			errors += "Invalid Login  Name, No special characters allowed except '_' , \nShould start with Alphabet. \n";		
		}
		else if(document.getElementById('notavailable').style.display == '')
		{
			errors += "Login Name already exists. Try with different name !\n";
		}
		if((password.value==null) || (password.value==""))
		{
	   		errors += "Password Field Should not be empty &&  should start with character only \n";		
		}
		else if(password.value.length < 6)
		{
			errors += "Password Should be Atleast of 6 char.\n";
		}
		else if(Pswrd_specialchar(password.value)==false)
		{
			errors += "Invalid Password, No special characters allowed, Should start with Alphabet \n";		
		}
		if(newPassword == "")
		{
			errors += "Please Enter Confirm Password .\n";
		}
		else if(password.value != newPassword)
		{
			errors += "The  Password and Confirm Password should match.\n";
		}
		if(trim(document.getElementById('remques').value) == "")
		{
			errors += "Select  your Reminder Question.\n"
		}
		if(trim(document.getElementById('remans').value) == "")
		{
			errors += "Please Enter Reminder Answer.\n"
		}
	
		if(trim(document.getElementById('firstName').value) == "")
		{
			
			errors += "Please Enter your first name.\n"
		}
	
		if(trim(document.getElementById('lastName').value) == "")
		{
			errors += "Please Enter your Last Name.\n"
		}
		
		if(!(document.getElementById("male").checked || document.getElementById("female").checked))
		{
			errors += "Please select Gender .\n"
		}
		
		if(document.getElementById("DOB_MM").value == "" || document.getElementById("DOB_DD").value == "" || document.getElementById("DOB_YY").value == "")
		{
			errors += "Please select date of birth.\n"
		}
		if(trim(document.getElementById('email').value) == "")
		{
			errors += "Please Enter Email ID.\n"
		}
		else if(!checkemail(trim(document.getElementById('email').value)))
		{
			errors += "Please Enter Valid Email ID.\n"
		}
		
		if(trim(document.getElementById('country').value) == "")
		{
			errors += "Please select country.\n"
		}
		else if(trim(document.getElementById('country').value) == "Other" && trim(document.getElementById('country_textbox').value) == "")
		{
			errors += "Please Enter country name.\n"
		}
		if(trim(document.getElementById('location').value) == "")
		{
			errors += "Please Enter  location .\n"
		}
		
		if(country_mob == "")
		{
			errors += "Please Mobile Country Code.\n";
		}
		else if(isNaN(country_mob))
		{
		errors += "The Mobile Country code should  be Numeric.\n";
		}//Mobile country
		
		if(mobile == "" || mobile == "Mobile Number")
		{
			errors += "Please Enter Mobile Number.\n";
			
		}
		else if(isNaN(mobile))
		{
		errors += "The Mobile Number should be Numeric.\n";
		}//Mobile Number
		
		if(ph_Country == "")
		{
			errors += "Please Phone Country Code.\n";
			
		}
		else if(isNaN(ph_Country))
		{
		errors += "The Phone Country code should  be Numeric.\n";
		}//phone country
		
		if(ph_STD != "" && ph_STD != "STD" && isNaN(ph_STD))
		{
			errors += "The STD Code should be Numeric.\n";
			
		}//phone country		
		if(ph_Number != "" && ph_Number != "Phone Number" && isNaN(ph_Number))
		{
			errors += "The Phone Number should  be Numeric.\n";
			
		}//phone country
		
		/*if(ph_STD == "")
		{
			errors += "Please Enter STD Code Number.\n";
			
		}
		else if(isNaN(ph_STD))
		{
		errors += "The STD Code should be Numeric.\n";
		}//phone country
		
		if(ph_Number == "")
		{
			errors += "Please Enter Phone Number .\n";
			
		}
		else if(isNaN(ph_Number))
		{
		errors += "The Phone Number should  be Numeric.\n";
		}//phone country
		*/
		if(trim(document.getElementById('qualification').value) == "")
		{
			errors += "Please select   Qualification.\n"
		}
		if(trim(document.getElementById('qualification').value) != "OTHER" && trim(document.getElementById('specialization').value) == "")
		{
			errors += "Please Select specialization.\n"
		}
		else if(trim(document.getElementById('qualification').value) == "OTHER" && trim(document.getElementById('specialization_textbox').value) == "")
		{
			errors += "Please Enter specialization.\n"
		}
		if(trim(document.getElementById('instname').value) == "")
		{
			errors += "Please Enter Institution Name.\n"
		}
		if(trim(document.getElementById('compyear').value) == "")
		{
			errors += "Please Enter Year of Completion.\n"
		}
		else if(isNaN(document.getElementById('compyear').value))
		{
		errors += "Year of Completion should be Numeric.\n";
		}
		
	  	if(errors == '')
			return true;

	alert(errors);
	return false;
}

// resume management page ---edit the personal deatils function
function editJs1validate()
{
		var country_mob=document.getElementById('country_mob').value
		var mobile=document.getElementById('mobile').value
		var ph_Country = trim(document.getElementById('country_ph').value)
		var ph_STD = trim(document.getElementById('std').value)
		var ph_Number = trim(document.getElementById('number').value)
		//alert("Js1validate")
			//alert('madhu....edit....')
		var errors = ""
		
		if(trim(document.getElementById('firstName').value) == "")
		{			
			errors += "Please Enter your first name.\n"
		}
	
		if(trim(document.getElementById('lastName').value) == "")
		{
			errors += "Please Enter your Last Name.\n"
		}
		
		if(!(document.getElementById("male").checked || document.getElementById("female").checked))
		{
			errors += "Please select Gender .\n"
		}
		
		if(document.getElementById("DOB_MM").value == "" || document.getElementById("DOB_DD").value == "" || document.getElementById("DOB_YY").value == "")
		{
			errors += "Please select date of birth.\n"
		}
		if(trim(document.getElementById('email').value) == "")
		{
			errors += "Please Enter Email ID.\n"
		}
		else if(!checkemail(trim(document.getElementById('email').value)))
		{
			errors += "Please Enter Valid Email ID.\n"
		}
		
		if(trim(document.getElementById('country').value) == "")
		{
			errors += "Please select country.\n"
		}
		if(trim(document.getElementById('location').value) == "")
		{
			errors += "Please Enter  location .\n"
		}
	
		if(mobile == "" || mobile == "Mobile Number")
		{
			errors += "Please Enter Mobile Number.\n";
			
		}
		else if(isNaN(mobile))
		{
		errors += "The Mobile Number should be Numeric.\n";
		}//Mobile Number
		
		if(ph_STD != "" && ph_STD != "STD" && isNaN(ph_STD))
		{
			errors += "The STD Code should be Numeric.\n";
			
		}//phone country		
		if(ph_Number != "" && ph_Number != "Phone Number" && isNaN(ph_Number))
		{
			errors += "The Phone Number should  be Numeric.\n";
			
		}//phone country
		
		if(trim(document.getElementById('qualification').value) == "")
		{
			errors += "Please select   Qualification.\n"
		}
		if(trim(document.getElementById('specialization').value) == "")
		{
			errors += "Please Enter specialization.\n"
		}
		if(trim(document.getElementById('instname').value) == "")
		{
			errors += "Please Enter Institution Name.\n"
		}
		if(trim(document.getElementById('compyear').value) == "")
		{
			errors += "Please Enter Year of Completion.\n"
		}
		else if(isNaN(document.getElementById('compyear').value))
		{
		errors += "Year of Completion should be Numeric.\n";
		}
		
	  	if(errors == '')
			return true;

	alert(errors);
	return false;
}

function Select_FunctionalArea(industry)
{
	//alert('hemanth..'+industry);
	var ArrayLength=0
//IT
	var IT = new Array();
IT[0]="Application Programming"
IT[1]="Client server"
IT[2]="Data warehousing / Database / DBA"
IT[3]="E-Commerce / Internet Technologies"
IT[4]="EDP / MIS"
IT[5]="Embedded Systems / ASIC / EDA / Chip Design / VLSI"
IT[6]="ERP / CRM"
IT[7]="Hardware / Networking / Security"
IT[8]="HR / Admin"
IT[9]="Mainframes"
IT[10]="Middleware / EAI"
IT[11]="Mobile"
IT[12]="Network / System Administration"
IT[13]="Production / Maintenance / Support"
IT[14]="Quality / Testing"
IT[15]="Sales / Marketing / Business Development"
IT[16]="Telecom software"
IT[17]="Web / Graphic Design / Visualiser"
IT[18]="Top Management"
IT[19]="Others"

//ITES
	var ITES = new Array();
ITES[0]="BPO - Back Office / Documentation / Data Entry"
ITES[1]="BPO - Collection / Recovery"
ITES[2]="BPO - Customer Service (Non-Voice)"
ITES[3]="BPO - Customer Service (Technical Support)"
ITES[4]="BPO - Customer Service (Voice)"
ITES[5]="BPO - Legal Process Outsourcing"
ITES[6]="BPO - Medical Transcription"
ITES[7]="BPO - Quality"
ITES[8]="BPO - Soft Skills / Voice / Accent Trainer"
ITES[9]="BPO - Technical / Process Trainer"
ITES[10]="BPO - Technology / Network Administrator"
ITES[11]="BPO - Telemarketing / Telesales"
ITES[12]="BPO - Others"
ITES[13]="KPO - Analyticsr"
ITES[14]="KPO - Legal Process Outsourcing"
ITES[15]="KPO - Medical Transcription"
ITES[16]="KPO - Quality"
ITES[17]="KPO - Technology / Network Administrator"
ITES[18]="KPO - Others"

//NONIT
	var NONIT = new Array();
NONIT[0]="Accounts / Finance / Audit / Tax"
NONIT[1]="Administration / Front Office"
NONIT[2]="Advertising / Media / Entertainment"
NONIT[3]="Architecture / Interior Design"
NONIT[4]="Automobiles"
NONIT[5]="Aviation"
NONIT[6]="Banking / Financial Services"
NONIT[7]="Cement,Glass,Plastic,Rubber and Paint"
NONIT[8]="Chemicals / Fertilisers"
NONIT[9]="Content / Journalism"
NONIT[10]="Education / Training"
NONIT[11]="Engineering Design"
NONIT[12]="Exports / Imports"
NONIT[13]="Fashion / Garments"
NONIT[14]="FMCG, Food and Beverage"
NONIT[15]="Hotels / Restaurants"
NONIT[16]="Insurance"
NONIT[17]="Inventory / Packaging / Supply chain"
NONIT[18]="Legal / Law"
NONIT[19]="Logistics / Courier"
NONIT[20]="Management Consulting / Corporate Planning"
NONIT[21]="Team Leader"
NONIT[22]="Marine"
NONIT[23]="Marketing"
NONIT[24]="Metals / Iron / Steel"
NONIT[25]="Mining / Geology / Metallurgy"
NONIT[26]="Oil / Gas / Pertroleum"
NONIT[27]="Pharma / Medical / Biotech"
NONIT[28]="PR / Event Management"
NONIT[29]="Production / Manufacturing / Maintenance / Quality"
NONIT[30]="R & D"
NONIT[31]="Real estate / Construction"
NONIT[32]="Retailing"
NONIT[33]="Safety / Environment"
NONIT[34]="Sales / BD / Branch Operations"
NONIT[35]="Security Services"
NONIT[36]="Semiconductors"
NONIT[37]="Telecom Services"
NONIT[38]="Textile and Leather"
NONIT[39]="Trading / Merchandising"
NONIT[40]="Travel / Ticketing"
NONIT[41]="Wood and Paper"
NONIT[42]="Top Management"
NONIT[43]="Others"

	var mySelect = document.getElementsByTagName("SELECT")["functionalArea"]
	//alert(mySelect);
	var delOption = mySelect.getElementsByTagName("option")
	var OldOptions = delOption.length
	for(loop = 1; loop < OldOptions; loop++)
	{
		mySelect.remove(1)				
	}
	
	if(industry == "IT")
	{	
		document.getElementById("non_itcatagory").style.display = "none" 
		document.getElementById("it_ites_Skills_tr").style.display = ""
		ArrayLength=IT.length
		for(loop=0; loop<ArrayLength; loop++)
		{
			myOption = document.createElement("option")
			if (window.ActiveXObject)
			{
				myOption.innerText=IT[loop]
			}
			else
				myOption.text=IT[loop]
			//myOption.innerText=IT[loop]
			myOption.value=IT[loop]
			mySelect.appendChild(myOption);
		}
	}
	else if(industry == "ITES")
	{		
		//alert('hemanth.2.'+document.getElementById("non_itcatagory"));
		document.getElementById("non_itcatagory").style.display = "none" 
		
		document.getElementById("it_ites_Skills_tr").style.display = ""
		
		ArrayLength=ITES.length
		for(loop=0; loop<ArrayLength; loop++)
		{
			myOption = document.createElement("option")
			if (window.ActiveXObject)
			{
				myOption.innerText=ITES[loop]
			}
			else
				myOption.text=ITES[loop]
			//myOption.innerText=ITES[loop]
			myOption.value=ITES[loop]
			mySelect.appendChild(myOption);
		}
		
	}
	else if(industry == "NONIT")
	{
		document.getElementById("non_itcatagory").style.display = "" 
		document.getElementById("it_ites_Skills_tr").style.display = "none"
		ArrayLength=NONIT.length
		for(loop=0; loop<ArrayLength; loop++)
		{
			myOption = document.createElement("option")
			if (window.ActiveXObject)
			{
				myOption.innerText=NONIT[loop]
			}
			else
				myOption.text=NONIT[loop]
			//myOption.innerText=NONIT[loop]
			myOption.value=NONIT[loop]
			mySelect.appendChild(myOption);
		}
	}
	else
	{
		alert("Please select industry")
	}

//end FunctionalArea
}
//Post Job End


//Script of Desg Starts
function Select_Desg(functionalArea)
{
// 
//alert('kumar..'+functionalArea);
var industry=document.getElementById("industry").value;
//alert(industry);
if (industry == "NONIT")
	Select_catagory();
 var IT_Desg = new Array();
 		
		IT_Desg[00]="Fresher"
		IT_Desg[01]="Trainee"
		
		IT_Desg[02]="Programmers"
		
		IT_Desg[03]="Software Engineer/ Programmer/Developer"
		IT_Desg[04]="Senior Software Engineer/ Programmer/ Developer"
		IT_Desg[05]="Software Test Engineer"
		IT_Desg[06]="System Security - Engineer"
		IT_Desg[07]="Technical Support Engineer"
		IT_Desg[08]="S/W Installation/ Maintenance Engg"
		IT_Desg[09]="Database Administrator (DBA)"
		IT_Desg[10]="Hardware Design Engineer"
		IT_Desg[11]="H/W Installation/ Maintenance Engg"
		IT_Desg[12]="Software Test Engineer"
		
		IT_Desg[13]="Consultants/Adminstrators"
		
		IT_Desg[14]="System Administrator"
		IT_Desg[15]="Network Administrator"
		IT_Desg[16]="Technical Consultant"
		IT_Desg[17]="Functional Consultant"
		IT_Desg[18]="Techno-Functional Consultant"
		
		IT_Desg[19]="Technical"
		
		IT_Desg[20]="Team Leader/ Technical Leader"
		IT_Desg[21]="System Analyst"
		IT_Desg[22]="Business Analyst"
		IT_Desg[23]="Technical/Solution Architect"
		IT_Desg[24]="Database Architect/ Designer"
		IT_Desg[26]="Project Leader"
		IT_Desg[27]="Hardware Design Technical Leader"
		IT_Desg[28]="Security Analyst"
		IT_Desg[29]="EDP Analyst"
		
		IT_Desg[30]="Senior Management"
		
		IT_Desg[31]="Product Manager"
		IT_Desg[32]="Content Manager"
		IT_Desg[33]="Project Manager"
		IT_Desg[34]="Account Manager"
		IT_Desg[35]="Program Manager"
		IT_Desg[36]="Relationship Manager"
		IT_Desg[37]="Technical Manager"
		IT_Desg[38]="Delivery Manager"
		IT_Desg[39]="General Manager"
		IT_Desg[40]="Country Manager"
		IT_Desg[41]="Facility Manager"
		IT_Desg[42]="General Manager"
		IT_Desg[43]="Configuration Mgr/ Release Manager"
		IT_Desg[44]="Operations Manager"
		IT_Desg[45]="Web Master/ Web Site Manager"
		IT_Desg[46]="Quality Assurance - Manager"
		IT_Desg[47]="IT/ Networking (EDP) - Manager"
		IT_Desg[48]="Information Systems (MIS) - Manager"
		
		IT_Desg[49]="Top Management"
		
		IT_Desg[50]="Chief Technology Officer(CTO)"
		IT_Desg[51]="Chief Information Officer(CIO)"
		IT_Desg[52]="Vice President(VP)/ General Manager(GM)"
		IT_Desg[53]="Chief Operating Officer(COO)"
		IT_Desg[54]="Chief Financial Officer(CFO)"
		IT_Desg[55]="SBU Head /Profit Centre Head"
		IT_Desg[56]="Chief Executive Officer(CEO)"
		IT_Desg[57]="Director"
		
		IT_Desg[58]="Others "
		
		IT_Desg[59]="Network Designer"
		IT_Desg[61]="Software Test Engineer"
		IT_Desg[62]="System Integrator"
		IT_Desg[63]="Datawarehousing Consultants"
		IT_Desg[64]="Support Engineer"
		IT_Desg[65]="Graphic Designer/ Animator"
		IT_Desg[66]="Quality Assurance Executive"
		IT_Desg[67]="VP/ GM - Quality"
		IT_Desg[68]="Technical Writer"
		IT_Desg[69]="Instructional Designer"
		IT_Desg[70]="Trainer/ Faculty"
		IT_Desg[71]="External Consultant"
		IT_Desg[72]="Computer Operator/ Data Entry"
		IT_Desg[73]="Others"

 var IT_HR_Desg = new Array();
 	
	IT_HR_Desg[00]="Front Office"
	IT_HR_Desg[01]="HR Executive/Recruiter"
	IT_HR_Desg[02]="Sr.Executive/Recruiter"
	IT_HR_Desg[03]="HR Assitant Manager/Manager/Sr.Manager"
	IT_HR_Desg[04]="Facility Manager"
	IT_HR_Desg[05]="General Manager"
	IT_HR_Desg[06]="Vice President"
	IT_HR_Desg[07]="Director"
	IT_HR_Desg[08]="President"
	
 var ITES_Desg=new Array();
	ITES_Desg[00]="Accounts Services Executive"
	ITES_Desg[01]="Admin staff"
	ITES_Desg[02]="Assosiate/Sr.Associate"
	ITES_Desg[03]="Asst.Manager/Manager"
	ITES_Desg[04]="Back office staff"
	ITES_Desg[05]="Business Development Manager"
	ITES_Desg[06]="Business/EDP Analyst"
	ITES_Desg[07]="Chief Operating Officer(COO)";
	ITES_Desg[08]="Country Manager";
	ITES_Desg[09]="Customer Service Executive";
	ITES_Desg[10]="Dailer Manager";
	ITES_Desg[11]="Data Processing Executive";
	ITES_Desg[12]="Director on Board";
	ITES_Desg[13]="External Consultant";
	ITES_Desg[14]="Fresher";
	ITES_Desg[15]="Front office staff"
	ITES_Desg[16]="General Manager(GM)";
	ITES_Desg[17]="HR Executive"
	ITES_Desg[18]="Infrastructure & Technology Manager";
	ITES_Desg[19]="Manager - Data Processing";
	ITES_Desg[20]="Manager - HR"
	ITES_Desg[21]="Manager - Migrations/Transactions";
	ITES_Desg[22]="Manager - Service Delivery";
	ITES_Desg[23]="Medical Transcriptionist";
	ITES_Desg[24]="Operations Manager";
	ITES_Desg[25]="Process Trainer";
	ITES_Desg[26]="Process/Work Flow Analyst";
	ITES_Desg[27]="QA/QC Executive";
	ITES_Desg[28]="QA/QC Manager";
	ITES_Desg[29]="Quality Coach";
	ITES_Desg[30]="SBU Head/Profit Center Head";
	ITES_Desg[31]="Senior HR Executive"
	ITES_Desg[32]="Shift Supervisor";
	ITES_Desg[33]="Soft Skills Trainer";
	ITES_Desg[34]="Team Leader";
	ITES_Desg[35]="Techincal Support Executive";
	ITES_Desg[36]="Techincal Support Representative";
	ITES_Desg[37]="Technical Trainer";
	ITES_Desg[38]="Telemarketing Executive";
	ITES_Desg[39]="Telesales Executive";
	ITES_Desg[40]="Traineee/Management Trainee";
	ITES_Desg[41]="Training Manager";
	ITES_Desg[42]="Transactions Processing Executive";
	ITES_Desg[43]="Vice President(VP)";
	ITES_Desg[44]="Voice & Accent Trainer";
	ITES_Desg[45]="Others";
	
	
	
	
	var mySelect = document.getElementsByTagName("SELECT")["designation"]
	var OldChilds = mySelect.childNodes.length
	
	for(loop = 0; loop < OldChilds ; loop++)
	{
		mySelect.removeChild(mySelect.firstChild)
	}
	//The above loop (i.e mySelect.removeChild(mySelect.firstChild)) removes the default label also. So here explicitly we create that default label.
	myOption = document.createElement("option")
	if (window.ActiveXObject)
	{
		myOption.innerText="...select designation..."
	}
	else
		myOption.text="...select designation..."
	//myOption.innerText="...select designation..."
	myOption.selected="selected"
	mySelect.appendChild(myOption);
	
	
	//var functionalArea=document.getElementById("functionalArea").value ;
	
	
var Insurance_desg = new Array();

	Insurance_desg[0]="Relationship Manager"
	Insurance_desg[1]="Sales Manager"
	Insurance_desg[2]="Advisor"
	Insurance_desg[3]="Agent/Broker"
	Insurance_desg[4]="Executive"
	Insurance_desg[5]="Underwriting"
	Insurance_desg[6]="Bank Assurance Executive/Manager"
	Insurance_desg[7]="Regional Manager"
	Insurance_desg[8]="Branch Manager/Head"
	Insurance_desg[9]="Head Bank Assurance"
	Insurance_desg[10]="Head "
	Insurance_desg[11]="Manager"
	Insurance_desg[12]="Operations Executive"
	Insurance_desg[13]="Operations Manager"
	Insurance_desg[14]="Agency Manager"
	Insurance_desg[15]="Insurance Analyst "
	Insurance_desg[16]="Insurance Agent"
	Insurance_desg[17]="Insurance Valuator"
	Insurance_desg[18]="Other"
	
	


var LegalLaw_desg = new Array();

	LegalLaw_desg[0]="Legal Assistant/Apprentice"
	LegalLaw_desg[1]="Private Practitioner/Lawyer"
	LegalLaw_desg[2]="Lawyer/Attorney"
	LegalLaw_desg[3]="Legal Advisor"
	LegalLaw_desg[4]="Legal Consultant/Solicitor"
	LegalLaw_desg[5]="Law Officer"
	LegalLaw_desg[6]="Patent"
	LegalLaw_desg[7]="Company Secretary"
	LegalLaw_desg[8]="Proof Reader(Law)"
	LegalLaw_desg[9]="Legal Editor"
	LegalLaw_desg[10]="Legal services-Manager"
	LegalLaw_desg[11]="Legal head"
	LegalLaw_desg[12]="Other"


	
var Marketing_desg = new Array();

	Marketing_desg[0]="Executive"
	Marketing_desg[1]="Analyst/Consultant"
	Marketing_desg[2]="Head"
	Marketing_desg[3]="Assistant Manager"
	Marketing_desg[4]="Manager"
	Marketing_desg[5]="Other"

var Realestate_desg = new Array();

	Realestate_desg[0]="Finance & Accounts Staff"
	Realestate_desg[1]="Administration / HR Staff"
	Realestate_desg[2]="Engineer - Civil  / Design"
	Realestate_desg[3]="Consultant - Legal"
	Realestate_desg[4]="Consultant - Plumbing"
	Realestate_desg[5]="Consultant - Quality"
	Realestate_desg[6]="Engineer - Landscaping"
	Realestate_desg[7]="Engineer - Architecture / Interiors"
	Realestate_desg[8]="Engineer - Billing / Costing"
	Realestate_desg[9]="Engineer - Logistic"
	Realestate_desg[10]="Engineer - Contracts"
	Realestate_desg[11]="Engineer - Electrical"
	Realestate_desg[12]="Engineer - Environmental"
	Realestate_desg[13]="Engineer - Fabrication"
	Realestate_desg[14]="Engineer - Mechanical"
	Realestate_desg[15]="Engineer - Mining"
	Realestate_desg[16]="Engineer - Structural"
	Realestate_desg[17]="Engineer - Survey"
	Realestate_desg[18]="Sales & Marketing Staff"
	Realestate_desg[19]="Support Staff"
	Realestate_desg[20]="Other "

var ExportsImports_desg = new Array();

	ExportsImports_desg[0]="Assisant"
	ExportsImports_desg[1]="Merchandiser"
	ExportsImports_desg[2]="Trader"
	ExportsImports_desg[3]="Coordinator"
	ExportsImports_desg[4]="Executive/Officer"
	ExportsImports_desg[5]="Marketing Officer / Executive"
	ExportsImports_desg[6]="Office Assistant"
	ExportsImports_desg[7]="Personal Secretary"
	ExportsImports_desg[8]="Support Staff"
	ExportsImports_desg[9]="Technical Manager"
	ExportsImports_desg[10]="Assistant Manager"
	ExportsImports_desg[11]="Head/Manager"
	ExportsImports_desg[12]="Quality Head"
	ExportsImports_desg[13]="Sr.Design Assistant"
	ExportsImports_desg[14]="Sr.Marketing Heads"
	ExportsImports_desg[15]="Sr.Product Executive"
	ExportsImports_desg[16]="Sr.QA"
	ExportsImports_desg[17]="Operations Manager"
	ExportsImports_desg[18]="Outsourcing Manager"
	ExportsImports_desg[19]="Process Manager"
	ExportsImports_desg[20]="Procurement Manager"
	ExportsImports_desg[21]="Production Manager"
	ExportsImports_desg[22]="Purchase Manager"
	ExportsImports_desg[23]="QA Manager"
	ExportsImports_desg[24]="Regional Head/Manager"
	ExportsImports_desg[25]="Registration Manager"
	ExportsImports_desg[26]="Stock/Store Manager"
	ExportsImports_desg[27]="Business Development Manager(BDM)"
	ExportsImports_desg[28]="Deputy General Manager/General Manager"
	ExportsImports_desg[29]="Divisional Marketing Manager"
	ExportsImports_desg[30]="Vice President"


var Healthcare_desg = new Array();

	Healthcare_desg[0]="Doctor"
	Healthcare_desg[1]="Physician"
	Healthcare_desg[2]="Dietician"
	Healthcare_desg[3]="Consultant"
	Healthcare_desg[4]="Pathologist"
	Healthcare_desg[5]="Surgeon"
	Healthcare_desg[6]="Othopaedist"
	Healthcare_desg[7]="Psychiatrist"
	Healthcare_desg[8]="Specialist"
	Healthcare_desg[9]="Nephrologist"
	Healthcare_desg[10]="Physiotherapist"
	Healthcare_desg[11]="Psycologist"
	Healthcare_desg[12]="Therapist"
	Healthcare_desg[13]="Microbiologist"
	Healthcare_desg[14]="Chemist"
	Healthcare_desg[15]="Optometrist"
	Healthcare_desg[16]="Radiologist"
	Healthcare_desg[17]="Pharmacist"
	Healthcare_desg[18]="Perfusionist"
	Healthcare_desg[19]="Anaesthesit"
	Healthcare_desg[20]="Opthalmologist"
	Healthcare_desg[21]="Nurse"
	Healthcare_desg[22]="Technician"
	Healthcare_desg[23]="Bio-chemist"
	Healthcare_desg[24]="Radiographer"
	Healthcare_desg[25]="Medical Officer"
	Healthcare_desg[26]="Front Office"
	Healthcare_desg[27]="House Keeping"
	Healthcare_desg[28]="Cardiologist"
	Healthcare_desg[29]="Dentist"
	Healthcare_desg[30]="Dermatologist"
	Healthcare_desg[31]="Gastronomist/Gastrologist"
	Healthcare_desg[32]="Gyanecologist"
	Healthcare_desg[33]="Medical Lab Supervisor"
	Healthcare_desg[34]="Medical Superintendent/Dean/Director"
	Healthcare_desg[35]="Neurologist"
	Healthcare_desg[36]="Hepatologist"
	Healthcare_desg[37]="Oncologist"
	Healthcare_desg[38]="Pediatrician"
	Healthcare_desg[39]="Pulmomologist"
	Healthcare_desg[40]="Other"
	
var Aviation_desg = new Array();

	Aviation_desg[0]="Air Hostess "
	Aviation_desg[1]="Air Traffic Controller "
	Aviation_desg[2]="Maintenance Engineering "
	Aviation_desg[3]="Cabin Crew "
	Aviation_desg[4]="Cabin Safety Instructor "
	Aviation_desg[5]="Cabin Services Instructor"
	Aviation_desg[6]="Cargo Officers "
	Aviation_desg[7]="Flight Steward"
	Aviation_desg[8]="Ground Staff "
	Aviation_desg[9]="Guest Service Agent"
	Aviation_desg[10]="In-Flight Managers"
	Aviation_desg[11]="Maintenance Controllers "
	Aviation_desg[12]="Pilot"
	Aviation_desg[13]="Quality Control Manager"
	Aviation_desg[14]="Training Instructor"
	Aviation_desg[15]="Other"

	
//Top Management
var TopManagement_desg= new Array();

	TopManagement_desg[0]="GM/Head/VP"
	TopManagement_desg[1]="Head/VP/ COO"
	TopManagement_desg[2]="Head/VP/GM"
	TopManagement_desg[3]="Head/VP/ GM "
	TopManagement_desg[4]="VP/ GM/ Head/President/Director"
	TopManagement_desg[5]="Head/ GM/VP/CFO"
	TopManagement_desg[6]="Head/VP/GM"
	TopManagement_desg[7]="Head/Director/VP/ GM"
	TopManagement_desg[8]="Head/VP/ GM"
	TopManagement_desg[9]="VP/ Head"
	
//Media & Entertainment
var MediaEntertainment_desg= new Array();

	MediaEntertainment_desg[0]="Anchor"
	MediaEntertainment_desg[1]="Artist"
	MediaEntertainment_desg[2]="Assistant Staff"
	MediaEntertainment_desg[3]="Cameraman"
	MediaEntertainment_desg[4]="Choreographer"
	MediaEntertainment_desg[5]="Correspondent/Reporter"
	MediaEntertainment_desg[6]="Director"
	MediaEntertainment_desg[7]="Editor"
	MediaEntertainment_desg[8]="Freelancer"
	MediaEntertainment_desg[9]="Graphic Designer/Animator"
	MediaEntertainment_desg[10]="Head"
	MediaEntertainment_desg[11]="Instructional Designer"
	MediaEntertainment_desg[12]="Manager"
	MediaEntertainment_desg[13]="Photographer"
	MediaEntertainment_desg[14]="Principal/Senior Correspondent/Reporter"
	MediaEntertainment_desg[15]="Proof Reader"
	MediaEntertainment_desg[16]="Sound Mixer/Engineer"
	MediaEntertainment_desg[17]="Stringer"
	MediaEntertainment_desg[18]="Technician"
	MediaEntertainment_desg[19]="Translator"
	MediaEntertainment_desg[20]="VJ/RJ/DJ"
	MediaEntertainment_desg[21]="Voice Dubbing"
	MediaEntertainment_desg[22]="Wardrobe/Make-up/Hair Artist"
	MediaEntertainment_desg[23]="Writer"
	MediaEntertainment_desg[24]="Other"
	


//Oil & Gas
var OilGas_desg= new Array();
    OilGas_desg[0]="Desalination Expert"
	OilGas_desg[1]="Draughtsman"
	OilGas_desg[2]="Drilling Expert"
	OilGas_desg[3]="Engineer - Civil & Structural"
	OilGas_desg[4]="Engineer - Electrical"
	OilGas_desg[5]="Engineer - Facilities/Surface"
	OilGas_desg[6]="Engineer - Field"
	OilGas_desg[7]="Engineer - Heating & Thermal Equipment"
	OilGas_desg[8]="Engineer - Inspection"
	OilGas_desg[9]="Engineer - Instrument & Control Automation"
	OilGas_desg[10]="Engineer - Materilas & Corrosion"
	OilGas_desg[11]="Engineer - Mechanical Static"
	OilGas_desg[12]="Engineer - Offshore Structures"
	OilGas_desg[13]="Engineer - Oil/Gas"
	OilGas_desg[14]="Engineer - Pipelines"
	OilGas_desg[15]="Engineer - Pressure Equipment"
	OilGas_desg[16]="Engineer - Quality Assurance"
	OilGas_desg[17]="Engineer - Reactor & Solids Processing"
	OilGas_desg[18]="Engineer - Rotating Equipment"
	OilGas_desg[19]="Engineer - Subsea"
	OilGas_desg[20]="Engineer - Support"
	OilGas_desg[21]="Fire & Gas Technician"
	OilGas_desg[22]="Foreman"
	OilGas_desg[23]="Gas Turbine Expert"
	OilGas_desg[24]="Geophysicist"
	OilGas_desg[25]="Head - Development & Projects"
	OilGas_desg[26]="Head - Drilling & Completions"
	OilGas_desg[27]="Head - EPC"
	OilGas_desg[28]="HSE management Specialist"
	OilGas_desg[29]="HVAC Expert"
	OilGas_desg[30]="Petroleum Engineering"
	OilGas_desg[31]="Petrophysicist"
    OilGas_desg[32]="Process Engineering"
	OilGas_desg[33]="Production & Manufacturing Downstream"
	OilGas_desg[34]="Production & Manufacturing Upstream"
	OilGas_desg[35]="Project Engineering"
	OilGas_desg[36]="Research & Technology Development"
	OilGas_desg[37]="Reservoir Geologist"
	OilGas_desg[38]="Rigger"
	OilGas_desg[39]="Safety Engineer"
	OilGas_desg[40]="Seismic Expert"
	OilGas_desg[41]="Thermal Inspector"
	OilGas_desg[42]="Well Engineering"
	OilGas_desg[43]="Other"


//Production/Manufacturing
var ProductionManufacturing_desg= new Array();
    ProductionManufacturing_desg[0]="Assembler"
	ProductionManufacturing_desg[1]="Assistant"
	ProductionManufacturing_desg[2]="Draughtsman"
	ProductionManufacturing_desg[3]="Engineer"
	ProductionManufacturing_desg[4]="Foreman"
	ProductionManufacturing_desg[5]="Head"
	ProductionManufacturing_desg[6]="Lab Staff"
	ProductionManufacturing_desg[7]="Maintenance"
	ProductionManufacturing_desg[8]="Manager"
	ProductionManufacturing_desg[9]="Officer/Engineer"
	ProductionManufacturing_desg[10]="Packaging"
	ProductionManufacturing_desg[11]="Plant Head/Factory Manager"
	ProductionManufacturing_desg[12]="Service Manager/Engineer"
	ProductionManufacturing_desg[13]="Spares Manager/Engineer"
	ProductionManufacturing_desg[14]="Supervisor"
	ProductionManufacturing_desg[15]="Support Staff"
	ProductionManufacturing_desg[16]="Technician"
	ProductionManufacturing_desg[17]="Other"
var Aviation_desg = new Array();

	Aviation_desg[0]="Air Hostess"
	Aviation_desg[1]="Controller "
	Aviation_desg[2]="Flight Steward"
	Aviation_desg[3]="Ground Staff "
	Aviation_desg[4]="Guest Service Agent "
	Aviation_desg[5]="In-Flight Manager"
	Aviation_desg[6]="Maintenance Engineer"
	Aviation_desg[7]="Officers "
	Aviation_desg[8]="Pilot"
	Aviation_desg[9]="Quality Control Manager"
	Aviation_desg[10]="Instructor "
	Aviation_desg[11]="Other"
	

var Banking_desg = new Array();

	Banking_desg[0]="Audit"
	Banking_desg[1]="Actuary"
	Banking_desg[2]="Branch Head"
	Banking_desg[3]="Business Analyst"
	Banking_desg[4]="Cash Officer/Manager"
	Banking_desg[5]="Clearing Officer/Head"
	Banking_desg[6]="Collections"
	Banking_desg[7]="Credit Analyst"
	Banking_desg[8]="Credit Head"
	Banking_desg[9]="Dealer"
	Banking_desg[10]="GM "
	
	Banking_desg[11]="Head "
	Banking_desg[12]="Investment Banking"
	Banking_desg[13]="Manager"
	
	
var Pharma_desg = new Array();

	Pharma_desg[0]="Analyst"
	Pharma_desg[1]="Assistants"
	Pharma_desg[2]="Chemist/Scientist"
	Pharma_desg[3]="Clerk"
	Pharma_desg[4]="Drug Regulatory Doctor"
	Pharma_desg[5]="Executive"
	Pharma_desg[6]="Head"
	Pharma_desg[7]="Psychiatrist"
	Pharma_desg[8]="Manager"
	Pharma_desg[9]="Medical Representative"
	Pharma_desg[10]="Microbiologist"
	
	Pharma_desg[11]="Nutritionist"
	Pharma_desg[12]="Pharmacist"
	Pharma_desg[13]="Microbiologist"
	Pharma_desg[14]="Relationship Manager"
	Pharma_desg[15]="Phone Banking Officer"
	Pharma_desg[16]="Private Banker"
	Pharma_desg[17]="Production Manager"
	Pharma_desg[18]="Region Head"
	Pharma_desg[19]="Research Analyst"
	Pharma_desg[20]="Underwriter"
	Pharma_desg[21]="Other"

var Retail_desg = new Array();

	Retail_desg[0]="Manager"
	Retail_desg[1]="Analyst"
	Retail_desg[2]="Buyer"
	Retail_desg[3]="Cashier"
	Retail_desg[4]="Consultant"
	Retail_desg[5]="Executive/Representative"
	Retail_desg[6]="Front Desk"
	Retail_desg[7]="Merchandiser"
	Retail_desg[8]="Operations Officer"
	Retail_desg[9]="Sourcing Manager"
	Retail_desg[10]="Supervisor"
	Retail_desg[11]="Other"
	

var Automobiles_desg = new Array();

	Automobiles_desg[0]="Assembler"
	Automobiles_desg[1]="Controller"
	Automobiles_desg[2]="Design"
	Automobiles_desg[3]="Electrician"
	Automobiles_desg[4]="Pathologist"
	Automobiles_desg[5]="Engineer"
	Automobiles_desg[6]="Executive"
	Automobiles_desg[7]="Manager"
	Automobiles_desg[8]="Mechanic"
	Automobiles_desg[9]="Supervisor"
	Automobiles_desg[10]="Tinker"
	Automobiles_desg[11]="Other"
	

var TrainingEducation_desg = new Array();

	TrainingEducation_desg[0]="Instructor / Faculty"
	TrainingEducation_desg[1]="Lecturer / Professor"
	TrainingEducation_desg[2]="Librarian"
	TrainingEducation_desg[3]="Principal/Dean"
	TrainingEducation_desg[4]="Teacher"
	TrainingEducation_desg[5]="Translator"
	TrainingEducation_desg[6]="Other"

	
var RealEstate_desg = new Array();

	RealEstate_desg[0]="Architect"
	RealEstate_desg[1]="Buyer"
	RealEstate_desg[2]="Designer"
	RealEstate_desg[3]="Detailer"
	RealEstate_desg[4]="Document Controller"
	RealEstate_desg[5]="Engineer"
	RealEstate_desg[6]="Executives"
	RealEstate_desg[7]="Foreman"
	RealEstate_desg[8]="Manager"
	RealEstate_desg[9]="Process Manager"
	RealEstate_desg[10]="Project Manager"
	
	RealEstate_desg[11]="Reporting Manager"
	RealEstate_desg[12]="Site Engineer"
	RealEstate_desg[13]="Supervisor"
	RealEstate_desg[14]="Surveyor"
	RealEstate_desg[15]="Other"
	
var GemsJewellery_desg = new Array();

	GemsJewellery_desg[0]="Accountant"
	GemsJewellery_desg[1]="Assembler"
	GemsJewellery_desg[2]="Assistant"
	GemsJewellery_desg[3]="Designer"
	GemsJewellery_desg[4]="Executive"
	GemsJewellery_desg[5]="Head"
	GemsJewellery_desg[6]="Maker"
	GemsJewellery_desg[7]="Manager"
	GemsJewellery_desg[8]="Mounting"
	GemsJewellery_desg[9]="Officer"
	GemsJewellery_desg[10]="Operator"
	GemsJewellery_desg[11]="Planner"
	GemsJewellery_desg[12]="Production Manager"
	GemsJewellery_desg[13]="Relationship Manager"
	GemsJewellery_desg[14]="Representative"
	GemsJewellery_desg[15]="Secretary"
	GemsJewellery_desg[16]="Setters"
	GemsJewellery_desg[17]="Store Keeper"
	GemsJewellery_desg[18]="Supervisor"
	GemsJewellery_desg[19]="Other"
   
var DesignArchitecture_desg = new Array();

	DesignArchitecture_desg[0]="Architect"
	DesignArchitecture_desg[1]="Draughtsman"
	DesignArchitecture_desg[2]="Architect"
	DesignArchitecture_desg[3]="Consultant"
	DesignArchitecture_desg[4]="Planner"
	DesignArchitecture_desg[5]="Designer"
	DesignArchitecture_desg[6]="Supervisor"
	DesignArchitecture_desg[7]="Executive"
	DesignArchitecture_desg[8]="Draftman"
	DesignArchitecture_desg[9]="Coordinator"
	DesignArchitecture_desg[10]="Engineer"
	DesignArchitecture_desg[11]="Other"


var Telecommunications_desg = new Array();

	Telecommunications_desg[0]="Adminstrator"
	Telecommunications_desg[1]="Engineer"
	Telecommunications_desg[2]="Executive "
	Telecommunications_desg[3]="Manager"
	Telecommunications_desg[4]="Officer"
	Telecommunications_desg[5]="Technician"
	Telecommunications_desg[6]="Other"
	
var Sales_desg = new Array();

	Sales_desg[0]="Medical Representative"
	Sales_desg[1]="Executive/Representative"
	Sales_desg[2]="Agent "
	Sales_desg[3]="Manager"
	Sales_desg[4]="Sales Promotion Manager"
	Sales_desg[5]="Channel Sales Manager"
	Sales_desg[6]="Relationship Manager "
	Sales_desg[7]="Presales Consultant"
	Sales_desg[8]="Key Account Manager"
	Sales_desg[9]="Area /Territory Sales Manager"
	Sales_desg[10]="Branch Manager"
	Sales_desg[11]="Other"

var RD_desg = new Array();

	RD_desg[0]="Manager"
	RD_desg[1]="Analyst"
	RD_desg[2]="Associate / Professors"
	RD_desg[3]="Bio-Statistician "
	RD_desg[4]="Chemist"
	RD_desg[5]="Co-ordinator"
	RD_desg[6]="Engineer"
	RD_desg[7]="Formulation Scientist"
	RD_desg[8]="Molecular Biologist"
	RD_desg[9]="Research Assistant"
	RD_desg[10]="Research Associate"
	RD_desg[11]="Scientist"
	RD_desg[12]="Technical Writer"
	RD_desg[13]="Toxicologist"
	RD_desg[14]="Other"




		
	var mySelect = document.getElementsByTagName("SELECT")["designation"]
	var OldChilds = mySelect.childNodes.length
	
	for(loop = 0; loop < OldChilds ; loop++)
	{
		mySelect.removeChild(mySelect.firstChild)
	}
	//The above loop (i.e mySelect.removeChild(mySelect.firstChild)) removes the default label also. So here explicitly we create that default label.
	myOption = document.createElement("option")
	if (window.ActiveXObject)
	{
		myOption.innerText="...select designation..."
	}
	else
		myOption.text="...select designation..."
	//myOption.innerText="...select designation..."
	myOption.value=""
	myOption.selected="selected"
	mySelect.appendChild(myOption);

	var functionalArea=document.getElementById("functionalArea").value ;
	var industry=document.getElementById("industry").value;
if( industry == "")
{
		alert("Please select industry....");
}else if (industry == "IT")
	{
		if(functionalArea == "")
		{
			alert("Please select functional area...");
		}
		else if (functionalArea == "HR/Admin")
		{
		    ArrayLength=IT_HR_Desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=IT_HR_Desg[loop]
						}
						else
							myOption.text=IT_HR_Desg[loop]
						//myOption.innerText=IT_HR_Desg[loop]
						myOption.value=IT_HR_Desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}	
		else 
		{
		   
			ArrayLength=IT_Desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
				if(IT_Desg[loop] == "Programmers" || IT_Desg[loop] == "Consultants/Adminstrators" ||IT_Desg[loop] == "Technical" ||IT_Desg[loop] == "Senior Management" ||IT_Desg[loop] == "Top Management"  || IT_Desg[loop] == "Others " )
					{
						myOption = document.createElement("optgroup")
						myOption.label=IT_Desg[loop]
						mySelect.appendChild(myOption);
					}
					else
					{
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=IT_Desg[loop]
						}
						else
							myOption.text=IT_Desg[loop]
						//myOption.innerText=IT_Desg[loop]
						myOption.value=IT_Desg[loop]
						mySelect.appendChild(myOption);
					}
			}		
		}
		
	} 
	else if (document.getElementById("industry").value == "ITES")
 	{
			ArrayLength=ITES_Desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
				myOption = document.createElement("option")
				if (window.ActiveXObject)
				{
					myOption.innerText=ITES_Desg[loop]
				}
				else
					myOption.text=ITES_Desg[loop]
				//myOption.innerText=ITES_Desg[loop]
				myOption.value=ITES_Desg[loop]
				mySelect.appendChild(myOption);
			}	
			
	}else if (document.getElementById("industry").value == "NONIT")
 	{
		if(functionalArea == "")
		{
			alert("Please select functional area...");
		}
		else if (functionalArea == "Insurance")
		{
		    ArrayLength=Insurance_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Insurance_desg[loop]
						}
						else
							myOption.text=Insurance_desg[loop]
						//myOption.innerText=Insurance_desg[loop]
						myOption.value=Insurance_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}else if (functionalArea == "Legal/Law")
		{
		    ArrayLength=LegalLaw_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=LegalLaw_desg[loop]
						}
						else
							myOption.text=LegalLaw_desg[loop]
						//myOption.innerText=LegalLaw_desg[loop]
						myOption.value=LegalLaw_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Marketing")
		{
		    ArrayLength=Marketing_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Marketing_desg[loop]
						}
						else
							myOption.text=Marketing_desg[loop]
						//myOption.innerText=Marketing_desg[loop]
						myOption.value=Marketing_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}				
		else if (functionalArea == "Realestate")
		{
		    ArrayLength=Realestate_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Realestate_desg[loop]
						}
						else
							myOption.text=Realestate_desg[loop]
						//myOption.innerText=Realestate_desg[loop]
						myOption.value=Realestate_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}	
		else if (functionalArea == "Exports/Imports")
		{
		    ArrayLength=ExportsImports_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=ExportsImports_desg[loop]
						}
						else
							myOption.text=ExportsImports_desg[loop]
						//myOption.innerText=ExportsImports_desg[loop]
						myOption.value=ExportsImports_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Healthcare")
		{
		    ArrayLength=Healthcare_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Healthcare_desg[loop]
						}
						else
							myOption.text=Healthcare_desg[loop]
						//myOption.innerText=Healthcare_desg[loop]
						myOption.value=Healthcare_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		
		else if (functionalArea == "Aviation")
		{
		    ArrayLength=Aviation_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Aviation_desg[loop]
						}
						else
							myOption.text=Aviation_desg[loop]
						//myOption.innerText=Aviation_desg[loop]
						myOption.value=Aviation_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		
		else if (functionalArea == "Top Management")
		{
		    ArrayLength=TopManagement_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=TopManagement_desg[loop]
						}
						else
							myOption.text=TopManagement_desg[loop]
						//myOption.innerText=TopManagement_desg[loop]
						myOption.value=TopManagement_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Media & Entertainment")
		{
		    ArrayLength=MediaEntertainment_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=MediaEntertainment_desg[loop]
						}
						else
							myOption.text=MediaEntertainment_desg[loop]
						//myOption.innerText=MediaEntertainment_desg[loop]
						myOption.value=MediaEntertainment_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Oil & Gas")
		{
		    ArrayLength=OilGas_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=OilGas_desg[loop]
						}
						else
							myOption.text=OilGas_desg[loop]
						//myOption.innerText=OilGas_desg[loop]
						myOption.value=OilGas_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Production/Manufacturing")
		{
		    ArrayLength=ProductionManufacturing_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=ProductionManufacturing_desg[loop]
						}
						else
							myOption.text=ProductionManufacturing_desg[loop]
						//myOption.innerText=ProductionManufacturing_desg[loop]
						myOption.value=ProductionManufacturing_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}


			else if (functionalArea == "PAviation")
		{
		    ArrayLength=Aviation_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Aviation_desg[loop]
						}
						else
							myOption.text=Aviation_desg[loop]
						//myOption.innerText=Aviation_desg[loop]
						myOption.value=Aviation_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Banking/Financial Services")
		{
		    ArrayLength=Banking_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Banking_desg[loop]
						}
						else
							myOption.text=Banking_desg[loop]
						//myOption.innerText=Banking_desg[loop]
						myOption.value=Banking_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Pharma")
		{
		    ArrayLength=Pharma_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Pharma_desg[loop]
						}
						else
							myOption.text=Pharma_desg[loop]
						//myOption.innerText=Pharma_desg[loop]
						myOption.value=Pharma_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Retail")
		{
		    ArrayLength=Retail_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Retail_desg[loop]
						}
						else
							myOption.text=Retail_desg[loop]
						//myOption.innerText=Retail_desg[loop]
						myOption.value=Retail_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Automobiles")
		{
		    ArrayLength=Automobiles_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Automobiles_desg[loop]
						}
						else
							myOption.text=Automobiles_desg[loop]
						//myOption.innerText=Automobiles_desg[loop]
						myOption.value=Automobiles_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Training & Education")
		{
		    ArrayLength=TrainingEducation_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=TrainingEducation_desg[loop]
						}
						else
							myOption.text=TrainingEducation_desg[loop]
						//myOption.innerText=TrainingEducation_desg[loop]
						myOption.value=TrainingEducation_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Gems & Jewellery")
		{
		    ArrayLength=GemsJewellery_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=GemsJewellery_desg[loop]
						}
						else
							myOption.text=GemsJewellery_desg[loop]
						//myOption.innerText=GemsJewellery_desg[loop]
						myOption.value=GemsJewellery_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Design & Architecture")
		{
		    ArrayLength=DesignArchitecture_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=DesignArchitecture_desg[loop]
						}
						else
							myOption.text=DesignArchitecture_desg[loop]
						//myOption.innerText=DesignArchitecture_desg[loop]
						myOption.value=DesignArchitecture_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Telecommunications")
		{
		    ArrayLength=Telecommunications_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Telecommunications_desg[loop]
						}
						else
							myOption.text=Telecommunications_desg[loop]
						//myOption.innerText=Telecommunications_desg[loop]
						myOption.value=Telecommunications_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "Sales")
		{
		    ArrayLength=Sales_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=Sales_desg[loop]
						}
						else
							myOption.text=Sales_desg[loop]
						//myOption.innerText=Sales_desg[loop]
						myOption.value=Sales_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		else if (functionalArea == "R & D")
		{
		    ArrayLength=RD_desg.length
			for(loop=0; loop<ArrayLength; loop++)
			{
						
						myOption = document.createElement("option")
						if (window.ActiveXObject)
						{
							myOption.innerText=RD_desg[loop]
						}
						else
							myOption.text=RD_desg[loop]
						//myOption.innerText=RD_desg[loop]
						myOption.value=RD_desg[loop]
						mySelect.appendChild(myOption);
					
			}
		}
		
	}//notITES if ends		
	
 
}
//Script of Desg Emds
//Scirpt for NONIT -Catagory Starts
function Select_catagory()
{
 

 var Insurance_catagory = new Array();
	Insurance_catagory[0]="Accounts"
	Insurance_catagory[1]="Actuarial"
	Insurance_catagory[2]="Brokerage"
	Insurance_catagory[3]="Claims Management "
	Insurance_catagory[4]="Insurance "
	Insurance_catagory[5]="Underwriting"
	Insurance_catagory[6]="Bank Assurance"
	Insurance_catagory[7]="Other"
	
//LegalLaw_catagory
 var LegalLaw_catagory = new Array();

	LegalLaw_catagory[0]="Civil Law"
	LegalLaw_catagory[1]="Corporate Law"
	LegalLaw_catagory[2]="Criminal Law"
	LegalLaw_catagory[3]="Cyber Laws"
	LegalLaw_catagory[4]="Employment & Industrial Relations"
	LegalLaw_catagory[5]="Family Affairs"
	LegalLaw_catagory[6]="Financial Services"
	LegalLaw_catagory[7]="Mergers & Acquisitions"
	LegalLaw_catagory[8]="Patent & IP"
	LegalLaw_catagory[9]="Property"
	LegalLaw_catagory[10]="Regulatory Affairs"
	LegalLaw_catagory[11]="Tax"
	LegalLaw_catagory[12]="Other"
	
//ExportImports_catagory
var ExportImports_catagory = new Array();

	ExportImports_catagory[0]="Assisant"
	ExportImports_catagory[1]="Merchandiser"
	ExportImports_catagory[2]="Trader"
	ExportImports_catagory[3]="Coordinator"
	ExportImports_catagory[4]="Executive/Officer"
	ExportImports_catagory[5]="Marketing Officer / Executive"
	ExportImports_catagory[6]="Office Assistant"
	ExportImports_catagory[7]="Personal Secretary"
	ExportImports_catagory[8]="Support Staff"
	ExportImports_catagory[9]="Technical Manager"
	ExportImports_catagory[10]="Assistant Manager"
	ExportImports_catagory[11]="Head/Manager"
	ExportImports_catagory[12]="Quality Head"
	ExportImports_catagory[13]="Sr.Marketing Heads"
	ExportImports_catagory[14]="Sr.Design Assistant"
	ExportImports_catagory[15]="Sr.Product Executive"
	ExportImports_catagory[16]="Sr.QA"
	ExportImports_catagory[17]="Operations Manager"
	ExportImports_catagory[18]="Outsourcing Manager"
	ExportImports_catagory[19]="Process Manager"
	ExportImports_catagory[20]="Procurement Manager"
	ExportImports_catagory[21]="Production Manager"
	ExportImports_catagory[22]="Purchase Manager"
	ExportImports_catagory[23]="QA Manager"
	ExportImports_catagory[24]="QC Manager"
	ExportImports_catagory[25]="Regional Head/Manager"
	ExportImports_catagory[26]="Registration Manager"
	ExportImports_catagory[27]="Stock/Store Manager"
	ExportImports_catagory[28]="Business Development Manager(BDM)"
	ExportImports_catagory[29]="Deputy General Manager/General Manager"
	ExportImports_catagory[30]="Divisional Marketing Manager"
	ExportImports_catagory[31]="Vice President"
	


//Healthcare
var Healthcare__catagory = new Array();
	Healthcare__catagory[0]="Admin Services / Medical Facilities "
	Healthcare__catagory[1]="Anesthesia"
	Healthcare__catagory[2]="Cardiology"
	Healthcare__catagory[3]="Clinical Research"
	Healthcare__catagory[4]="Critical Care"
	Healthcare__catagory[5]="Dental Care"
	Healthcare__catagory[6]="Dermatology"
	Healthcare__catagory[7]="Diet / Nutrition"
	Healthcare__catagory[8]="Documentation / Medical Writing"
	Healthcare__catagory[9]="ENT "
	Healthcare__catagory[10]="Gynecology "
	Healthcare__catagory[11]="Hepatology"
	Healthcare__catagory[12]="House Keeping"
	Healthcare__catagory[13]="Lab / Medical Technician"
	Healthcare__catagory[14]="Medical Imaging "
	Healthcare__catagory[15]="Medical Officer"
	Healthcare__catagory[16]="Medical Representative"
	Healthcare__catagory[17]="Medical Superintendent / Director"
	Healthcare__catagory[18]="Natural Therapy "
	Healthcare__catagory[19]="Nephrology "
	Healthcare__catagory[20]="Neurology"
	Healthcare__catagory[21]="Nursing"
	Healthcare__catagory[22]="Occupational Therapy"
	Healthcare__catagory[23]="Oncology"
	Healthcare__catagory[24]="Ophthalmology"
	Healthcare__catagory[25]="Orthopedics"
	Healthcare__catagory[26]="Pathology"
	Healthcare__catagory[27]="Pediatrics"
	Healthcare__catagory[28]="Pharmacy"
	Healthcare__catagory[29]="Physiotherapy"
	Healthcare__catagory[30]="Psychiatry"
	Healthcare__catagory[31]="Radiology"
	Healthcare__catagory[32]="Regulatory Affairs"
	Healthcare__catagory[33]="Surgery"
	Healthcare__catagory[34]="Other"
	
	
 //Marketing & Communications
	var MarketingCommunications__catagory = new Array();

	MarketingCommunications__catagory[0]="Business Alliances"
	MarketingCommunications__catagory[1]="Channel & Segment Management"
	MarketingCommunications__catagory[2]="Corp Communications"
	MarketingCommunications__catagory[3]="Direct Marketing"
	MarketingCommunications__catagory[4]="Events & Conferences"
	MarketingCommunications__catagory[5]="Market Research"
	MarketingCommunications__catagory[6]="Marketing Strategy"
	MarketingCommunications__catagory[7]="Media Planning"
	MarketingCommunications__catagory[8]="Product / Brand Management"
	MarketingCommunications__catagory[9]="Telemarketing"
	MarketingCommunications__catagory[10]="Trade Marketing"
	MarketingCommunications__catagory[11]="Internet Marketing"
	MarketingCommunications__catagory[12]="Advertising"
	MarketingCommunications__catagory[13]="Other"
	
	
 //	Top Management
var TopManagement__catagory = new Array();

	TopManagement__catagory[0]="Corporate Planning/Strategy"
	TopManagement__catagory[1]="Operations"      
	TopManagement__catagory[2]="Engg/ Production"
	TopManagement__catagory[3]="Quality"
	TopManagement__catagory[4]="Sales"
	TopManagement__catagory[5]="Finance"
	TopManagement__catagory[6]="Design (Production & Engg)"
	TopManagement__catagory[7]="HR"
	TopManagement__catagory[8]="Marketing"
	TopManagement__catagory[9]="Customer Service"
	TopManagement__catagory[10]="Other"
	

	//Media & Entertainment 
var MediaEntertainment__catagory = new Array();

	MediaEntertainment__catagory[0]="Anchoring "
	MediaEntertainment__catagory[1]="Editing"
	MediaEntertainment__catagory[2]="Film Making"
	MediaEntertainment__catagory[3]="Journalism / Writer"
	MediaEntertainment__catagory[4]="Lighting"
	MediaEntertainment__catagory[5]="Makeup"
	MediaEntertainment__catagory[6]="Photography"
	MediaEntertainment__catagory[7]="Production / Technical"
	MediaEntertainment__catagory[8]="Reporting"
	
	MediaEntertainment__catagory[9]="Support Staff"
	MediaEntertainment__catagory[10]="TV / Film"
	MediaEntertainment__catagory[11]="Other"
	
	
	//Oil & Gas
var OilGas__catagory = new Array();

	OilGas__catagory[0]="Construction of Pipelines"
	OilGas__catagory[1]="Environmental Science"
	OilGas__catagory[2]="Exploration"
	OilGas__catagory[3]="Geology and Geoinformatics"
	OilGas__catagory[4]="Land Cadastre"
	OilGas__catagory[5]="Mining and Earth Entrails"
	OilGas__catagory[6]="Offshore Drilling"
	OilGas__catagory[7]="Oil and Gas Transport System"
	OilGas__catagory[8]="Production and Process"
	OilGas__catagory[9]="QA/QC"
	OilGas__catagory[10]="Repair of Pipelines"
	OilGas__catagory[11]="Risk Assesment"
	OilGas__catagory[12]="Safety"
	OilGas__catagory[13]="Storage"
	OilGas__catagory[14]="Well Design/Examination"
	OilGas__catagory[15]="Other"


//Production/Manufacturing
var ProductionManufacturing__catagory = new Array();

	ProductionManufacturing__catagory[0]="Design Engineering"
	ProductionManufacturing__catagory[1]="Engineering"
	ProductionManufacturing__catagory[2]="Environment"
	ProductionManufacturing__catagory[3]="Equipment"
	ProductionManufacturing__catagory[4]="Health / Safety"
	ProductionManufacturing__catagory[5]="Industrial Engineering"
	ProductionManufacturing__catagory[6]="Inventory Control / Materials"
	ProductionManufacturing__catagory[7]="Metallurgy"
	ProductionManufacturing__catagory[8]="Packaging"
	ProductionManufacturing__catagory[9]="Plant Maintenance"
	ProductionManufacturing__catagory[10]="Procurement"
	ProductionManufacturing__catagory[11]="Product Development"
	ProductionManufacturing__catagory[12]="Production / Manufacturing / Maintenance"
	ProductionManufacturing__catagory[13]="QA / QC"
	ProductionManufacturing__catagory[14]="Service / Maintenance / Repair"
	ProductionManufacturing__catagory[15]="Store Keeper / Warehouse"
	ProductionManufacturing__catagory[17]="Workman / Foreman / Technician"
	ProductionManufacturing__catagory[18]="Other"


var Retail_catagory = new Array();

	Retail_catagory[0]="Accounts"
	Retail_catagory[1]="Billing"
	Retail_catagory[2]="Delivery"
	Retail_catagory[3]="Design"
	Retail_catagory[4]="Food Services "
	Retail_catagory[5]="Merchandise"
	Retail_catagory[6]="Packaging"
	Retail_catagory[7]="Project Management"
	Retail_catagory[8]="Sales / Marketing"
	Retail_catagory[9]="Stock / Inventory Management"
	Retail_catagory[10]="Support Staff"
	Retail_catagory[11]="Quality Assurance/Control"
	Retail_catagory[12]="Other "

var Automobiles_catagory = new Array();

	Automobiles_catagory[0]="Design"
	Automobiles_catagory[1]="Engineers"
	Automobiles_catagory[2]="Manufacturing"
	Automobiles_catagory[3]="Operations"
	Automobiles_catagory[4]="QA/QC"
	Automobiles_catagory[5]="Sales/Servicing"
	Automobiles_catagory[6]="Stock/Inventory Management"
	Automobiles_catagory[7]="Supervisors"
	Automobiles_catagory[8]="Others"
	
	
	
// Training & Education	

var TrainingEducation_catagory = new Array();

	TrainingEducation_catagory[0]="Admin"
	TrainingEducation_catagory[1]="Laboratory"
	TrainingEducation_catagory[2]="Library"
	TrainingEducation_catagory[3]="Speech Therapy"
	TrainingEducation_catagory[4]="Pathologist"
	TrainingEducation_catagory[5]="Support Staff"
	TrainingEducation_catagory[6]="Teaching"
	TrainingEducation_catagory[7]="Technical"
	TrainingEducation_catagory[8]="Translation"
	TrainingEducation_catagory[9]="Other "

var RealEstate_catagory = new Array();

	RealEstate_catagory[0]="Administration / HR Staff"
	RealEstate_catagory[1]="Architecture / Interiors"
	RealEstate_catagory[2]="Billing / Costing"
	RealEstate_catagory[3]="Civil  / Design"
	RealEstate_catagory[4]="Electrical-Power & Telecom"
	RealEstate_catagory[5]="Environmental"
	RealEstate_catagory[6]="Fabrication"
	RealEstate_catagory[7]="Finance & Accounts Staff"
	RealEstate_catagory[8]="Landscaping"
	RealEstate_catagory[9]="Legal"
	RealEstate_catagory[10]="Logistic"
	RealEstate_catagory[11]="Plumbing"
	RealEstate_catagory[12]="Therapist"
	RealEstate_catagory[13]="Quality"
	RealEstate_catagory[14]="Sales & Marketing "
	RealEstate_catagory[15]="Support Staff"
	RealEstate_catagory[16]="Survey"
	RealEstate_catagory[17]="Other "
	

var Aviation_catagory = new Array();

	Aviation_catagory[0]="HR/Admin"
	Aviation_catagory[1]="Air Hostess "
	Aviation_catagory[2]="Air Traffic Control"
	Aviation_catagory[3]="Cabin Staff"
	Aviation_catagory[4]="Cargo"
	Aviation_catagory[5]="Hospitality"
	Aviation_catagory[6]="House Keeping"
	Aviation_catagory[7]="QA/QC"
	Aviation_catagory[8]="Risk Management"
	Aviation_catagory[9]="Service / Maintenance"
	Aviation_catagory[10]="Supply"
	Aviation_catagory[11]="Training"
	Aviation_catagory[12]="Support Staff"
	Aviation_catagory[13]="Other"
	
var Banking_catagory = new Array();

	Banking_catagory[0]="Actuarial"
	Banking_catagory[1]="Brokerage"
	Banking_catagory[2]="Claims / Collection Management"
	Banking_catagory[3]="Consumer Banking"
	Banking_catagory[4]="Corporate Banking"
	Banking_catagory[5]="Debt Issue Management"
	Banking_catagory[6]="Forex "
	Banking_catagory[7]="Investment Banking"
	Banking_catagory[8]="IPO "
	Banking_catagory[9]="Loans "
	Banking_catagory[10]="Merchant Banking "
	
	Banking_catagory[11]="Mergers & Acquisitions"
	Banking_catagory[12]="Mutual Funds"
	Banking_catagory[13]="Personal / Retail"
	
	
var Pharma_catagory = new Array();

	Pharma_catagory[0]="Documentation/Medical Writing"
	Pharma_catagory[1]="Goods Manufacturing Practices(GMP)"
	Pharma_catagory[2]="Homoeopaths"
	Pharma_catagory[3]="Laboratory Staff"
	Pharma_catagory[4]="Personal Banking "
	Pharma_catagory[5]="Plant Maintenance"
	Pharma_catagory[6]="Portfolio / Fund Management"
	Pharma_catagory[7]="Production"
	Pharma_catagory[8]="Project / Structured Finance"
	Pharma_catagory[9]="QA/QC"
	Pharma_catagory[10]="Regulatory "
	
	Pharma_catagory[11]="Relationship Management"
	Pharma_catagory[12]="Research"
	Pharma_catagory[13]="Risk Management"
	Pharma_catagory[14]="Sales/Marketing"
	Pharma_catagory[15]="Stock Broking "
	Pharma_catagory[16]="Support/Admin Staff"
	Pharma_catagory[17]="Technical Assistant"
	Pharma_catagory[18]="Treasury"
	Pharma_catagory[19]="Underwriter"
	Pharma_catagory[20]="Other"
	
var Sales_catagory = new Array();
	Sales_catagory[0]="Accounting/Financial Products "
	Sales_catagory[1]="Advertising/Media/Arts"
	Sales_catagory[2]="Banquet Sales"
	Sales_catagory[3]="Channel Sales"
	Sales_catagory[4]="Critical Care"
	Sales_catagory[5]="Client Servicing"
	Sales_catagory[6]="Corporate Sales "
	Sales_catagory[7]="Counter Sales "
	Sales_catagory[8]="Direct/Commission Sales "
	Sales_catagory[9]="Engineering/Manufacturing "
	Sales_catagory[10]="FMCG Sales "
	Sales_catagory[11]="Healthcare Sales "
	Sales_catagory[12]="House Keeping"
	Sales_catagory[13]="Institutional Sales"
	Sales_catagory[14]="International Business"
	Sales_catagory[15]="Logistics/Transport/Supply  "
	Sales_catagory[16]="Real Estate Sales"
	Sales_catagory[17]="Tele Sales"
	Sales_catagory[18]="Telecommunications"
	Sales_catagory[19]="Other"
	

var Telecommunications_catagory = new Array();

	Telecommunications_catagory[0]="Admin"
	Telecommunications_catagory[1]="GPRS"
	Telecommunications_catagory[2]="GSM"
	Telecommunications_catagory[3]="H/W Installation/Maintenance"
	Telecommunications_catagory[4]="Hardware Design"
	Telecommunications_catagory[5]="Network Planning / Administration"
	Telecommunications_catagory[6]="QA / QC"
	Telecommunications_catagory[7]="RF Engineering "
	Telecommunications_catagory[8]="Specialist"
	Telecommunications_catagory[9]="Security "
	Telecommunications_catagory[10]="Support Staff"
	Telecommunications_catagory[11]="Switching / Router "
	Telecommunications_catagory[12]="Trainer / Faculty"
	Telecommunications_catagory[13]="Other"

var DesignArchitecture_catagory = new Array();

	DesignArchitecture_catagory[0]="Architecture"
	DesignArchitecture_catagory[1]="Interior"
	DesignArchitecture_catagory[2]="Landscaping"
	DesignArchitecture_catagory[3]="Textile"
	DesignArchitecture_catagory[4]="Exterior"
	DesignArchitecture_catagory[5]="Fashion"
	DesignArchitecture_catagory[6]="Furniture"
	DesignArchitecture_catagory[7]="Jewellery"
	DesignArchitecture_catagory[8]="Corporate"
	DesignArchitecture_catagory[9]="Other"
   
 
var GemsJewellery_catagory = new Array();

	GemsJewellery_catagory[0]="Accounts"
	GemsJewellery_catagory[1]="Administration/HR"
	GemsJewellery_catagory[2]="Diamond Shaping "
	GemsJewellery_catagory[3]="Front Office "
	GemsJewellery_catagory[4]="Jewellery Making "
	GemsJewellery_catagory[5]="Middle Management "
	GemsJewellery_catagory[6]="Production"
	GemsJewellery_catagory[7]="QA / QC"
	GemsJewellery_catagory[8]="Sales & Marketing  "
	GemsJewellery_catagory[9]="Store Keeping"
	GemsJewellery_catagory[10]="Other"

	var RD_catagory = new Array();

	RD_catagory[0]="Basic Research"
	RD_catagory[1]="Bio-Technology Research "
	RD_catagory[2]="Chemical Research "
	RD_catagory[3]="Clinical Research "
	RD_catagory[4]="Data Management/Statistics"
	RD_catagory[5]="Documentation/ Medical Writing"
	RD_catagory[6]="Drug Regulation"
	RD_catagory[7]="Laboratory Staff"
	RD_catagory[8]="Lecturing/Teaching "
	RD_catagory[9]="Pharmaceutical Research"
	RD_catagory[10]="Quality Assurance/Control"
	RD_catagory[11]="Support Staff"
	RD_catagory[12]="Other"
	
	var mySelect = document.getElementsByTagName("SELECT")["Catagory"]
	var OldChilds = mySelect.childNodes.length
	
	for(loop = 0; loop < OldChilds ; loop++)
	{
		mySelect.removeChild(mySelect.firstChild)
	}
	//The above loop (i.e mySelect.removeChild(mySelect.firstChild)) removes the default label also. So here explicitly we create that default label.
	myOption = document.createElement("option")
	if (window.ActiveXObject)
	{
		myOption.innerText="...select category..."
	}
	else
		myOption.text="...select category..."
	//myOption.innerText="...select category..."
	myOption.value=""
	myOption.selected="selected"
	mySelect.appendChild(myOption);
	var functionalArea=document.getElementById("functionalArea").value ;
	var industry=document.getElementById("industry").value;
	if( industry == "")
	{
			alert("Please select industry....");
	}else if (industry == "NONIT")
		{
			if(functionalArea == "")
			{
				alert("Please select functional area...");
			}
			else if (functionalArea == "Legal/Law")
			{
				ArrayLength=LegalLaw_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=LegalLaw_catagory[loop]
							}
							else
								myOption.text=LegalLaw_catagory[loop]
							//myOption.innerText=LegalLaw_catagory[loop]
							myOption.value=LegalLaw_catagory[loop]
							mySelect.appendChild(myOption);
						
				}
			}
			else if (functionalArea == "Insurance")
			{
				ArrayLength=Insurance_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Insurance_catagory[loop]
							}
							else
								myOption.text=Insurance_catagory[loop]
							//myOption.innerText=Insurance_catagory[loop]
							myOption.value=Insurance_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Exports/Imports")
			{
				ArrayLength=ExportImports_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=ExportImports_catagory[loop]
							}
							else
								myOption.text=ExportImports_catagory[loop]
							//myOption.innerText=ExportImports_catagory[loop]
							myOption.value=ExportImports_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Healthcare")
			{
				ArrayLength=Healthcare__catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Healthcare__catagory[loop]
							}
							else
								myOption.text=Healthcare__catagory[loop]
							//myOption.innerText=Healthcare__catagory[loop]
							myOption.value=Healthcare__catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
				
			else if (functionalArea == "Marketing")
			{
				ArrayLength=MarketingCommunications__catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=MarketingCommunications__catagory[loop]
							}
							else
								myOption.text=MarketingCommunications__catagory[loop]
							//myOption.innerText=MarketingCommunications__catagory[loop]
							myOption.value=MarketingCommunications__catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Top Management")
			{
				ArrayLength=TopManagement__catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=TopManagement__catagory[loop]
							}
							else
								myOption.text=TopManagement__catagory[loop]
							//myOption.innerText=TopManagement__catagory[loop]
							myOption.value=TopManagement__catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Media & Entertainment")
			{
				ArrayLength=MediaEntertainment__catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=MediaEntertainment__catagory[loop]
							}
							else
								myOption.text=MediaEntertainment__catagory[loop]
							//myOption.innerText=MediaEntertainment__catagory[loop]
							myOption.value=MediaEntertainment__catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Oil & Gas")
			{
				ArrayLength=OilGas__catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=OilGas__catagory[loop]
							}
							else
								myOption.text=OilGas__catagory[loop]
							//myOption.innerText=OilGas__catagory[loop]
							myOption.value=OilGas__catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Production/Manufacturing")
			{
				ArrayLength=ProductionManufacturing__catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=ProductionManufacturing__catagory[loop]
							}
							else
								myOption.text=ProductionManufacturing__catagory[loop]
							//myOption.innerText=ProductionManufacturing__catagory[loop]
							myOption.value=ProductionManufacturing__catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}

			else if (functionalArea == "Retail")
			{
				ArrayLength=Retail_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Retail_catagory[loop]
							}
							else
								myOption.text=Retail_catagory[loop]
							//myOption.innerText=Retail_catagory[loop]
							myOption.value=Retail_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}else if (functionalArea == "Automobiles")
			{
				ArrayLength=Automobiles_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Automobiles_catagory[loop]
							}
							else
								myOption.text=Automobiles_catagory[loop]
							//myOption.innerText=Automobiles_catagory[loop]
							myOption.value=Automobiles_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}else if (functionalArea == "Training & Education")
			{
				ArrayLength=TrainingEducation_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=TrainingEducation_catagory[loop]
							}
							else
								myOption.text=TrainingEducation_catagory[loop]
							//myOption.innerText=TrainingEducation_catagory[loop]
							myOption.value=TrainingEducation_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}else if (functionalArea == "Realestate")
			{
				ArrayLength=RealEstate_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=RealEstate_catagory[loop]
							}
							else
								myOption.text=RealEstate_catagory[loop]
							//myOption.innerText=RealEstate_catagory[loop]
							myOption.value=RealEstate_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}else if (functionalArea == "Aviation")
			{
				ArrayLength=Aviation_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Aviation_catagory[loop]
							}
							else
								myOption.text=Aviation_catagory[loop]
							//myOption.innerText=Aviation_catagory[loop]
							myOption.value=Aviation_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}else if (functionalArea == "Banking/Financial Services")
			{
				ArrayLength=Banking_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Banking_catagory[loop]
							}
							else
								myOption.text=Banking_catagory[loop]
							//myOption.innerText=Banking_catagory[loop]
							myOption.value=Banking_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}else if (functionalArea == "Pharma")
			{
				ArrayLength=Pharma_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Pharma_catagory[loop]
							}
							else
								myOption.text=Pharma_catagory[loop]
							//myOption.innerText=Pharma_catagory[loop]
							myOption.value=Pharma_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}	
			else if (functionalArea == "Gems & Jewellery")
			{
				ArrayLength=GemsJewellery_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=GemsJewellery_catagory[loop]
							}
							else
								myOption.text=GemsJewellery_catagory[loop]
							//myOption.innerText=GemsJewellery_catagory[loop]
							myOption.value=GemsJewellery_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Sales")
			{
				ArrayLength=Sales_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Sales_catagory[loop]
							}
							else
								myOption.text=Sales_catagory[loop]
							//myOption.innerText=Sales_catagory[loop]
							myOption.value=Sales_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Telecommunications")
			{
				ArrayLength=Telecommunications_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=Telecommunications_catagory[loop]
							}
							else
								myOption.text=Telecommunications_catagory[loop]
							//myOption.innerText=Telecommunications_catagory[loop]
							myOption.value=Telecommunications_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "Design & Architecture")
			{
				ArrayLength=DesignArchitecture_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=DesignArchitecture_catagory[loop]
							}
							else
								myOption.text=DesignArchitecture_catagory[loop]
							//myOption.innerText=DesignArchitecture_catagory[loop]
							myOption.value=DesignArchitecture_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
			else if (functionalArea == "R & D")
			{
				ArrayLength=RD_catagory.length
				for(loop=0; loop<ArrayLength; loop++)
				{
							
							myOption = document.createElement("option")
							if (window.ActiveXObject)
							{
								myOption.innerText=RD_catagory[loop]
							}
							else
								myOption.text=RD_catagory[loop]
							//myOption.innerText=RD_catagory[loop]
							myOption.value=RD_catagory[loop]
							mySelect.appendChild(myOption)
						
				}
			}
		}//NON-IT if Ends	
	
}



var xmlHttp

function GetXmlHttpObject()
{ 
	var objXMLHttp = null
	if (window.XMLHttpRequest)
	{
		objXMLHttp = new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}
function checkAvailability()
{
	var logname = document.getElementById("loginName").value
	
	if(logname.length>5)	 
	{
	 
		/*if(logname == "")
		{
			document.getElementById("available").style.display ="none";
			document.getElementById("notavailable").style.display ="none";
			alert("please Enter Login Name")
			return
		}
		else*/
		 if(logname.length<6)
		{
			document.getElementById("available").style.display ="none";
			document.getElementById("notavailable").style.display ="none";
			alert("Login Name must be atleast 6 characters")
			return
		}
		else if(logname.length>25)
		{
			document.getElementById("available").style.display ="none";
			document.getElementById("notavailable").style.display ="none";
			alert( "The Login Name should be atmost 50 characters long.\n");
			return
		}
		else if(specialchar(logname)==false)
		{
			document.getElementById("available").style.display ="none";
			document.getElementById("notavailable").style.display ="none";
			alert( "Invalid username, No special characters allowed except '_' , \n should start with Alphabet \n");
			document.getElementById("loginName").focus();
			return		
		}	
		else
		{
			xmlHttp = GetXmlHttpObject()
			if (xmlHttp==null)
			{
				alert ("Browser does not support HTTP Request")
				return
			} 		
			var url="/AdPortal/CheckJobseekerLoginNameAvailabillity.jsp"
			lname = escape(logname)
			url = url+"?logname="+logname
			
		
			xmlHttp.onreadystatechange = stateChanged_CheckLoginName
			xmlHttp.open("GET",url,true)
			xmlHttp.send(null)
		}
	}
}
function stateChanged_CheckLoginName() 
{ 	
	//document.getElementById("checkavailabilty").value = "checking..."
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		var text=xmlHttp.responseText
		// code for IE
		if (window.ActiveXObject)
		{
			var doc=new ActiveXObject("Microsoft.XMLDOM");
			doc.async="false";
			doc.loadXML(text);
		}
		// code for Mozilla, Firefox, Opera, etc.
		else
		{
			var parser=new DOMParser();
			var doc=parser.parseFromString(text,"text/xml");			
		}

		// documentElement always represents the root node
		var y=doc.documentElement;
		if(y.childNodes.length != 0)
		{//alert("hhh...hfd...."+y.getElementsByTagName("data1")[0].childNodes[0].nodeValue)
			
			var loginavail= y.getElementsByTagName("data1")[0].childNodes[0].nodeValue			
			if(loginavail == "false" )
			{
				document.getElementById("available").style.display ="";
				document.getElementById("notavailable").style.display ="none";
			}
			else
			{
				document.getElementById("available").style.display ="none";
				document.getElementById("notavailable").style.display ="";
			}			
			//document.getElementById("checkavailabilty").value = "Check Availabilty"				
		}
	} 
}



