		function SetEducationDetailControlInit()
		{	//<asp:RadioButton id=rdoShowEducationDetail_1 runat="server"></asp:RadioButton>
			if( document.getElementById('txtShowEd_1').value == 1)
			{	
				document.getElementById('tb_Education').style.display = 'inline';
				document.getElementById('tb_EducationDetail1').style.display = 'inline';
			}
			else
			{
				document.getElementById('tb_Education').style.display = 'none';
				document.getElementById('tb_EducationDetail1').style.display = 'none';
			}
			
			if(document.getElementById('txtShowEd_2').value == 1)
			{ document.getElementById('tb_EducationDetail2').style.display = 'inline'; }
			else {document.getElementById('tb_EducationDetail2').style.display = 'none';}
			
			if(document.getElementById('txtShowEd_3').value == 1)
			{ document.getElementById('tb_EducationDetail3').style.display = 'inline'; }
			else {document.getElementById('tb_EducationDetail3').style.display = 'none';}
			
			if(document.getElementById('txtShowEd_4').value == 1)
			{ document.getElementById('tb_EducationDetail4').style.display = 'inline'; }
			else {document.getElementById('tb_EducationDetail4').style.display = 'none';}
			
			if(document.getElementById('txtShowEd_5').value == 1)
			{ document.getElementById('tb_EducationDetail5').style.display = 'inline'; }
			else {document.getElementById('tb_EducationDetail5').style.display = 'none';}
			
			if(document.getElementById('txtShowEd_6').value == 1)
			{ document.getElementById('tb_EducationDetail6').style.display = 'inline'; }
			else {document.getElementById('tb_EducationDetail6').style.display = 'none';}
		}

		function AddEducations()
		{
			if ( document.getElementById('tb_EducationDetail6').style.display == 'inline')
			{ return; }
				
			if( document.getElementById('tb_Education').style.display == 'none')
			{
				document.getElementById('tb_Education').style.display = 'inline';
				document.getElementById('tb_EducationDetail1').style.display = 'inline';
				document.getElementById('txtShowEd_1').value = 1;
			}			
			else
			{
				if ((document.getElementById('tb_EducationDetail1').style.display == 'inline') && (document.getElementById('tb_EducationDetail2').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail2').style.display = 'inline'; 
					document.getElementById('txtShowEd_2').value = 1;
					return;
				}
						
				if ((document.getElementById('tb_EducationDetail2').style.display == 'inline') && (document.getElementById('tb_EducationDetail3').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail3').style.display = 'inline'; 
					document.getElementById('txtShowEd_3').value = 1;
					return;
				}
						
				if ((document.getElementById('tb_EducationDetail3').style.display == 'inline') && (document.getElementById('tb_EducationDetail4').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail4').style.display = 'inline'; 
					document.getElementById('txtShowEd_4').value = 1;
					return;
				}
						
				if ((document.getElementById('tb_EducationDetail4').style.display == 'inline') && (document.getElementById('tb_EducationDetail5').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail5').style.display = 'inline'; 
					document.getElementById('txtShowEd_5').value = 1;
					return;
				}
						
				if ((document.getElementById('tb_EducationDetail5').style.display == 'inline') && (document.getElementById('tb_EducationDetail6').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail6').style.display = 'inline';
					document.getElementById('txtShowEd_6').value = 1; 
					return;
				}
				
			}
						
		}

		function DelEducations()
		{
			if (document.getElementById('tb_EducationDetail6').style.display == 'inline')
			{ 
				document.getElementById('tb_EducationDetail6').style.display = 'none'; 
				
				SetDefaultDDLEducationControl('ddlEducationLevel6','ddlEducationMonthStart6','ddlEducationYearStart6','ddlEducationMonthEnd6','ddlEducationYearEnd6');
				SetDefaultTXTEducationControl('txtInstituteName6','txtEducationCountry6','txtEducationFaculty6','txtEducationDepartment6','txtEducationGPA6');		
				document.getElementById('txtShowEd_6').value = 0;
				
				return;
			}
			else
			{
				if ((document.getElementById('tb_EducationDetail5').style.display == 'inline') && (document.getElementById('tb_EducationDetail6').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail5').style.display = 'none'; 
					
					SetDefaultDDLEducationControl('ddlEducationLevel5','ddlEducationMonthStart5','ddlEducationYearStart5','ddlEducationMonthEnd5','ddlEducationYearEnd5');
					SetDefaultTXTEducationControl('txtInstituteName5','txtEducationCountry5','txtEducationFaculty5','txtEducationDepartment5','txtEducationGPA5');		
					document.getElementById('txtShowEd_5').value = 0;
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail4').style.display == 'inline') && (document.getElementById('tb_EducationDetail5').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail4').style.display = 'none'; 
					
					SetDefaultDDLEducationControl('ddlEducationLevel4','ddlEducationMonthStart4','ddlEducationYearStart4','ddlEducationMonthEnd4','ddlEducationYearEnd4');
					SetDefaultTXTEducationControl('txtInstituteName4','txtEducationCountry4','txtEducationFaculty4','txtEducationDepartment4','txtEducationGPA4');		
					document.getElementById('txtShowEd_4').value = 0;
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail3').style.display == 'inline') && (document.getElementById('tb_EducationDetail4').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail3').style.display = 'none'; 
					
					SetDefaultDDLEducationControl('ddlEducationLevel3','ddlEducationMonthStart3','ddlEducationYearStart3','ddlEducationMonthEnd3','ddlEducationYearEnd3');
					SetDefaultTXTEducationControl('txtInstituteName3','txtEducationCountry3','txtEducationFaculty3','txtEducationDepartment3','txtEducationGPA3');	
					document.getElementById('txtShowEd_3').value = 0;
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail2').style.display == 'inline') && (document.getElementById('tb_EducationDetail3').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail2').style.display = 'none'; 
					
					SetDefaultDDLEducationControl('ddlEducationLevel2','ddlEducationMonthStart2','ddlEducationYearStart2','ddlEducationMonthEnd2','ddlEducationYearEnd2');
					SetDefaultTXTEducationControl('txtInstituteName2','txtEducationCountry2','txtEducationFaculty2','txtEducationDepartment2','txtEducationGPA2');	
					document.getElementById('txtShowEd_2').value = 0;
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail1').style.display == 'inline') && (document.getElementById('tb_EducationDetail2').style.display == 'none'))
				{ 
					document.getElementById('tb_Education').style.display = 'none';
					document.getElementById('tb_EducationDetail1').style.display = 'none'; 
					
					SetDefaultDDLEducationControl('ddlEducationLevel1','ddlEducationMonthStart1','ddlEducationYearStart1','ddlEducationMonthEnd1','ddlEducationYearEnd1');
					SetDefaultTXTEducationControl('txtInstituteName1','txtEducationCountry1','txtEducationFaculty1','txtEducationDepartment1','txtEducationGPA1');
					
					document.getElementById('txtShowEd_1').value = 0;
					return;
				}
				
			}
		}

		function SetDefaultDDLEducationControl(ddlEducationLevel,ddlEducationMonthStart,ddlEducationYearStart,ddlEducationMonthEnd,ddlEducationYearEnd)
		{
			document.all(ddlEducationLevel).value = 0;
			document.all(ddlEducationMonthStart).value = 0;
			document.all(ddlEducationYearStart).value = 0;
			document.all(ddlEducationMonthEnd).value = 0;
			document.all(ddlEducationYearEnd).value = 0;
		}
		function SetDefaultTXTEducationControl(txtInstituteName,txtEducationCountry,txtEducationFaculty,txtEducationDepartment,txtEducationGPA)
		{
			document.all(txtInstituteName).value = '';
			document.all(txtEducationCountry).value = '';
			document.all(txtEducationFaculty).value = '';
			document.all(txtEducationDepartment).value = '';
			document.all(txtEducationGPA).value = '';
		}
		function DeleteHiddEducationValue()
		{
			document.Form1.HiddEducation.value = parseInt(document.Form1.HiddEducation.value) - 1;
		}
		// Set Value in Hidd Textbox
		function DelHiddEducationDetail()
		{
			
			if(document.getElementById('tb_EducationDetail1').style.display == 'inline')
			{document.getElementById('txtShowEd_1').value = 1;}
			else{document.getElementById('txtShowEd_1').value = 0;}
			
			if(document.getElementById('tb_EducationDetail2').style.display == 'inline')
			{document.getElementById('txtShowEd_2').value = 1;}
			else{document.getElementById('txtShowEd_2').value = 0;}
			
			if(document.getElementById('tb_EducationDetail3').style.display == 'inline')
			{document.getElementById('txtShowEd_3').value = 1;}
			else{document.getElementById('txtShowEd_3').value = 0;}
			
			if(document.getElementById('tb_EducationDetail4').style.display == 'inline')
			{document.getElementById('txtShowEd_4').value = 1;}
			else{document.getElementById('txtShowEd_4').value = 0;}
			
			if(document.getElementById('tb_EducationDetail5').style.display == 'inline')
			{document.getElementById('txtShowEd_5').value = 1;}
			else{document.getElementById('txtShowEd_5').value = 0;}
			
			if(document.getElementById('tb_EducationDetail6').style.display == 'inline')
			{document.getElementById('txtShowEd_6').value = 1;}
			else{document.getElementById('txtShowEd_6').value = 0;}
			
		}
		
		function HiddControlEducationDetail()
		{
				if (document.getElementById('tb_EducationDetail6').style.display == 'inline')
				{
					document.getElementById('tb_EducationDetail6').style.display = 'none'; 
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail5').style.display == 'inline') && (document.getElementById('tb_EducationDetail6').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail5').style.display = 'none'; 
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail4').style.display == 'inline') && (document.getElementById('tb_EducationDetail5').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail4').style.display = 'none'; 
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail3').style.display == 'inline') && (document.getElementById('tb_EducationDetail4').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail3').style.display = 'none'; 
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail2').style.display == 'inline') && (document.getElementById('tb_EducationDetail3').style.display == 'none'))
				{ 
					document.getElementById('tb_EducationDetail2').style.display = 'none'; 
					return;
				}
				
				if ((document.getElementById('tb_EducationDetail1').style.display == 'inline') && (document.getElementById('tb_EducationDetail2').style.display == 'none'))
				{ 
					document.getElementById('tb_Education').style.display = 'none';
					document.getElementById('tb_EducationDetail1').style.display = 'none'; 
					return;
				}
		}
		
		function DelEducationsDetail_6()
		{
			CheckEducationDetail_6();
			HiddControlEducationDetail();
			//document.getElementById('tb_EducationDetail6').style.display = 'none';
		}
		
		function CheckEducationDetail_6()
		{
				// Set Defaul Value
				SetDefaultDDLEducationControl('ddlEducationLevel6','ddlEducationMonthStart6','ddlEducationYearStart6','ddlEducationMonthEnd6','ddlEducationYearEnd6');
				SetDefaultTXTEducationControl('txtInstituteName6','txtEducationCountry6','txtEducationFaculty6','txtEducationDepartment6','txtEducationGPA6');
		}
		
		function DelEducationsDetail_5()
		{
			if(document.getElementById('tb_EducationDetail6').style.display == 'none')
			{
				SetDefaultDDLEducationControl('ddlEducationLevel5','ddlEducationMonthStart5','ddlEducationYearStart5','ddlEducationMonthEnd5','ddlEducationYearEnd5');
				SetDefaultTXTEducationControl('txtInstituteName5','txtEducationCountry5','txtEducationFaculty5','txtEducationDepartment5','txtEducationGPA5');
				
				document.getElementById('tb_EducationDetail5').style.display = 'none';
			}
			else
			{ 
				CheckEducationDetail_5(); 
				
				CheckEducationDetail_6();
				
				HiddControlEducationDetail();
			}
			
		}
		function CheckEducationDetail_5()
		{
			
				// Transfer Data
				document.all('ddlEducationLevel5').value = document.all('ddlEducationLevel6').value;
				document.all('ddlEducationMonthStart5').value = document.all('ddlEducationMonthStart6').value;
				document.all('ddlEducationYearStart5').value = document.all('ddlEducationYearStart6').value;
				
				document.all('ddlEducationMonthEnd5').value = document.all('ddlEducationMonthEnd6').value;
				document.all('ddlEducationYearEnd5').value = document.all('ddlEducationYearEnd6').value;
				
				document.Form1.txtInstituteName5.value = document.Form1.txtInstituteName6.value;
				document.Form1.txtEducationCountry5.value = document.Form1.txtEducationCountry6.value;
				document.Form1.txtEducationFaculty5.value = document.Form1.txtEducationFaculty6.value;
				document.Form1.txtEducationDepartment5.value = document.Form1.txtEducationDepartment6.value;
				document.Form1.txtEducationGPA5.value = document.Form1.txtEducationGPA6.value;
				// Set Defaul Value
				SetDefaultDDLEducationControl('ddlEducationLevel6','ddlEducationMonthStart6','ddlEducationYearStart6','ddlEducationMonthEnd6','ddlEducationYearEnd6');
				SetDefaultTXTEducationControl('txtInstituteName6','txtEducationCountry6','txtEducationFaculty6','txtEducationDepartment6','txtEducationGPA6');
		}
		
		function DelEducationsDetail_4()
		{
			if(document.getElementById('tb_EducationDetail5').style.display == 'none')
			{
				SetDefaultDDLEducationControl('ddlEducationLevel4','ddlEducationMonthStart4','ddlEducationYearStart4','ddlEducationMonthEnd4','ddlEducationYearEnd4');
				SetDefaultTXTEducationControl('txtInstituteName4','txtEducationCountry4','txtEducationFaculty4','txtEducationDepartment4','txtEducationGPA4');
				
				document.getElementById('tb_EducationDetail4').style.display = 'none';
			}
			else
			{ 
				CheckEducationDetail_4(); 
				
				CheckEducationDetail_5();
				CheckEducationDetail_6();
				
				HiddControlEducationDetail();
			}
		}
		function CheckEducationDetail_4()
		{
			
				// Transfer Data
				document.all('ddlEducationLevel4').value = document.all('ddlEducationLevel5').value;
				document.all('ddlEducationMonthStart4').value = document.all('ddlEducationMonthStart5').value;
				document.all('ddlEducationYearStart4').value = document.all('ddlEducationYearStart5').value;
				
				document.all('ddlEducationMonthEnd4').value = document.all('ddlEducationMonthEnd5').value;
				document.all('ddlEducationYearEnd4').value = document.all('ddlEducationYearEnd5').value;
				
				document.Form1.txtInstituteName4.value = document.Form1.txtInstituteName5.value;
				document.Form1.txtEducationCountry4.value = document.Form1.txtEducationCountry5.value;
				document.Form1.txtEducationFaculty4.value = document.Form1.txtEducationFaculty5.value;
				document.Form1.txtEducationDepartment4.value = document.Form1.txtEducationDepartment5.value;
				document.Form1.txtEducationGPA4.value = document.Form1.txtEducationGPA5.value;
				// Set Defaul Value
				SetDefaultDDLEducationControl('ddlEducationLevel5','ddlEducationMonthStart5','ddlEducationYearStart5','ddlEducationMonthEnd5','ddlEducationYearEnd5');
				SetDefaultTXTEducationControl('txtInstituteName5','txtEducationCountry5','txtEducationFaculty5','txtEducationDepartment5','txtEducationGPA5');
				
		}
		
		function DelEducationsDetail_3()
		{
			if(document.getElementById('tb_EducationDetail4').style.display == 'none')
			{
				SetDefaultDDLEducationControl('ddlEducationLevel3','ddlEducationMonthStart3','ddlEducationYearStart3','ddlEducationMonthEnd3','ddlEducationYearEnd3');
				SetDefaultTXTEducationControl('txtInstituteName3','txtEducationCountry3','txtEducationFaculty3','txtEducationDepartment3','txtEducationGPA3');
				
				document.getElementById('tb_EducationDetail3').style.display = 'none';
			}
			else
			{ 
				CheckEducationDetail_3();
				
				CheckEducationDetail_4();
				CheckEducationDetail_5();
				CheckEducationDetail_6();
				
				HiddControlEducationDetail(); 
			}
		}
		function CheckEducationDetail_3()
		{
			
				// Transfer Data
				document.all('ddlEducationLevel3').value = document.all('ddlEducationLevel4').value;
				document.all('ddlEducationMonthStart3').value = document.all('ddlEducationMonthStart4').value;
				document.all('ddlEducationYearStart3').value = document.all('ddlEducationYearStart4').value;
				
				document.all('ddlEducationMonthEnd3').value = document.all('ddlEducationMonthEnd4').value;
				document.all('ddlEducationYearEnd3').value = document.all('ddlEducationYearEnd4').value;
				
				document.Form1.txtInstituteName3.value = document.Form1.txtInstituteName4.value;
				document.Form1.txtEducationCountry3.value = document.Form1.txtEducationCountry4.value;
				document.Form1.txtEducationFaculty3.value = document.Form1.txtEducationFaculty4.value;
				document.Form1.txtEducationDepartment3.value = document.Form1.txtEducationDepartment4.value;
				document.Form1.txtEducationGPA3.value = document.Form1.txtEducationGPA4.value;
				// Set Defaul Value
				SetDefaultDDLEducationControl('ddlEducationLevel4','ddlEducationMonthStart4','ddlEducationYearStart4','ddlEducationMonthEnd4','ddlEducationYearEnd4');
				SetDefaultTXTEducationControl('txtInstituteName4','txtEducationCountry4','txtEducationFaculty4','txtEducationDepartment4','txtEducationGPA4');
				
		}
		
		function DelEducationsDetail_2()
		{
			if(document.getElementById('tb_EducationDetail3').style.display == 'none')
			{	//alert('2-1');
				SetDefaultDDLEducationControl('ddlEducationLevel2','ddlEducationMonthStart2','ddlEducationYearStart2','ddlEducationMonthEnd2','ddlEducationYearEnd2');
				SetDefaultTXTEducationControl('txtInstituteName2','txtEducationCountry2','txtEducationFaculty2','txtEducationDepartment2','txtEducationGPA2');
				
				document.getElementById('tb_EducationDetail2').style.display = 'none';
			}
			else
			{	
				CheckEducationDetail_2();
				
				CheckEducationDetail_3();
				CheckEducationDetail_4();
				CheckEducationDetail_5();
				CheckEducationDetail_6();
				
				HiddControlEducationDetail();
			}
		}
		function CheckEducationDetail_2()
		{
				// Transfer Data
				document.all('ddlEducationLevel2').value = document.all('ddlEducationLevel3').value;
				document.all('ddlEducationMonthStart2').value = document.all('ddlEducationMonthStart3').value;
				document.all('ddlEducationYearStart2').value = document.all('ddlEducationYearStart3').value;
				
				document.all('ddlEducationMonthEnd2').value = document.all('ddlEducationMonthEnd3').value;
				document.all('ddlEducationYearEnd2').value = document.all('ddlEducationYearEnd3').value;
				
				document.Form1.txtInstituteName2.value = document.Form1.txtInstituteName3.value;
				document.Form1.txtEducationCountry2.value = document.Form1.txtEducationCountry3.value;
				document.Form1.txtEducationFaculty2.value = document.Form1.txtEducationFaculty3.value;
				document.Form1.txtEducationDepartment2.value = document.Form1.txtEducationDepartment3.value;
				document.Form1.txtEducationGPA2.value = document.Form1.txtEducationGPA3.value;
				// Set Defaul Value
				SetDefaultDDLEducationControl('ddlEducationLevel3','ddlEducationMonthStart3','ddlEducationYearStart3','ddlEducationMonthEnd3','ddlEducationYearEnd3');
				SetDefaultTXTEducationControl('txtInstituteName3','txtEducationCountry3','txtEducationFaculty3','txtEducationDepartment3','txtEducationGPA3');
		}
		
		function DelEducationsDetail_1()
		{
			if(document.getElementById('tb_EducationDetail2').style.display == 'none')
			{
				SetDefaultDDLEducationControl('ddlEducationLevel1','ddlEducationMonthStart1','ddlEducationYearStart1','ddlEducationMonthEnd1','ddlEducationYearEnd1');
				SetDefaultTXTEducationControl('txtInstituteName1','txtEducationCountry1','txtEducationFaculty1','txtEducationDepartment1','txtEducationGPA1');
				
				document.getElementById('tb_Education').style.display = 'none';
				document.getElementById('tb_EducationDetail1').style.display = 'none';
			}
			else
			{ 
				CheckEducationDetail_1();
				//DelEducationsDetail_2();
				//DelEducationsDetail_3();
				//DelEducationsDetail_4(); 
				//DelEducationsDetail_5(); 
				CheckEducationDetail_2();
				CheckEducationDetail_3();
				CheckEducationDetail_4();
				CheckEducationDetail_5();
				CheckEducationDetail_6();
				
				HiddControlEducationDetail();
			}
		}
		function CheckEducationDetail_1()
		{
			
				// Transfer Data
				document.all('ddlEducationLevel1').value = document.all('ddlEducationLevel2').value;
				document.all('ddlEducationMonthStart1').value = document.all('ddlEducationMonthStart2').value;
				document.all('ddlEducationYearStart1').value = document.all('ddlEducationYearStart2').value;
				
				document.all('ddlEducationMonthEnd1').value = document.all('ddlEducationMonthEnd2').value;
				document.all('ddlEducationYearEnd1').value = document.all('ddlEducationYearEnd2').value;
				
				document.Form1.txtInstituteName1.value = document.Form1.txtInstituteName2.value;
				document.Form1.txtEducationCountry1.value = document.Form1.txtEducationCountry2.value;
				document.Form1.txtEducationFaculty1.value = document.Form1.txtEducationFaculty2.value;
				document.Form1.txtEducationDepartment1.value = document.Form1.txtEducationDepartment2.value;
				document.Form1.txtEducationGPA1.value = document.Form1.txtEducationGPA2.value;
				// Set Defaul Value
				SetDefaultDDLEducationControl('ddlEducationLevel2','ddlEducationMonthStart2','ddlEducationYearStart2','ddlEducationMonthEnd2','ddlEducationYearEnd2');
				SetDefaultTXTEducationControl('txtInstituteName2','txtEducationCountry2','txtEducationFaculty2','txtEducationDepartment2','txtEducationGPA2');
		}
		