function calljobcity(from)
{
	document.frm_jobapp.hid_city.value="No";//Added by RAJESH(6/4/02)-To Initialise hidden field to check if city exists for this job profile
	
	var profid=document.frm_jobapp.sct_jobprofile[document.frm_jobapp.sct_jobprofile.selectedIndex].value;
	
	//START - JOBTYPE
	
	//Reset jobtype list	
	for (i=document.frm_jobapp.sct_jobtype.length;i>0;i--)
	{
		document.frm_jobapp.sct_jobtype.options[0] = null;
	}	
	document.frm_jobapp.sct_jobtype.options[0]=new Option("Select Job Type","0");
	
	//assinging values at run time
	for (var i=0;i<=document.frm_jobapp.length-1;i++)
	{
		if ("hidjobtype_"+profid==document.frm_jobapp.elements[i].name)
		{
			var mstr_jobtype=new String(document.frm_jobapp.elements[i].value)
			var mstr_jobtypearr=mstr_jobtype.split(",")
			document.frm_jobapp.sct_jobtype.options.length=mstr_jobtypearr.length+1;
			for(var iloop=0;iloop<=mstr_jobtypearr.length-1;iloop++)
			{
				var valOption1 = new Option(mstr_jobtypearr[iloop],mstr_jobtypearr[iloop]);
				document.frm_jobapp.sct_jobtype.options[iloop+1]=valOption1;
			}					
		}
	}	
	//END - JOBTYPE

	//START - JOBCITY
	
	//Reset jobcity list	
	for (i=document.frm_jobapp.sct_jobcity.length;i>0;i--)
	{
		document.frm_jobapp.sct_jobcity.options[0] = null;
	}	
	document.frm_jobapp.sct_jobcity.options[0]=new Option("Select Job City","0");
	
	//assinging values at run time
	for (var i=0;i<=document.frm_jobapp.length-1;i++)
	{
		if ("hid_"+profid==document.frm_jobapp.elements[i].name)
		{
			
			var mstr_jobcity=new String(document.frm_jobapp.elements[i].value)
			if (mstr_jobcity!="") //ADDED BY RAJESH - if there is city defined only then it will be populated
			{
				document.frm_jobapp.hid_city.value="Yes";
				var mstr_jobcityarr=mstr_jobcity.split(",")
				document.frm_jobapp.sct_jobcity.options.length=mstr_jobcityarr.length+1;
				for(var iloop=0;iloop<=mstr_jobcityarr.length-1;iloop++)
				{
					var mstr_jobcityarray =mstr_jobcityarr[iloop].split("_");
					var valOption1 = new Option(mstr_jobcityarray[1],mstr_jobcityarray[0]);
					document.frm_jobapp.sct_jobcity.options[iloop+1]=valOption1;
				}
			}	
		}
	}	
	//END - JOBCITY
	
	
	//START - for skillset
	//assinging values at run time
	for (var i=0;i<=document.frm_jobapp.length-1;i++)
	{
		if ("hidskillset_"+profid==document.frm_jobapp.elements[i].name)
		{
			var mstr_skillset=new String(document.frm_jobapp.elements[i].value)
			var mstr_skillsetarr=mstr_skillset.split("~")
			for(var iloop=0;iloop<=mstr_skillsetarr.length-1;iloop++)
			{
				var mstr_skillsetarray =mstr_skillsetarr[iloop].split("_");
				if (profid==mstr_skillsetarray[0])
				{
					document.frm_jobapp.txa_skillset.value=mstr_skillsetarray[1];
				}
			}
		}
	}
	//END - for skillset
}

function validate()
{	
	document.frm_jobapp.hid_submit.value=""; //---TESTING
	document.frm_jobapp.hid_testing.value="1"; //---TESTING
	
	//to ensure job proflie has selected
	if (document.frm_jobapp.sct_jobprofile[document.frm_jobapp.sct_jobprofile.selectedIndex].value == "0")
	{
		alert ("Please Select the Job Profile");
		document.frm_jobapp.sct_jobprofile.focus();
		return false;
	}
	
	//to ensure job type has selected
	if (document.frm_jobapp.sct_jobtype[document.frm_jobapp.sct_jobtype.selectedIndex].value == "0")
	{
		alert ("Please Select the Job Type");
		document.frm_jobapp.sct_jobtype.focus();
		return false;
	}
	
	//to ensure job city has selected -ADDED BY RAJESH(6/4/02)
	if (document.frm_jobapp.hid_city.value=="Yes")
	{
		if (document.frm_jobapp.sct_jobcity[document.frm_jobapp.sct_jobcity.selectedIndex].value == "0")
		{
			alert ("Please Select the Job City");
			document.frm_jobapp.sct_jobcity.focus();
			return false;
		}
	}
	
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 2"; //---TESTING
	
	//-----PERSONAL PROFILE-----
	
	//to ensure candidate name has entered
	if (checkBlankField(document.frm_jobapp.txt_cname.value) == false)
	{
		alert ("Please Enter Name");
		document.frm_jobapp.txt_cname.focus();
		return false;
	}
	
	//to ensure gender has selected
	if (document.frm_jobapp.sct_gender[document.frm_jobapp.sct_gender.selectedIndex].value == "")
	{
		alert ("Please Select Gender");
		document.frm_jobapp.sct_gender.focus();
		return false;
	}
	
	//START - to ensure date of birth has entered and valid value has entered
	
	//to ensure month has selected
	if (document.frm_jobapp.sct_birthmonth[document.frm_jobapp.sct_birthmonth.selectedIndex].value == "")
	{
		alert ("Please Select Month");
		document.frm_jobapp.sct_birthmonth.focus();
		return false;
	}
	
	//to ensure day has selected
	if (document.frm_jobapp.sct_birthday[document.frm_jobapp.sct_birthday.selectedIndex].value == "")
	{
		alert ("Please Select Day");
		document.frm_jobapp.sct_birthday.focus();
		return false;
	}
	
	//to ensure year has entered
	if (checkBlankField(document.frm_jobapp.txt_birthyear.value) == false)
	{
		alert ("Please Enter Year");
		document.frm_jobapp.txt_birthyear.focus();
		return false;
	}
	
	//to ensure valid value has entered for year
	if ((checkPositiveInteger(document.frm_jobapp.txt_birthyear.value) == false) || (document.frm_jobapp.txt_birthyear.value.length != 4)||(document.frm_jobapp.txt_birthyear.value<1930))
	{
		alert ("Please Enter valid value for Year");
		document.frm_jobapp.txt_birthyear.focus();
		document.frm_jobapp.txt_birthyear.select();
		return false;
	}
	
	//to ensure a valid date has entered
	
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 3"; //---TESTING

	var birthdate = document.frm_jobapp.sct_birthmonth[document.frm_jobapp.sct_birthmonth.selectedIndex].value + "/" + document.frm_jobapp.sct_birthday[document.frm_jobapp.sct_birthday.selectedIndex].value + "/"  + document.frm_jobapp.txt_birthyear.value;
	
	if (valid_date(birthdate) == false)
	{
		alert ("Please Enter valid Date");
		document.frm_jobapp.sct_birthmonth.focus();
		return false;
	}
	
	//to store server date in a variable
	var curdate=new Date(document.frm_jobapp.hid_date.value);
	var dobdate = new Date(birthdate);
	
	if (dobdate >= curdate)
	{
		alert ("Birth date can't be a today's or future date");
		document.frm_jobapp.sct_birthmonth.focus();
		return false;
	}
	
	//END - to ensure date of birth has entered and valid value has entered
	
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 4"; //---TESTING
	
	//to ensure email id has entered
	if (checkBlankField(document.frm_jobapp.txt_cemail.value) == false)
	{
		alert ("Please Enter Email ID");
		document.frm_jobapp.txt_cemail.focus();
		return false;
	}
	
	//to ensure valid email id has entered
	if (valid_email(document.frm_jobapp.txt_cemail.value) == false)
	{
		alert ("Please Enter valid Email ID");
		document.frm_jobapp.txt_cemail.focus();
		document.frm_jobapp.txt_cemail.select();
		return false;
	}
	
	//to ensure any one contact no has entered
	if (checkBlankField(document.frm_jobapp.txt_cphone.value) == false && checkBlankField(document.frm_jobapp.txt_cmobile.value) == false) 
	{
		alert ("Please Enter either Telephone Number or Mobile Number");
		document.frm_jobapp.txt_cphone.focus();
		document.frm_jobapp.txt_cphone.select();
		return false;
	
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 5"; //---TESTING
	
	//to ensure valid value has entered for telephone, if entered
	if (checkBlankField(document.frm_jobapp.txt_cphone.value) != false)
	{
		if(checkPhoneNumber(document.frm_jobapp.txt_cphone.value)==false)
		{
			alert ("Please Enter valid Telephone Number");
			document.frm_jobapp.txt_cphone.focus();
			document.frm_jobapp.txt_cphone.select();
			return false;
		}
	}
	
	//to ensure valid value has entered for mobile, if entered
	if (checkBlankField(document.frm_jobapp.txt_cmobile.value) != false)
	{
		if(checkPhoneNumber(document.frm_jobapp.txt_cmobile.value)==false)
		{
			alert ("Please Enter valid Mobile Number");
			document.frm_jobapp.txt_cmobile.focus();
			document.frm_jobapp.txt_cmobile.select();
			return false;
		}
	}
	

	//to ensure address has entered
	if (isNaN(document.frm_jobapp.txa_cadd.value) == false)
	{
		alert ("Please Enter Address");
		document.frm_jobapp.txa_cadd.focus();
		document.frm_jobapp.txa_cadd.select();
		return false;
	}
	
	//to ensure address is not more than 300 characters
	if (document.frm_jobapp.txa_cadd.value.length > 300)
	{
		alert ("Address can't have more than 300 characters. You have entered "+ document.frm_jobapp.txa_cadd.value.length + " characters");
		document.frm_jobapp.txa_cadd.focus();
		return false;
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 6"; //---TESTING
	//to ensure city has entered
	if (checkBlankField(document.frm_jobapp.txt_ccity.value) == false)
	{
		alert ("Please Enter City");
		document.frm_jobapp.txt_ccity.focus();
		return false;
	}
	
	//to ensure state has selected
	if (document.frm_jobapp.sct_cstate[document.frm_jobapp.sct_cstate.selectedIndex].value == "")
	{
		alert ("Please Select State");
		document.frm_jobapp.sct_cstate.focus();
		return false;
	}
	
	//to ensure pincode has entered
	if (checkBlankField(document.frm_jobapp.txt_cpincode.value) == false)
	{
		alert ("Please Enter Pincode");
		document.frm_jobapp.txt_cpincode.focus();
		return false;
	}
	
	//to ensure valid pincode is entered
	if (checkBlankField(document.frm_jobapp.txt_cpincode.value) != false)
	{
		if((checkPositiveInteger(document.frm_jobapp.txt_cpincode.value)==false))
		{
			alert ("Please Enter valid Pincode");
			document.frm_jobapp.txt_cpincode.focus();
			document.frm_jobapp.txt_cpincode.select();
			return false;
		}
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 7"; //---TESTING
	//to ensure permanent address has entered
	if (isNaN(document.frm_jobapp.txa_cperadd.value) == false)
	{
		alert ("Please Enter Permanent Address");
		document.frm_jobapp.txa_cperadd.focus();
		document.frm_jobapp.txa_cperadd.select();
		return false;
	}
	
	//to ensure permanent address is not more than 300 characters
	if (document.frm_jobapp.txa_cperadd.value.length > 300)
	{
		alert ("Permanent Address can't have more than 300 characters. You have entered "+ document.frm_jobapp.txa_cperadd.value.length + " characters");
		document.frm_jobapp.txa_cperadd.focus();
		return false;
	}
	
	//to ensure permanent city has entered
	if (checkBlankField(document.frm_jobapp.txt_cpercity.value) == false)
	{
		alert ("Please Enter Permanent City");
		document.frm_jobapp.txt_cpercity.focus();
		return false;
	}
	
	//to ensure permanent state has selected
	if (document.frm_jobapp.sct_cperstate[document.frm_jobapp.sct_cperstate.selectedIndex].value == "")
	{
		alert ("Please Select Permanent State");
		document.frm_jobapp.sct_cperstate.focus();
		return false;
	}
	
	//to ensure permanent pincode has entered
	if (checkBlankField(document.frm_jobapp.txt_cperpincode.value) == false)
	{
		alert ("Please Enter Pincode");
		document.frm_jobapp.txt_cperpincode.focus();
		return false;
	}
	
	//to ensure valid pincode is entered
	if (checkPositiveInteger(document.frm_jobapp.txt_cperpincode.value) != false)
	{
		if((checkPhoneNumber(document.frm_jobapp.txt_cperpincode.value)==false))
		{
			alert ("Please Enter valid Pincode");
			document.frm_jobapp.txt_cperpincode.focus();
			document.frm_jobapp.txt_cperpincode.select();
			return false;
		}
	}
document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 8"; //---TESTING
	//-----EDUCATIONAL QUALIFICATION-----
	
	//Start - to ensure secondary level values have entered
	
	//to ensure year of passing has entered
	
	if (checkBlankField(document.frm_jobapp.txt_xyear.value) == false)
	{
		alert ("Please Enter Year of Passing");
		document.frm_jobapp.txt_xyear.focus();
		return false;
	}
	
	//to ensure valid value has entered for year
	if ((checkPositiveInteger(document.frm_jobapp.txt_xyear.value) == false) || (document.frm_jobapp.txt_xyear.value.length != 4)||(document.frm_jobapp.txt_xyear.value<1950))
	{
		alert ("Please Enter valid value for Year of Passing");
		document.frm_jobapp.txt_xyear.focus();
		document.frm_jobapp.txt_xyear.select();
		return false;
	}
	
	//to esnure board name has entered
	if (checkBlankField(document.frm_jobapp.txt_xboard.value) == false)
	{
		alert ("Please Enter Institute / Board Name");
		document.frm_jobapp.txt_xboard.focus();
		return false;
	}
	
	//to ensure elective subjects has entered
	if (checkBlankField(document.frm_jobapp.txt_xsubjects.value) == false)
	{
		alert ("Please Enter Elective Subjects");
		document.frm_jobapp.txt_xsubjects.focus();
		return false;
	}
	
	//to ensure aggregate % has entered
	if (checkBlankField(document.frm_jobapp.txt_xaggregate.value) == false)
	{
		alert ("Please Enter Aggregate %");
		document.frm_jobapp.txt_xaggregate.focus();
		return false;
	}
	
	//to ensure valid value has entered for aggregate %
	if ((checkPositiveInteger(document.frm_jobapp.txt_xaggregate.value) == false) || (document.frm_jobapp.txt_xaggregate.value > 100) || (document.frm_jobapp.txt_xaggregate.value < 0))
	{
		alert ("Please Enter valid value for Aggregate %");
		document.frm_jobapp.txt_xaggregate.focus();
		document.frm_jobapp.txt_xaggregate.select();
		return false;
	}
	
	//to ensure maths % has entered
	if (checkBlankField(document.frm_jobapp.txt_xmaths.value) == false)
	{
		alert ("Please Enter Maths %");
		document.frm_jobapp.txt_xmaths.focus();
		return false;
	}
	
	//to ensure valid value has entered for maths %
	if ((checkPositiveInteger(document.frm_jobapp.txt_xmaths.value) == false) || (document.frm_jobapp.txt_xmaths.value > 100) || (document.frm_jobapp.txt_xmaths.value < 0))
	{
		alert ("Please Enter valid value for Maths %");
		document.frm_jobapp.txt_xmaths.focus();
		document.frm_jobapp.txt_xmaths.select();
		return false;
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 9"; //---TESTING
	//END - to ensure secondary level values have entered
	

	//Start - to ensure higher secondary level values have entered
	
	//to ensure year of passing has entered
	if (checkBlankField(document.frm_jobapp.txt_xiiyear.value) == false)
	{
		alert ("Please Enter Year of Passing");
		document.frm_jobapp.txt_xiiyear.focus();
		return false;
	}
	
	//to ensure valid value has entered for year
	if ((checkPositiveInteger(document.frm_jobapp.txt_xiiyear.value) == false) || (document.frm_jobapp.txt_xiiyear.value.length != 4)||(document.frm_jobapp.txt_xiiyear.value<1950))
	{
		alert ("Please Enter valid value for Year of Passing");
		document.frm_jobapp.txt_xiiyear.focus();
		document.frm_jobapp.txt_xiiyear.select();
		return false;
	}
	
	//to esnure board name has entered
	if (checkBlankField(document.frm_jobapp.txt_xiiboard.value) == false)
	{
		alert ("Please Enter Institute / Board Name");
		document.frm_jobapp.txt_xiiboard.focus();
		return false;
	}
	
	//to ensure specialization has selected
	if (document.frm_jobapp.sct_xiispecialization[document.frm_jobapp.sct_xiispecialization.selectedIndex].value == "")
	{
		alert ("Please Select Specialization");
		document.frm_jobapp.sct_xiispecialization.focus();
		return false;
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 10"; //---TESTING
	//to ensure elective subjects has entered
	if (checkBlankField(document.frm_jobapp.txt_xiisubjects.value) == false)
	{
		alert ("Please Enter Elective Subjects");
		document.frm_jobapp.txt_xiisubjects.focus();
		return false;
	}
	
	//to ensure aggregate % has entered
	if (checkBlankField(document.frm_jobapp.txt_xiiaggregate.value) == false)
	{
		alert ("Please Enter Aggregate %");
		document.frm_jobapp.txt_xiiaggregate.focus();
		return false;
	}
	
	//to ensure valid value has entered for aggregate %
	if ((checkPositiveInteger(document.frm_jobapp.txt_xiiaggregate.value) == false) || (document.frm_jobapp.txt_xiiaggregate.value > 100) || (document.frm_jobapp.txt_xiiaggregate.value < 0))
	{
		alert ("Please Enter valid value for Aggregate %");
		document.frm_jobapp.txt_xiiaggregate.focus();
		document.frm_jobapp.txt_xiiaggregate.select();
		return false;
	}
	
	//to ensure maths % has entered
	if (checkBlankField(document.frm_jobapp.txt_xiimaths.value) == false)
	{
		alert ("Please Enter Maths %");
		document.frm_jobapp.txt_xiimaths.focus();
		return false;
	}
	
	//to ensure valid value has entered for maths %
	if ((checkPositiveInteger(document.frm_jobapp.txt_xiimaths.value) == false) || (document.frm_jobapp.txt_xiimaths.value > 100) || (document.frm_jobapp.txt_xiimaths.value < 0))
	{
		alert ("Please Enter valid value for Maths %");
		document.frm_jobapp.txt_xiimaths.focus();
		document.frm_jobapp.txt_xiimaths.select();
		return false;
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 11"; //---TESTING
	//END - to ensure higher secondary level values have entered

	//START - to ensure graduation details have entered
	
	//to ensure year of passing has entered
	if (checkBlankField(document.frm_jobapp.txt_gyear.value) == false)
	{
		alert ("Please Enter Year of Passing");
		document.frm_jobapp.txt_gyear.focus();
		return false;
	}
	
	//to ensure valid value has entered for year
	if ((checkPositiveInteger(document.frm_jobapp.txt_gyear.value) == false) || (document.frm_jobapp.txt_gyear.value.length != 4)||(document.frm_jobapp.txt_gyear.value<1955))
	{
		alert ("Please Enter valid value for Year of Passing");
		document.frm_jobapp.txt_gyear.focus();
		document.frm_jobapp.txt_gyear.select();
		return false;
	}
	
	//to esnure college name has entered
	if (checkBlankField(document.frm_jobapp.txt_gcollege.value) == false)
	{
		alert ("Please Enter College / University Name");
		document.frm_jobapp.txt_gcollege.focus();
		return false;
	}
	
	//to ensure elective subjects has entered
	if (checkBlankField(document.frm_jobapp.txt_gsubjects.value) == false)
	{
		alert ("Please Enter Elective Subjects");
		document.frm_jobapp.txt_gsubjects.focus();
		return false;
	}
	
	//to ensure aggregate % has entered
	if (checkBlankField(document.frm_jobapp.txt_gaggregate.value) == false)
	{
		alert ("Please Enter Aggregate %");
		document.frm_jobapp.txt_gaggregate.focus();
		return false;
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 12"; //---TESTING
	//to ensure valid value has entered for aggregate %
	if ((checkPositiveInteger(document.frm_jobapp.txt_gaggregate.value) == false) || (document.frm_jobapp.txt_gaggregate.value > 100) || (document.frm_jobapp.txt_gaggregate.value < 0))
	{
		alert ("Please Enter valid value for Aggregate %");
		document.frm_jobapp.txt_gaggregate.focus();
		document.frm_jobapp.txt_gaggregate.select();
		return false;
	}
	
	//to ensure maths % has entered
	if (checkBlankField(document.frm_jobapp.txt_gmaths.value) == false)
	{
		alert ("Please Enter Maths %");
		document.frm_jobapp.txt_gmaths.focus();
		return false;
	}
	
	//to ensure valid value has entered for maths %
	if ((checkPositiveInteger(document.frm_jobapp.txt_gmaths.value) == false) || (document.frm_jobapp.txt_gmaths.value > 100) || (document.frm_jobapp.txt_gmaths.value < 0))
	{
		alert ("Please Enter valid value for Maths %");
		document.frm_jobapp.txt_gmaths.focus();
		document.frm_jobapp.txt_gmaths.select();
		return false;
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 13"; //---TESTING
	//END - to ensure graduation details have entered
	
	//START - to ensure post graduation details have entered, if atleast any one value for pg has entered
	
	if ((checkBlankField(document.frm_jobapp.txt_pgyear.value) != false) || (checkBlankField(document.frm_jobapp.txt_pgcollege.value) != false) || (checkBlankField(document.frm_jobapp.txt_pgsubjects.value) != false) || (checkBlankField(document.frm_jobapp.txt_pgaggregate.value) != false) || (checkBlankField(document.frm_jobapp.txt_pgmaths.value) != false))
	{	
		//to ensure year of passing has entered
		if (checkBlankField(document.frm_jobapp.txt_pgyear.value) == false)
		{
			alert ("Please Enter Year of Passing");
			document.frm_jobapp.txt_pgyear.focus();
			return false;
		}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 14"; //---TESTING
		//to ensure valid value has entered for year
		if ((checkPositiveInteger(document.frm_jobapp.txt_pgyear.value) == false) || (document.frm_jobapp.txt_pgyear.value.length != 4)||(document.frm_jobapp.txt_pgyear.value<1955))
		{
			alert ("Please Enter valid value for Year of Passing");
			document.frm_jobapp.txt_pgyear.focus();
			document.frm_jobapp.txt_pgyear.select();
			return false;
		}
	
		//to esnure college name has entered
		if (checkBlankField(document.frm_jobapp.txt_pgcollege.value) == false)
		{
			alert ("Please Enter College / University Name");
			document.frm_jobapp.txt_pgcollege.focus();
			return false;
		}
		
		//to ensure elective subjects has entered
		if (checkBlankField(document.frm_jobapp.txt_pgsubjects.value) == false)
		{
			alert ("Please Enter Elective Subjects");
			document.frm_jobapp.txt_pgsubjects.focus();
			return false;
		}
		
	
		//to ensure aggregate % has entered
		if (checkBlankField(document.frm_jobapp.txt_pgaggregate.value) == false)
		{
			alert ("Please Enter Aggregate %");
			document.frm_jobapp.txt_pgaggregate.focus();
			return false;
		}
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 15"; //---TESTING
	
		//to ensure valid value has entered for aggregate %
		if ((checkPositiveInteger(document.frm_jobapp.txt_pgaggregate.value) == false) || (document.frm_jobapp.txt_pgaggregate.value > 100) || (document.frm_jobapp.txt_pgaggregate.value < 0))
		{
			alert ("Please Enter valid value for Aggregate %");
			document.frm_jobapp.txt_pgaggregate.focus();
			document.frm_jobapp.txt_pgaggregate.select();
			return false;
		}
	
		//to ensure maths % has entered
		if (checkBlankField(document.frm_jobapp.txt_pgmaths.value) == false)
		{
			alert ("Please Enter Maths %");
			document.frm_jobapp.txt_pgmaths.focus();
			return false;
		}
	
		//to ensure valid value has entered for maths %
		if ((checkPositiveInteger(document.frm_jobapp.txt_pgmaths.value) == false) || (document.frm_jobapp.txt_pgmaths.value > 100) || (document.frm_jobapp.txt_pgmaths.value < 0))
		{
			alert ("Please Enter valid value for Maths %");
			document.frm_jobapp.txt_pgmaths.focus();
			document.frm_jobapp.txt_pgmaths.select();
			return false;
		}
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 16"; //---TESTING
	//END - to ensure post graduation details have entered, if atleast any one value for pg has entered

	//START - to ensure professional diploma one details have entered if some value has entered for professional diploma one or professional diploma second
	
	if ((checkBlankField(document.frm_jobapp.txt_pd1year.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd1institute.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd1subjects.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd1aggregate.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd2year.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd2institute.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd2subjects.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd2aggregate.value) != false))
	{
		//to ensure year has entered
		if (checkBlankField(document.frm_jobapp.txt_pd1year.value) == false)
		{
			alert ("Please Enter Year");
			document.frm_jobapp.txt_pd1year.focus();
			return false;
		}
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 17"; //---TESTING
		//to ensure for year, valid value has entered
		if ((checkPositiveInteger(document.frm_jobapp.txt_pd1year.value) == false) || (document.frm_jobapp.txt_pd1year.value.length != 4)||(document.frm_jobapp.txt_pd1year.value<1960))
		{
			alert ("Please Enter valid Year");
			document.frm_jobapp.txt_pd1year.focus();
			document.frm_jobapp.txt_pd1year.select();
			return false;
		}
		
		//to ensure institute has entered
		if (checkBlankField(document.frm_jobapp.txt_pd1institute.value) == false)
		{
			alert ("Please Enter Institute Name");
			document.frm_jobapp.txt_pd1institute.focus();
			return false;
		}
		
		//to ensure elective subjects has entered
		if (checkBlankField(document.frm_jobapp.txt_pd1subjects.value) == false)
		{
			alert ("Please Enter Elective Subjects");
			document.frm_jobapp.txt_pd1subjects.focus();
			return false;
		}
		
		//to ensure aggregate % has entered
		if (checkBlankField(document.frm_jobapp.txt_pd1aggregate.value) == false)
		{
			alert ("Please Enter Aggregate %");
			document.frm_jobapp.txt_pd1aggregate.focus();
			return false;
		}
		
		//to ensure for aggregate %, valid value has entered
		if ((checkPositiveInteger(document.frm_jobapp.txt_pd1aggregate.value) == false) || (document.frm_jobapp.txt_pd1aggregate.value > 100) || (document.frm_jobapp.txt_pd1aggregate.value < 0))
		{
			alert ("Please Enter valid Aggregate %");
			document.frm_jobapp.txt_pd1aggregate.focus();
			document.frm_jobapp.txt_pd1aggregate.select();
			return false;
		}
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 18"; //---TESTING
	//END - to ensure professional diploma one details have entered if some value has entered for professional diploma one or professional diploma second
	
	//START - to ensure professional diploma two details have entered if some value has entered for professional diploma second fields
	
	if ((checkBlankField(document.frm_jobapp.txt_pd2year.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd2institute.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd2subjects.value) != false) || (checkBlankField(document.frm_jobapp.txt_pd2aggregate.value) != false))
	{
		//to ensure year has entered
		if (checkBlankField(document.frm_jobapp.txt_pd2year.value) == false)
		{
			alert ("Please Enter Year");
			document.frm_jobapp.txt_pd2year.focus();
			return false;
		}
		
		//to ensure for year, valid value has entered
		if ((checkPositiveInteger(document.frm_jobapp.txt_pd2year.value) == false) || (document.frm_jobapp.txt_pd2year.value.length != 4)||(document.frm_jobapp.txt_pd2year.value<1960))
		{
			alert ("Please Enter valid Year");
			document.frm_jobapp.txt_pd2year.focus();
			document.frm_jobapp.txt_pd2year.select();
			return false;
		}
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 19"; //---TESTING
		//to ensure institute has entered
		if (checkBlankField(document.frm_jobapp.txt_pd2institute.value) == false)
		{
			alert ("Please Enter Institute Name");
			document.frm_jobapp.txt_pd2institute.focus();
			return false;
		}
				
		//to ensure elective subjects has entered
		if (checkBlankField(document.frm_jobapp.txt_pd2subjects.value) == false)
		{
			alert ("Please Enter Elective Subjects");
			document.frm_jobapp.txt_pd2subjects.focus();
			return false;
		}
		
		//to ensure aggregate % has entered
		if (checkBlankField(document.frm_jobapp.txt_pd2aggregate.value) == false)
		{
			alert ("Please Enter Aggregate %");
			document.frm_jobapp.txt_pd2aggregate.focus();
			return false;
		}
		
		//to ensure for aggregate %, valid value has entered
		if ((checkPositiveInteger(document.frm_jobapp.txt_pd2aggregate.value) == false) || (document.frm_jobapp.txt_pd1aggregate.value > 100) || (document.frm_jobapp.txt_pd2aggregate.value < 0))
		{
			alert ("Please Enter valid Aggregate %");
			document.frm_jobapp.txt_pd2aggregate.focus();
			document.frm_jobapp.txt_pd2aggregate.select();
			return false;
		}
	}
	
	//END - to ensure professional diploma two details have entered if some value has entered for professional diploma second fields
	
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 20"; //---TESTING
	//-----OTHER DETAILS-----
	
	//to ensure IT work exp. has entered
	if (document.frm_jobapp.sct_workyear[document.frm_jobapp.sct_workyear.selectedIndex].value == "")
	{
		alert ("Please Select IT Work Exp.");
		document.frm_jobapp.sct_workyear.focus();
		return false;
	}
	
	//to ensure minimum salary has entered
	if (checkBlankField(document.frm_jobapp.txt_minsalary.value) == false)
	{
		alert ("Please Enter Minimum Salary Expected");
		document.frm_jobapp.txt_minsalary.focus();
		return false;
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 21"; //---TESTING
	//to ensure for minimum salary, valid value has entered
	if((checkPositiveInteger(document.frm_jobapp.txt_minsalary.value) == false) || (document.frm_jobapp.txt_minsalary.value <= 0))
	{
		alert ("Please Enter valid value for Minimum Salary Expected");
		document.frm_jobapp.txt_minsalary.focus();
		document.frm_jobapp.txt_minsalary.select();
		return false;
	}
	
	//to ensure joining time required has selected
	if (document.frm_jobapp.sct_joiningtime[document.frm_jobapp.sct_joiningtime.selectedIndex].value == "")
	{
		alert ("Please Select Joining Time Required");
		document.frm_jobapp.sct_joiningtime.focus();
		return false;
	}
	
	//to ensure current working status has selected
	if (document.frm_jobapp.sct_workstatus[document.frm_jobapp.sct_workstatus.selectedIndex].value == "")
	{
		alert ("Please Select Current Working Status");
		document.frm_jobapp.sct_workstatus.focus();
		return false;
	}
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 22"; //---TESTING
	//to validate the fields for those candidates which have some IT exp.(ADDED BY RAJESH 6/4/02)
	if (document.frm_jobapp.sct_workyear[document.frm_jobapp.sct_workyear.selectedIndex].value != "None")
	{
		if (document.frm_jobapp.sct_workstatus[document.frm_jobapp.sct_workstatus.selectedIndex].value=="Fresher")
		{
			alert("You can't be a fresher having IT work Experience");
			document.frm_jobapp.sct_workstatus.focus();
			return false;
		}
	}
	
	//to ensure computer availibility status has selected
	if (document.frm_jobapp.sct_computer[document.frm_jobapp.sct_computer.selectedIndex].value == "")
	{
		alert ("Please Select Computer Availability Status");
		document.frm_jobapp.sct_computer.focus();
		return false;
	}
	
	//to ensure internet availibility status has selected
	if (document.frm_jobapp.sct_internet[document.frm_jobapp.sct_internet.selectedIndex].value == "")
	{
		alert ("Please Select Internet Availability Status");
		document.frm_jobapp.sct_internet.focus();
		return false;
	}
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 23"; //---TESTING
	//to ensure work exp. status for part time / contract / freelance project has selected
	if (document.frm_jobapp.sct_parttime[document.frm_jobapp.sct_parttime.selectedIndex].value == "")
	{
		alert ("Please Select Part Time / Contract / Freelance Projects Work Status");
		document.frm_jobapp.sct_parttime.focus();
		return false;
	}
		
	//-----WORK EXPERIENCE-----
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 24"; //---TESTING
	//START - to ensure work exp. details for last / current company has entered, if candidate's current working status is not as 'fresher'
	if (document.frm_jobapp.sct_workstatus[document.frm_jobapp.sct_workstatus.selectedIndex].value != "Fresher")
	{
			document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 25"; //---TESTING
		//to ensure company name has entered
		if (checkBlankField(document.frm_jobapp.txt_compname[0].value) == false)
		{
			alert ("Please Enter Company Name");
			document.frm_jobapp.txt_compname[0].focus();
			return false;
		}
		
		//to ensure designation has entered
		if (checkBlankField(document.frm_jobapp.txt_compdesignation[0].value) == false)
		{
			alert ("Please Enter Designation");
			document.frm_jobapp.txt_compdesignation[0].focus();
			return false;
		}
			document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 26"; //---TESTING
		//to ensure joining month has entered
		if (document.frm_jobapp.sct_monthjoin[0].options.value == "")
		{
			alert ("Please Specify Joining Month");
			document.frm_jobapp.sct_monthjoin[0].focus();
			return false;
		}
		
		//to ensure leaving year has entered
		if (checkBlankField(document.frm_jobapp.txt_yearjoin[0].value) == false)
		{
			alert ("Please Enter Joining Year");
			document.frm_jobapp.txt_yearjoin[0].focus();
			return false;
		}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 27"; //---TESTING
		//to ensure joining year is valid
		if ((checkPositiveInteger(document.frm_jobapp.txt_yearjoin[0].value) == false)||(document.frm_jobapp.txt_yearjoin[0].value<=0)||(document.frm_jobapp.txt_yearjoin[0].value.length != 4))
		{
			alert ("Please Enter valid Joining Year");
			document.frm_jobapp.txt_yearjoin[0].focus();
			return false;
		}
		
		//to ensure salary has entered
		if (checkBlankField(document.frm_jobapp.txt_salaryatjoin[0].value) == false)
		{
			alert ("Please Enter Salary at Joining");
			document.frm_jobapp.txt_salaryatjoin[0].focus();
			return false;
		}
			document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 28"; //---TESTING
		//to ensure for salary, valid value has entered
		if ((checkPositiveInteger(document.frm_jobapp.txt_salaryatjoin[0].value) == false)||(document.frm_jobapp.txt_salaryatjoin[0].value<=0))
		{
			alert ("Please Enter valid Salary at Joining");
			document.frm_jobapp.txt_salaryatjoin[0].focus();
			document.frm_jobapp.txt_salaryatjoin[0].select();
			return false;
		}
				
		//to ensure leaving month has entered
		if (document.frm_jobapp.sct_monthleave[0].options.value == "" )
		{
			alert ("Please Specify Leaving Month");
			document.frm_jobapp.sct_monthleave[0].focus();
			return false;
		}
		
		//to ensure leaving year has entered
		if (checkBlankField(document.frm_jobapp.txt_yearleave[0].value) == false)
		{
			alert ("Please Enter leaving Year");
			document.frm_jobapp.txt_yearleave[0].focus();
			return false;
		}
			document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 29"; //---TESTING
		//to ensure leaving year is valid
		if ((checkPositiveInteger(document.frm_jobapp.txt_yearleave[0].value) == false)||(document.frm_jobapp.txt_yearleave[0].value<=0)||(document.frm_jobapp.txt_yearleave[0].value.length != 4))
		{
			alert ("Please Enter valid leaving Year");
			document.frm_jobapp.txt_yearleave[0].focus();
			return false;
		}
		
		//to ensure salary has entered
		if (checkBlankField(document.frm_jobapp.txt_salaryatleave[0].value) == false)
		{
			alert ("Please Enter Salary at Leaving");
			document.frm_jobapp.txt_salaryatleave[0].focus();
			return false;
		}
		
		//to ensure for salary, valid value has entered
		if ((checkPositiveInteger(document.frm_jobapp.txt_salaryatleave[0].value) == false)||(document.frm_jobapp.txt_salaryatleave[0].value<=0))
		{
			alert ("Please Enter valid Salary at Leaving");
			document.frm_jobapp.txt_salaryatleave[0].focus();
			document.frm_jobapp.txt_salaryatleave[0].select();
			return false;
		}
			
		//to ensure reason for changing job has entered
		if (isNaN(document.frm_jobapp.txa_comp1reason.value) == false)
		{
			alert ("Please Enter Reason for changing job");
			document.frm_jobapp.txa_comp1reason.focus();
			document.frm_jobapp.txa_comp1reason.select();
			return false;
		}
		
		//to ensure reason containing maximum 500 characters
		if (document.frm_jobapp.txa_comp1reason.value.length > 500)
		{
			alert ("Please enter the reason in maximum of 500 characters.\n You have already entered " + document.frm_jobapp.txa_comp1reason.value.length + " characters");
			document.frm_jobapp.txa_comp1reason.focus();
			return false;
		}
	}
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 30"; //---TESTING
	//END - to ensure work exp. details for last / current company has entered, if candidate's current working status is not as 'fresher'
	
	//START - to ensure work exp. details for any company has entered, if candidate's current working status is not as 'fresher' and he has entered some value in any field of second last company or third last company

	var i;
	for( i =1; i<4; i++)
	{
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 31"; //---TESTING
		if ((document.frm_jobapp.sct_workstatus[document.frm_jobapp.sct_workstatus.selectedIndex].value != "Fresher") && ((checkBlankField(document.frm_jobapp.txt_compname[i].value) != false) || (checkBlankField(document.frm_jobapp.txt_compdesignation[i].value) != false) || (checkBlankField(document.frm_jobapp.txt_salaryatjoin[i].value) != false) || (checkBlankField(document.frm_jobapp.txt_salaryatleave[i].value) != false)||(checkBlankField(document.frm_jobapp.txt_yearleave[i].value) != false)||(checkBlankField(document.frm_jobapp.txt_yearjoin[i].value) != false)|| (document.frm_jobapp.sct_monthjoin[i][document.frm_jobapp.sct_monthjoin[i].selectedIndex].value!="") || (document.frm_jobapp.sct_monthleave[i][document.frm_jobapp.sct_monthleave[i].selectedIndex].value!="")))
		{
			//to ensure company name has entered
			if (checkBlankField(document.frm_jobapp.txt_compname[i].value) == false)
			{
				alert ("Please Enter Company Name");
				document.frm_jobapp.txt_compname[i].focus();
				return false;
			}
			document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 32"; //---TESTING
			//to ensure designation has entered
			if (checkBlankField(document.frm_jobapp.txt_compdesignation[i].value) == false)
			{
				alert ("Please Enter Designation");
				document.frm_jobapp.txt_compdesignation[i].focus();
				return false;
			}
			
			//to ensure joining month has entered
			if (document.frm_jobapp.sct_monthjoin[i][document.frm_jobapp.sct_monthjoin[i].selectedIndex].value == "")
			{
				alert ("Please Specify Joining Month");
				document.frm_jobapp.sct_monthjoin[i].focus();
				return false;
			}
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 33"; //---TESTING
			//to ensure leaving year has entered
			if (checkBlankField(document.frm_jobapp.txt_yearjoin[i].value) == false)
			{
				alert ("Please Enter Joining Year");
				document.frm_jobapp.txt_yearjoin[i].focus();
				return false;
			}
			
			//to ensure joining year is valid
			if ((checkPositiveInteger(document.frm_jobapp.txt_yearjoin[i].value) == false)||(document.frm_jobapp.txt_yearjoin[i].value <= 0)||(document.frm_jobapp.txt_yearjoin[i].value.length != 4))
			{
				alert ("Please Enter Valid Joining Year");
				document.frm_jobapp.txt_yearjoin[i].focus();
				return false;
			}
					
			//to ensure salary has entered
			if (checkBlankField(document.frm_jobapp.txt_salaryatjoin[i].value) == false)
			{
				alert ("Please Enter Salary at Joining");
				document.frm_jobapp.txt_salaryatjoin[i].focus();
				return false;
			}
			document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 34"; //---TESTING
			//to ensure for salary, valid value has entered
			if ((checkPositiveInteger(document.frm_jobapp.txt_salaryatjoin[i].value) == false)||(document.frm_jobapp.txt_salaryatjoin[i].value<=0))
			{
				alert ("Please Enter valid Salary at Joining");
				document.frm_jobapp.txt_salaryatjoin[i].focus();
				document.frm_jobapp.txt_salaryatjoin[i].select();
				return false;
			}
			
			//to ensure leaving month has entered
			if (document.frm_jobapp.sct_monthleave[i][document.frm_jobapp.sct_monthleave[i].selectedIndex].value == "" )
			{
				alert ("Please Specify Leaving Month");
				document.frm_jobapp.sct_monthleave[i].focus();
				return false;
			}
		
			//to ensure leaving year has entered
			if (checkBlankField(document.frm_jobapp.txt_yearleave[i].value) == false)
			{
				alert ("Please Enter leaving Year");
				document.frm_jobapp.txt_yearleave[i].focus();
				return false;
			}
			document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 35"; //---TESTING
			//to ensure leaving year is valid
			if ((checkPositiveInteger(document.frm_jobapp.txt_yearleave[i].value) == false)||(document.frm_jobapp.txt_yearleave[i].value <= 0)||(document.frm_jobapp.txt_yearleave[i].value.length != 4))
			{
				alert ("Please Enter valid leaving Year");
				document.frm_jobapp.txt_yearleave[i].focus();
				return false;
			}
			
			//to ensure leaving salary has entered
			if (checkBlankField(document.frm_jobapp.txt_salaryatleave[i].value) == false)
			{
				alert ("Please Enter Salary at Leaving");
				document.frm_jobapp.txt_salaryatleave[i].focus();
				return false;
			}
			
			//to ensure for salary, valid value has entered
			if ((checkPositiveInteger(document.frm_jobapp.txt_salaryatleave[i].value) == false)||(document.frm_jobapp.txt_salaryatleave[i].value<=0))
			{
				alert ("Please Enter valid Salary at Leaving");
				document.frm_jobapp.txt_salaryatleave[i].focus();
				document.frm_jobapp.txt_salaryatleave[i].select();
				return false;
			}
		}
		//END - to ensure work exp. details for second last company has entered, if candidate's current working status is not as 'fresher' and he has entered some value in any field of second last company or third last company
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 36"; //---TESTING
	for(i=0; i<4 ; i++)
	{
		document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 37"; //---TESTING
		document.frm_jobapp.txt_compname[i].value = document.frm_jobapp.txt_compname[i].value.replace(",","`");
		document.frm_jobapp.txt_compdesignation[i].value = document.frm_jobapp.txt_compdesignation[i].value.replace(",","`");
		document.frm_jobapp.txt_yearjoin[i].value = document.frm_jobapp.txt_yearjoin[i].value.replace(",","`");
		document.frm_jobapp.txt_compname[i].value = document.frm_jobapp.txt_compname[i].value.replace(",","`");
		document.frm_jobapp.txt_compdesignation[i].value = document.frm_jobapp.txt_compdesignation[i].value.replace(",","`");
		document.frm_jobapp.txt_yearjoin[i].value = document.frm_jobapp.txt_yearjoin[i].value.replace(",","`");
		document.frm_jobapp.txt_compname[i].value = document.frm_jobapp.txt_compname[i].value.replace(",","`");
		document.frm_jobapp.txt_compdesignation[i].value = document.frm_jobapp.txt_compdesignation[i].value.replace(",","`");
		document.frm_jobapp.txt_yearjoin[i].value = document.frm_jobapp.txt_yearjoin[i].value.replace(",","`");
		document.frm_jobapp.txt_compname[i].value = document.frm_jobapp.txt_compname[i].value.replace(",","`");
		document.frm_jobapp.txt_compdesignation[i].value = document.frm_jobapp.txt_compdesignation[i].value.replace(",","`");
		document.frm_jobapp.txt_yearjoin[i].value = document.frm_jobapp.txt_yearjoin[i].value.replace(",","`");
		document.frm_jobapp.txt_compname[i].value = document.frm_jobapp.txt_compname[i].value.replace(",","`");
		document.frm_jobapp.txt_compdesignation[i].value = document.frm_jobapp.txt_compdesignation[i].value.replace(",","`");
		document.frm_jobapp.txt_yearjoin[i].value = document.frm_jobapp.txt_yearjoin[i].value.replace(",","`");
		document.frm_jobapp.txt_compname[i].value = document.frm_jobapp.txt_compname[i].value.replace(",","`");
		document.frm_jobapp.txt_compdesignation[i].value = document.frm_jobapp.txt_compdesignation[i].value.replace(",","`");
		document.frm_jobapp.txt_yearjoin[i].value = document.frm_jobapp.txt_yearjoin[i].value.replace(",","`");

	//	document.frm_jobapp.txt_salaryatjoin[i].value = document.frm_jobapp.txt_salaryatjoin[i].value.replace(",","`");
	//	document.frm_jobapp.txt_yearleave[i].value = document.frm_jobapp.txt_yearleave[i].value.replace(",","`");
	//	document.frm_jobapp.txt_salaryatleave[i].value = document.frm_jobapp.txt_salaryatleave[i].value.replace(",","`");
	}
	document.frm_jobapp.hid_testing.value = document.frm_jobapp.hid_testing.value + ", 38"; //---TESTING
	document.frm_jobapp.hid_submit.value = 1;
}

// FUNCTION ADDED BY RAJESH (6/4/2002) To RESET COMBO BOX POULATED DYNAMICALLY
function body_onload2()
{
	//Onload Reset Combo boxes
	document.frm_jobapp.sct_jobprofile.selectedIndex=0;
	
	//Reset jobtype list	
	for (i=document.frm_jobapp.sct_jobtype.length;i>0;i--)
	{
		document.frm_jobapp.sct_jobtype.options[0] = null;
	}	
	document.frm_jobapp.sct_jobtype.options[0]=new Option("Select Job Type","0");

	//Reset jobcity list	
	for (i=document.frm_jobapp.sct_jobcity.length;i>0;i--)
	{
		document.frm_jobapp.sct_jobcity.options[0] = null;
	}	
	document.frm_jobapp.sct_jobcity.options[0]=new Option("Select Job City","0");
}

