function qual()
{
var degree = document.form2.highest_degree;
//alert(degree);
ClearOptions(document.form2.major);
if (degree[degree.selectedIndex].value == "Bachelor of Arts (B.A)")
{
 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Arts&Humanities", "Arts&Humanities");
      AddToOptionList(document.form2.major, "Communication", "Communication");
	  AddToOptionList(document.form2.major, "Economics", "Economics");
      AddToOptionList(document.form2.major, "English", "English");
	  AddToOptionList(document.form2.major, "Film", "Film");
      AddToOptionList(document.form2.major, "Fine Arts", "Fine Arts");
      AddToOptionList(document.form2.major, "Hindi", "Hindi");
	  AddToOptionList(document.form2.major, "History", "History");
	  AddToOptionList(document.form2.major, "Journalism", "Journalism");
      AddToOptionList(document.form2.major, "Maths", "Maths");
	  AddToOptionList(document.form2.major, "Music", "Music");
      AddToOptionList(document.form2.major, "Political Science", "Political Science");
	  AddToOptionList(document.form2.major, "PR / Advertising", "PR / Advertising");
	  AddToOptionList(document.form2.major, "Psychology", "Psychology");
      AddToOptionList(document.form2.major, "Sanskrit", "Sanskrit");
      AddToOptionList(document.form2.major, "Sociology", "Sociology");
	  AddToOptionList(document.form2.major, "Statistics", "Statistics");
	  AddToOptionList(document.form2.major, "Tamil", "Tamil");
      AddToOptionList(document.form2.major, "Vocational Course", "Vocational Course");
	  AddToOptionList(document.form2.major, "Other", "Other");
	 }
// if (degree[degree.selectedIndex].value == "B.A")
// {
//      AddToOptionList(document.form2.major, "Arts&Humanities", "Arts&Humanities");
//      AddToOptionList(document.form2.major, "Communication", "Communication");
//	  AddToOptionList(document.form2.major, "Economics", "Economics");
//	  AddToOptionList(document.form2.major, "English", "English");
//	  AddToOptionList(document.form2.major, "Film", "Film");
//      AddToOptionList(document.form2.major, "Fine Arts", "Fine Arts");
//      AddToOptionList(document.form2.major, "General", "General");
//	  AddToOptionList(document.form2.major, "Hindi", "Hindi");
//	  AddToOptionList(document.form2.major, "History", "History");
//	  AddToOptionList(document.form2.major, "Journalism", "Journalism");
//      AddToOptionList(document.form2.major, "Literature", "Literature");
//	  AddToOptionList(document.form2.major, "Mathematics", "Mathematics");
//	  AddToOptionList(document.form2.major, "Philosophy", "Philosophy");
//	  AddToOptionList(document.form2.major, "Political Science", "Political Science");  
//	  AddToOptionList(document.form2.major, "PR/Advertising", "PR/Advertising");
//      AddToOptionList(document.form2.major, "Psychology", "Psychology");
//	  AddToOptionList(document.form2.major, "Sanskrit", "Sanskrit");
//	  AddToOptionList(document.form2.major, "Sociology", "Sociology");
//	  AddToOptionList(document.form2.major, "Statistics", "Statistics");
//      AddToOptionList(document.form2.major, "Vocational Courses", "Vocational Courses");
//	  AddToOptionList(document.form2.major, "Other Arts", "Other Arts");
//   }
 if (degree[degree.selectedIndex].value == "Bachelor of Architecture (B.Arch.)")
 {
	   AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Architecture", "Architecture");
 }
 if (degree[degree.selectedIndex].value == "Bachelor of Commerce (B.Com.)")
 {
 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Commerce", "Commerce");
 }
 if (degree[degree.selectedIndex].value == "Bachelor of Science (B.Sc.)")
 {
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Agriculture", "Agriculture");
	  AddToOptionList(document.form2.major, "Anthropology", "Anthropology");
      AddToOptionList(document.form2.major, "Bio-Chemistry", "Bio-Chemistry");
	  AddToOptionList(document.form2.major, "Bio-Technology", "Bio-Technology");
	  AddToOptionList(document.form2.major, "Biology", "Biology");
	  AddToOptionList(document.form2.major, "Botany", "Botany");
	  AddToOptionList(document.form2.major, "Chemistry", "Chemistry");
      AddToOptionList(document.form2.major, "Computers", "Computers");
	  AddToOptionList(document.form2.major, "Dairy Technology", "Dairy Technology");
	  AddToOptionList(document.form2.major, "Electronics", "Electronics");
	  AddToOptionList(document.form2.major, "Environmental science", "Environmental science");
	  AddToOptionList(document.form2.major, "Food Technology", "Food Technology");
      AddToOptionList(document.form2.major, "Geology", "Geology");
	  AddToOptionList(document.form2.major, "Home Science", "Home Science");
	  AddToOptionList(document.form2.major, "Maths", "Maths");
	  AddToOptionList(document.form2.major, "Microbiology", "Microbiology");
	  AddToOptionList(document.form2.major, "Nursing", "Nursing");
	  AddToOptionList(document.form2.major, "Physics", "Physics");
      AddToOptionList(document.form2.major, "Statistics", "Statistics");
	  AddToOptionList(document.form2.major, "Zoology", "Zoology");
      AddToOptionList(document.form2.major, "General", "General");
	 AddToOptionList(document.form2.major, "Other", "Other");
	  
   }
 if (degree[degree.selectedIndex].value == "Bachelor of Library & Information Science")
 {
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Library & Information Science", "Library & Information Science");
   }
 if (degree[degree.selectedIndex].value == "Bachelor of Education (B.Ed.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Education", "Education");
   }
    if (degree[degree.selectedIndex].value == "BHM")
 {
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Hotel Management", "Hotel Management");
   }
    if (degree[degree.selectedIndex].value == "B.E/B.Tech")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Agriculture", "Agriculture");
	  AddToOptionList(document.form2.major, "Automobile", "Automobile");
      AddToOptionList(document.form2.major, "Aviation", "Aviation");
	  AddToOptionList(document.form2.major, "Bio-Chemistry / Bio-Technology", "Bio-Chemistry / Bio-Technology");
	  AddToOptionList(document.form2.major, "Biomedical", "Biomedical");
	  AddToOptionList(document.form2.major, "Ceramics", "Ceramics");
      AddToOptionList(document.form2.major, "Chemical", "Chemical");
	  AddToOptionList(document.form2.major, "Civil", "Civil");
	  AddToOptionList(document.form2.major, "Computers", "Computers");
	  AddToOptionList(document.form2.major, "Electrical", "Electrical");
	  AddToOptionList(document.form2.major, "Electronics / Telecommunication", "Electronics / Telecommunication");
      AddToOptionList(document.form2.major, "Energy", "Energy");
	  AddToOptionList(document.form2.major, "Environmental", "Environmental");
      AddToOptionList(document.form2.major, "Instrumentation", "Instrumentation");
	  AddToOptionList(document.form2.major, "Marine", "Marine");
	  AddToOptionList(document.form2.major, "Mechanical", "Mechanical");
	  AddToOptionList(document.form2.major, "Metallurgy", "Metallurgy");
      AddToOptionList(document.form2.major, "Mineral", "Mineral");
	  AddToOptionList(document.form2.major, "Mining", "Mining");
	  AddToOptionList(document.form2.major, "Nano Technology", "Nano Technology");
	  AddToOptionList(document.form2.major, "Nuclear", "Nuclear");
	  AddToOptionList(document.form2.major, "Paint / Oil", "Paint / Oil");
	  AddToOptionList(document.form2.major, "Petroleum", "Petroleum");
	  AddToOptionList(document.form2.major, "Plastics", "Plastics");
	  AddToOptionList(document.form2.major, "Production / Industrial", "Production / Industrial");
	  AddToOptionList(document.form2.major, "Textile", "Textile");
	  AddToOptionList(document.form2.major, "Other Engineering", "Other Engineering");
	  AddToOptionList(document.form2.major, "Any Engineering", "Any Engineering");
   }
 if (degree[degree.selectedIndex].value == "LLB")
 {	
 		AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Law", "Law");
   }
 if (degree[degree.selectedIndex].value == "LLM")
 {	
 		AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Law", "Law");
   }
 if (degree[degree.selectedIndex].value == "MBBS")
{
 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Cardiology", "Cardiology");
      AddToOptionList(document.form2.major, "Dermatology", "Dermatology");
      AddToOptionList(document.form2.major, "ENT", "ENT");
      AddToOptionList(document.form2.major, "General Practitioner", "General Practitioner");
      AddToOptionList(document.form2.major, "Gyneocology", "Gyneocology");
      AddToOptionList(document.form2.major, "Hepatology", "Hepatology");
      AddToOptionList(document.form2.major, "Immunology", "Immunology");
      AddToOptionList(document.form2.major, "Microbiology", "Microbiology");
      AddToOptionList(document.form2.major, "Neonatal", "Neonatal");
      AddToOptionList(document.form2.major, "Nephrology", "Nephrology");
      AddToOptionList(document.form2.major, "Obstretrics", "Obstretrics");
      AddToOptionList(document.form2.major, "Oncology", "Oncology");
      AddToOptionList(document.form2.major, "Opthalmology", "Opthalmology");
      AddToOptionList(document.form2.major, "Orthopaedic", "Orthopaedic");
      AddToOptionList(document.form2.major, "Pathology", "Pathology");
      AddToOptionList(document.form2.major, "Pediatrics", "Pediatrics");
      AddToOptionList(document.form2.major, "Psychiatry", "Psychiatry");
      AddToOptionList(document.form2.major, "Psychology", "Psychology");
      AddToOptionList(document.form2.major, "Radiology", "Radiology");
      AddToOptionList(document.form2.major, "Rheumatology", "Rheumatology");
      AddToOptionList(document.form2.major, "Urology", "Urology");
      AddToOptionList(document.form2.major, "Any Specialization", "Any Specialization");
}
 if (degree[degree.selectedIndex].value == "BDS")
 {	
 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Dental Surgery", "Dental Surgery");
 }
 if (degree[degree.selectedIndex].value == "MDS")
 {	
 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Dental Surgery", "Dental Surgery");
 }
 if (degree[degree.selectedIndex].value == "Diploma")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Architecture", "Architecture");
      AddToOptionList(document.form2.major, "Chemical", "Chemical");
      AddToOptionList(document.form2.major, "Civil", "Civil");
      AddToOptionList(document.form2.major, "Computers", "Computers");
      AddToOptionList(document.form2.major, "Electrical", "Electrical");
      AddToOptionList(document.form2.major, "Electronics / Telecomunication", "Electronics / Telecomunication");
      AddToOptionList(document.form2.major, "Engineering", "Engineering");
      AddToOptionList(document.form2.major, "Export / Import", "Export / Import");
      AddToOptionList(document.form2.major, "Fashion Designing / Other Designing", "Fashion Designing / Other Designing");
      AddToOptionList(document.form2.major, "Graphic / Web Designing", "Graphic / Web Designing");
      AddToOptionList(document.form2.major, "Hotel Management", "Hotel Management");
      AddToOptionList(document.form2.major, "Insurance", "Insurance");
      AddToOptionList(document.form2.major, "Management", "Managment");
      AddToOptionList(document.form2.major, "Mechnical", "Mechanical");
      AddToOptionList(document.form2.major, "Tourism", "Tourism");
      AddToOptionList(document.form2.major, "Visual Arts", "Visual Arts");
      AddToOptionList(document.form2.major, "Others", "Others");
   }
 if (degree[degree.selectedIndex].value == "Bachelor of Veterinary Science (B.V.Sc.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Veterinary Science", "Veterinary Science");
   }
 if (degree[degree.selectedIndex].value == "Master of Arts (M.A.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
       AddToOptionList(document.form2.major, "Arts&Humanities", "Arts&Humanities");
      AddToOptionList(document.form2.major, "Communication", "Communication");
	  AddToOptionList(document.form2.major, "Economics", "Economics");
      AddToOptionList(document.form2.major, "English", "English");
	  AddToOptionList(document.form2.major, "Film", "Film");
      AddToOptionList(document.form2.major, "Fine Arts", "Fine Arts");
      AddToOptionList(document.form2.major, "Hindi", "Hindi");
	  AddToOptionList(document.form2.major, "History", "History");
	  AddToOptionList(document.form2.major, "Journalism", "Journalism");
      AddToOptionList(document.form2.major, "Maths", "Maths");
      AddToOptionList(document.form2.major, "Political Science", "Political Science");
	  AddToOptionList(document.form2.major, "PR / Advertising", "PR / Advertising");
	  AddToOptionList(document.form2.major, "Psychology", "Psychology");
      AddToOptionList(document.form2.major, "Sanskrit", "Sanskrit");
      AddToOptionList(document.form2.major, "Sociology", "Sociology");
	  AddToOptionList(document.form2.major, "Statistics", "Statistics");
	  AddToOptionList(document.form2.major, "Tamil", "Tamil");
   }
    if (degree[degree.selectedIndex].value == "Master of Architecture (M.Arch.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Architecture", "Architecture");
   }
 if (degree[degree.selectedIndex].value == "Master of Commerce (M.Com.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Commerce", "Commerce");
  }
   if (degree[degree.selectedIndex].value == "Master of Library & Information Science")
 {
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Library & Information Science", "Library & Information Science");
   }
  if (degree[degree.selectedIndex].value == "M.E/M.Tech")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Agriculture", "Agriculture");
	  AddToOptionList(document.form2.major, "Automobile", "Automobile");
      AddToOptionList(document.form2.major, "Aviation", "Aviation");
	  AddToOptionList(document.form2.major, "Bio-Chemistry / Bio-Technology", "Bio-Chemistry / Bio-Technology");
	  AddToOptionList(document.form2.major, "Biomedical", "Biomedical");
	  AddToOptionList(document.form2.major, "Ceramics", "Ceramics");
      AddToOptionList(document.form2.major, "Chemical", "Chemical");
	  AddToOptionList(document.form2.major, "Civil", "Civil");
	  AddToOptionList(document.form2.major, "Computers", "Computers");
	  AddToOptionList(document.form2.major, "Electrical", "Electrical");
	  AddToOptionList(document.form2.major, "Electronics / Telecomunication", "Electronics / Telecomunication");
      AddToOptionList(document.form2.major, "Energy", "Energy");
	  AddToOptionList(document.form2.major, "Environmental", "Environmental");
      AddToOptionList(document.form2.major, "Instrumentation", "Instrumentation");
	  AddToOptionList(document.form2.major, "Marine", "Marine");
	  AddToOptionList(document.form2.major, "Mechanical", "Mechanical");
	  AddToOptionList(document.form2.major, "Metallurgy", "Metallurgy");
      AddToOptionList(document.form2.major, "Mineral", "Mineral");
	  AddToOptionList(document.form2.major, "Mining", "Mining");
	  AddToOptionList(document.form2.major, "Nuclear", "Nuclear");
	  AddToOptionList(document.form2.major, "Paint / Oil", "Paint / Oil");
	  AddToOptionList(document.form2.major, "Petroleum", "Petroleum");
	  AddToOptionList(document.form2.major, "Plastics", "Plastics");
	  AddToOptionList(document.form2.major, "Production / Industrial", "Production / Industrial");
	  AddToOptionList(document.form2.major, "Textile", "Textile");
	  AddToOptionList(document.form2.major, "Other Engineering", "Other Engineering");
   }
 if (degree[degree.selectedIndex].value == "Master of Education (M.Ed.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Education", "Education");
  }
 if (degree[degree.selectedIndex].value == "Master of Pharmacy (M.Pharma)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Pharmacy", "Pharmacy");
  }
 if (degree[degree.selectedIndex].value == "Master of Science (M.Sc.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Agriculture", "Agriculture");
	  AddToOptionList(document.form2.major, "Anthropology", "Anthropology");
      AddToOptionList(document.form2.major, "Bio-Chemistry", "Bio-Chemistry");
	  AddToOptionList(document.form2.major, "Biology", "Biology");
	  AddToOptionList(document.form2.major, "Botany", "Botany");
	  AddToOptionList(document.form2.major, "Chemistry", "Chemistry");
      AddToOptionList(document.form2.major, "Computers", "Computers");
	  AddToOptionList(document.form2.major, "Dairy Technology", "Dairy Technology");
	  AddToOptionList(document.form2.major, "Electronics", "Electronics");
	  AddToOptionList(document.form2.major, "Environmental Science", "Environmental Science");
	  AddToOptionList(document.form2.major, "Food Technology", "Food Technology");
      AddToOptionList(document.form2.major, "Geology", "Geology");
	  AddToOptionList(document.form2.major, "Home Science", "Home Science");
	  AddToOptionList(document.form2.major, "Maths", "Maths");
	  AddToOptionList(document.form2.major, "Microbiology", "Microbiology");
	  AddToOptionList(document.form2.major, "Nursing", "Nursing");
	  AddToOptionList(document.form2.major, "Physics", "Physics");
      AddToOptionList(document.form2.major, "Statistics", "Statistics");
	  AddToOptionList(document.form2.major, "Zoology", "Zoology");
      AddToOptionList(document.form2.major, "General", "General");
	  AddToOptionList(document.form2.major, "Other", "Other");
   }
    if (degree[degree.selectedIndex].value == "Master of Technology (M.Tech.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Agriculture", "Agriculture");
	  AddToOptionList(document.form2.major, "Automobile", "Automobile");
      AddToOptionList(document.form2.major, "Aviation", "Aviation");
	  AddToOptionList(document.form2.major, "Bio-Chemistry / Bio-Technology", "Bio-Chemistry / Bio-Technology");
	  AddToOptionList(document.form2.major, "Biomedical", "Biomedical");
	  AddToOptionList(document.form2.major, "Ceramics", "Ceramics");
      AddToOptionList(document.form2.major, "Chemical", "Chemical");
	  AddToOptionList(document.form2.major, "Civil", "Civil");
	  AddToOptionList(document.form2.major, "Computers", "Computers");
	  AddToOptionList(document.form2.major, "Electrical", "Electrical");
	  AddToOptionList(document.form2.major, "Electronics / Telecomunication", "Electronics / Telecomunication");
      AddToOptionList(document.form2.major, "Energy", "Energy");
	  AddToOptionList(document.form2.major, "Environmental", "Environmental");
      AddToOptionList(document.form2.major, "Instrumentation", "Instrumentation");
	  AddToOptionList(document.form2.major, "Marine", "Marine");
	  AddToOptionList(document.form2.major, "Mechanical", "Mechanical");
	  AddToOptionList(document.form2.major, "Metallurgy", "Metallurgy");
      AddToOptionList(document.form2.major, "Mineral", "Mineral");
	  AddToOptionList(document.form2.major, "Mining", "Mining");
	  AddToOptionList(document.form2.major, "Nano Technology", "Nano Technology");
	  AddToOptionList(document.form2.major, "Nuclear", "Nuclear");
	  AddToOptionList(document.form2.major, "Paint / Oil", "Paint / Oil");
	  AddToOptionList(document.form2.major, "Petroleum", "Petroleum");
	  AddToOptionList(document.form2.major, "Plastics", "Plastics");
	  AddToOptionList(document.form2.major, "Production / Industrial", "Production / Industrial");
	  AddToOptionList(document.form2.major, "Textile", "Textile");
	  AddToOptionList(document.form2.major, "Other Engineering", "Other Engineering");
   }
 if (degree[degree.selectedIndex].value == "MBA/PGDM")
 {
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
   	  AddToOptionList(document.form2.major, "Advertising/Mass Communication", "Advertising/Mass Communication");	  
      AddToOptionList(document.form2.major, "Business Adminstration", "Business Adminstration");
	  AddToOptionList(document.form2.major, "Finance", "Finance");
	  AddToOptionList(document.form2.major, "HR/Industrial Relations", "HR/Industrial Relations");
  	  AddToOptionList(document.form2.major, "Information Technology", "Information Technology");
  	  AddToOptionList(document.form2.major, "Insurance", "Insurance");
  	  AddToOptionList(document.form2.major, "International Business", "International Business");
  	  AddToOptionList(document.form2.major, "Management", "Management");
	  AddToOptionList(document.form2.major, "Marketing", "Marketing");
  	  AddToOptionList(document.form2.major, "Retail", "Retail");
  	  AddToOptionList(document.form2.major, "Systems", "Systems");
  	  AddToOptionList(document.form2.major, "Other Management", "Other Management");
   }
 if (degree[degree.selectedIndex].value == "Master of Computer Applications (M.C.A.)")
 {
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Computer Applications", "Computer Applications");
   }
 if (degree[degree.selectedIndex].value == "Medical(M.S/M.D)")
 {
 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Cardiology", "Cardiology");
      AddToOptionList(document.form2.major, "Dermatology", "Dermatology");
      AddToOptionList(document.form2.major, "ENT", "ENT");
      AddToOptionList(document.form2.major, "General Practitioner", "General Practitioner");
      AddToOptionList(document.form2.major, "Gyneocology", "Gyneocology");
      AddToOptionList(document.form2.major, "Hepatology", "Hepatology");
      AddToOptionList(document.form2.major, "Immunology", "Immunology");
      AddToOptionList(document.form2.major, "Microbiology", "Microbiology");
      AddToOptionList(document.form2.major, "Neonatal", "Neonatal");
      AddToOptionList(document.form2.major, "Nephrology", "Nephrology");
      AddToOptionList(document.form2.major, "Obstretrics", "Obstretrics");
      AddToOptionList(document.form2.major, "Oncology", "Oncology");
      AddToOptionList(document.form2.major, "Opthalmology", "Opthalmology");
      AddToOptionList(document.form2.major, "Orthopaedic", "Orthopaedic");
      AddToOptionList(document.form2.major, "Pathology", "Pathology");
      AddToOptionList(document.form2.major, "Pediatrics", "Pediatrics");
      AddToOptionList(document.form2.major, "Psychiatry", "Psychiatry");
      AddToOptionList(document.form2.major, "Psychology", "Psychology");
      AddToOptionList(document.form2.major, "Radiology", "Radiology");
      AddToOptionList(document.form2.major, "Rheumatology", "Rheumatology");
      AddToOptionList(document.form2.major, "Urology", "Urology");
      AddToOptionList(document.form2.major, "Any Specialization", "Any Specialization");
   }
 if (degree[degree.selectedIndex].value == "Master of Veterinary Science (M.V.Sc.)")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Veterinary Science", "Veterinary Science");
   }
 if (degree[degree.selectedIndex].value == "PG Diploma")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Chemical", "Chemical");
      AddToOptionList(document.form2.major, "Civil", "Civil");
      AddToOptionList(document.form2.major, "Computers", "Computers");
      AddToOptionList(document.form2.major, "Electrical", "Electrical");
      AddToOptionList(document.form2.major, "Electronics", "Electronics");
      AddToOptionList(document.form2.major, "Mechanical", "Mechanical");
   }
    if (degree[degree.selectedIndex].value == "PR/Advertising")
 	{
			  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "PR/Advertising", "PR/Advertising");
   }
    if (degree[degree.selectedIndex].value == "Tourism")
 	{
			  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Tourism", "Tourism");
   }
    if (degree[degree.selectedIndex].value == "PPG")
 	{
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Any", "Any");
      AddToOptionList(document.form2.major, "None", "None");
   }
  if (degree[degree.selectedIndex].value == "Ph.D")
 	{
	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Advertising / Mass Communication", "Advertising / Mass Communication");
      AddToOptionList(document.form2.major, "Agriculture", "Agriculture");
  	  AddToOptionList(document.form2.major, "Anthropology", "Anthropology");
      AddToOptionList(document.form2.major, "Architecture", "Architecture");
      AddToOptionList(document.form2.major, "Arts & Humanities", "Arts & Humanities");
	  AddToOptionList(document.form2.major, "Automobile", "Automobile");
      AddToOptionList(document.form2.major, "Aviation", "Aviation");
	  AddToOptionList(document.form2.major, "Bio-Chemistry / Bio-Technology", "Bio-Chemistry / Bio-Technology");
	  AddToOptionList(document.form2.major, "Biomedical", "Biomedical");
	  AddToOptionList(document.form2.major, "Ceramics", "Ceramics");
      AddToOptionList(document.form2.major, "Chemical", "Chemical");
	  AddToOptionList(document.form2.major, "Civil", "Civil");
      AddToOptionList(document.form2.major, "Commerce", "Commerce");
      AddToOptionList(document.form2.major, "Communication", "Communication");
	  AddToOptionList(document.form2.major, "Computers", "Computers");
	  AddToOptionList(document.form2.major, "Dairy Technology", "Dairy Technology");
	  AddToOptionList(document.form2.major, "Dermatology", "Dermatology");
	  AddToOptionList(document.form2.major, "Economics", "Economics");
  	  AddToOptionList(document.form2.major, "Electrical", "Electrical");
	  AddToOptionList(document.form2.major, "Electronics / Telecomunication", "Electronics / Telecomunication");
	  AddToOptionList(document.form2.major, "Energy", "Energy");
	  AddToOptionList(document.form2.major, "ENT", "ENT");
	  AddToOptionList(document.form2.major, "Environmental", "Environmental");
      AddToOptionList(document.form2.major, "None", "None");
   }
 if (degree[degree.selectedIndex].value == "Any Arts Degree")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Any Specialization", "Any Specialization");
   }
 if (degree[degree.selectedIndex].value == "Any Science Degree")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Any Specialization", "Any Specialization");
   }
 if (degree[degree.selectedIndex].value == "Any UG Degree")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Any Specialization", "Any Specialization");
   }
 if (degree[degree.selectedIndex].value == "Any PG Degree")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Any Specialization", "Any Specialization");
   }
 if (degree[degree.selectedIndex].value == "Any Engineering Degree")
 {
	 	  AddToOptionList(document.form2.major, "", "-- Select Specialization --	");
      AddToOptionList(document.form2.major, "Any Specialization", "Any Specialization");
   }
}

function AddToOptionList(OptionList, OptionValue, OptionText)
{
   // Add option to the bottom of the list
   OptionList[OptionList.length] = new Option(OptionText, OptionValue);
}

function ClearOptions(OptionList)
{
   // Always clear an option list from the last entry to the first
   for (x = OptionList.length; x >= 0; x = x - 1)
   {
      OptionList[x] = null;
   }
}