function cclick()
{
    for (var i=0;i<document.AppForm.dobmm.options.length;i++) {
         if (document.AppForm.dobmm.options[i].selected == true)
         {
    		 if (document.AppForm.dobmm.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.dobdd.options.length;j++) 
					{
				         if (document.AppForm.dobdd.options[j].selected == true)
						 {
						 	if (document.AppForm.dobdd.options[j].value > 28)
							{
							   if (document.AppForm.dobdd.options[j].value == 29 & ((document.AppForm.dobyy.options.value%4) == 0 || document.AppForm.dobyy.options.value == 2008 || document.AppForm.dobyy.options.value == 2012 || document.AppForm.dobyy.options.value == 2016  || document.AppForm.dobyy.options.value == 2020  || document.AppForm.dobyy.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.dobdd.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.dobmm.options[i].value == 4 || document.AppForm.dobmm.options[i].value == 6 || document.AppForm.dobmm.options[i].value == 9 || document.AppForm.dobmm.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.dobdd.options.length;j++) 
				   {
				         if (document.AppForm.dobdd.options[j].selected == true)
						 {
						 	if (document.AppForm.dobdd.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.dobdd.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				



function cclick2()
{
    for (var i=0;i<document.AppForm.rm.options.length;i++) {
         if (document.AppForm.rm.options[i].selected == true)
         {
    		 if (document.AppForm.rm.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.rd.options.length;j++) 
					{
				         if (document.AppForm.rd.options[j].selected == true)
						 {
						 	if (document.AppForm.rd.options[j].value > 28)
							{
							   if (document.AppForm.rd.options[j].value == 29 & ((document.AppForm.ry.options.value%4) == 0 || document.AppForm.ry.options.value == 2008 || document.AppForm.ry.options.value == 2012 || document.AppForm.ry.options.value == 2016  || document.AppForm.ry.options.value == 2020  || document.AppForm.ry.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.rd.options[27].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.rm.options[i].value == 4 || document.AppForm.rm.options[i].value == 6 || document.AppForm.rm.options[i].value == 9 || document.AppForm.rm.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.rd.options.length;j++) 
				   {
				         if (document.AppForm.rd.options[j].selected == true)
						 {
						 	if (document.AppForm.rd.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.rd.options[29].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick3()
{
    for (var i=0;i<document.AppForm.empm1.options.length;i++) {
         if (document.AppForm.empm1.options[i].selected == true)
         {
    		 if (document.AppForm.empm1.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd1.options.length;j++) 
					{
				         if (document.AppForm.empd1.options[j].selected == true)
						 {
						 	if (document.AppForm.empd1.options[j].value > 28)
							{
							   if (document.AppForm.empd1.options[j].value == 29 & ((document.AppForm.empy1.options.value%4) == 0 || document.AppForm.empy1.options.value == 2008 || document.AppForm.empy1.options.value == 2012 || document.AppForm.empy1.options.value == 2016  || document.AppForm.empy1.options.value == 2020  || document.AppForm.empy1.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd1.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm1.options[i].value == 4 || document.AppForm.empm1.options[i].value == 6 || document.AppForm.empm1.options[i].value == 9 || document.AppForm.empm1.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd1.options.length;j++) 
				   {
				         if (document.AppForm.empd1.options[j].selected == true)
						 {
						 	if (document.AppForm.empd1.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd1.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick4()
{
    for (var i=0;i<document.AppForm.emptm1.options.length;i++) {
         if (document.AppForm.emptm1.options[i].selected == true)
         {
    		 if (document.AppForm.emptm1.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd1.options.length;j++) 
					{
				         if (document.AppForm.emptd1.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd1.options[j].value > 28)
							{
							   if (document.AppForm.emptd1.options[j].value == 29 & ((document.AppForm.empt1.options.value%4) == 0 || document.AppForm.empt1.options.value == 2008 || document.AppForm.empt1.options.value == 2012 || document.AppForm.empt1.options.value == 2016  || document.AppForm.empt1.options.value == 2020  || document.AppForm.empt1.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd1.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm1.options[i].value == 4 || document.AppForm.emptm1.options[i].value == 6 || document.AppForm.emptm1.options[i].value == 9 || document.AppForm.emptm1.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd1.options.length;j++) 
				   {
				         if (document.AppForm.emptd1.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd1.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd1.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick5()
{
    for (var i=0;i<document.AppForm.empm2.options.length;i++) {
         if (document.AppForm.empm2.options[i].selected == true)
         {
    		 if (document.AppForm.empm2.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd2.options.length;j++) 
					{
				         if (document.AppForm.empd2.options[j].selected == true)
						 {
						 	if (document.AppForm.empd2.options[j].value > 28)
							{
							   if (document.AppForm.empd2.options[j].value == 29 & ((document.AppForm.empy2.options.value%4) == 0 || document.AppForm.empy2.options.value == 2008 || document.AppForm.empy2.options.value == 2012 || document.AppForm.empy2.options.value == 2016  || document.AppForm.empy2.options.value == 2020  || document.AppForm.empy2.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd2.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm2.options[i].value == 4 || document.AppForm.empm2.options[i].value == 6 || document.AppForm.empm2.options[i].value == 9 || document.AppForm.empm2.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd2.options.length;j++) 
				   {
				         if (document.AppForm.empd2.options[j].selected == true)
						 {
						 	if (document.AppForm.empd2.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd2.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick6()
{
    for (var i=0;i<document.AppForm.emptm2.options.length;i++) {
         if (document.AppForm.emptm2.options[i].selected == true)
         {
    		 if (document.AppForm.emptm2.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd2.options.length;j++) 
					{
				         if (document.AppForm.emptd2.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd2.options[j].value > 28)
							{
							   if (document.AppForm.emptd2.options[j].value == 29 & ((document.AppForm.empt2.options.value%4) == 0 || document.AppForm.empt2.options.value == 2008 || document.AppForm.empt2.options.value == 2012 || document.AppForm.empt2.options.value == 2016  || document.AppForm.empt2.options.value == 2020  || document.AppForm.empt2.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd2.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm2.options[i].value == 4 || document.AppForm.emptm2.options[i].value == 6 || document.AppForm.emptm2.options[i].value == 9 || document.AppForm.emptm2.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd2.options.length;j++) 
				   {
				         if (document.AppForm.emptd2.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd2.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd2.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick7()
{
    for (var i=0;i<document.AppForm.empm3.options.length;i++) {
         if (document.AppForm.empm3.options[i].selected == true)
         {
    		 if (document.AppForm.empm3.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd3.options.length;j++) 
					{
				         if (document.AppForm.empd3.options[j].selected == true)
						 {
						 	if (document.AppForm.empd3.options[j].value > 28)
							{
							   if (document.AppForm.empd3.options[j].value == 29 & ((document.AppForm.empy3.options.value%4) == 0 || document.AppForm.empy3.options.value == 2008 || document.AppForm.empy3.options.value == 2012 || document.AppForm.empy3.options.value == 2016  || document.AppForm.empy3.options.value == 2020  || document.AppForm.empy3.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd3.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm3.options[i].value == 4 || document.AppForm.empm3.options[i].value == 6 || document.AppForm.empm3.options[i].value == 9 || document.AppForm.empm3.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd3.options.length;j++) 
				   {
				         if (document.AppForm.empd3.options[j].selected == true)
						 {
						 	if (document.AppForm.empd3.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd3.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick8()
{
    for (var i=0;i<document.AppForm.emptm3.options.length;i++) {
         if (document.AppForm.emptm3.options[i].selected == true)
         {
    		 if (document.AppForm.emptm3.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd3.options.length;j++) 
					{
				         if (document.AppForm.emptd3.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd3.options[j].value > 28)
							{
							   if (document.AppForm.emptd3.options[j].value == 29 & ((document.AppForm.empt3.options.value%4) == 0 || document.AppForm.empt3.options.value == 2008 || document.AppForm.empt3.options.value == 2012 || document.AppForm.empt3.options.value == 2016  || document.AppForm.empt3.options.value == 2020  || document.AppForm.empt3.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd3.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm3.options[i].value == 4 || document.AppForm.emptm3.options[i].value == 6 || document.AppForm.emptm3.options[i].value == 9 || document.AppForm.emptm3.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd3.options.length;j++) 
				   {
				         if (document.AppForm.emptd3.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd3.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd3.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick9()
{
    for (var i=0;i<document.AppForm.empm4.options.length;i++) {
         if (document.AppForm.empm4.options[i].selected == true)
         {
    		 if (document.AppForm.empm4.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd4.options.length;j++) 
					{
				         if (document.AppForm.empd4.options[j].selected == true)
						 {
						 	if (document.AppForm.empd4.options[j].value > 28)
							{
							   if (document.AppForm.empd4.options[j].value == 29 & ((document.AppForm.empy4.options.value%4) == 0 || document.AppForm.empy4.options.value == 2008 || document.AppForm.empy4.options.value == 2012 || document.AppForm.empy4.options.value == 2016  || document.AppForm.empy4.options.value == 2020  || document.AppForm.empy4.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd4.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm4.options[i].value == 4 || document.AppForm.empm4.options[i].value == 6 || document.AppForm.empm4.options[i].value == 9 || document.AppForm.empm4.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd4.options.length;j++) 
				   {
				         if (document.AppForm.empd4.options[j].selected == true)
						 {
						 	if (document.AppForm.empd4.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd4.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick10()
{
    for (var i=0;i<document.AppForm.emptm4.options.length;i++) {
         if (document.AppForm.emptm4.options[i].selected == true)
         {
    		 if (document.AppForm.emptm4.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd4.options.length;j++) 
					{
				         if (document.AppForm.emptd4.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd4.options[j].value > 28)
							{
							   if (document.AppForm.emptd4.options[j].value == 29 & ((document.AppForm.empt4.options.value%4) == 0 || document.AppForm.empt4.options.value == 2008 || document.AppForm.empt4.options.value == 2012 || document.AppForm.empt4.options.value == 2016  || document.AppForm.empt4.options.value == 2020  || document.AppForm.empt4.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd4.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm4.options[i].value == 4 || document.AppForm.emptm4.options[i].value == 6 || document.AppForm.emptm4.options[i].value == 9 || document.AppForm.emptm4.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd4.options.length;j++) 
				   {
				         if (document.AppForm.emptd4.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd4.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd4.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick11()
{
    for (var i=0;i<document.AppForm.empm5.options.length;i++) {
         if (document.AppForm.empm5.options[i].selected == true)
         {
    		 if (document.AppForm.empm5.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd5.options.length;j++) 
					{
				         if (document.AppForm.empd5.options[j].selected == true)
						 {
						 	if (document.AppForm.empd5.options[j].value > 28)
							{
							   if (document.AppForm.empd5.options[j].value == 29 & ((document.AppForm.empy5.options.value%4) == 0 || document.AppForm.empy5.options.value == 2008 || document.AppForm.empy5.options.value == 2012 || document.AppForm.empy5.options.value == 2016  || document.AppForm.empy5.options.value == 2020  || document.AppForm.empy5.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd5.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm5.options[i].value == 4 || document.AppForm.empm5.options[i].value == 6 || document.AppForm.empm5.options[i].value == 9 || document.AppForm.empm5.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd5.options.length;j++) 
				   {
				         if (document.AppForm.empd5.options[j].selected == true)
						 {
						 	if (document.AppForm.empd5.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd5.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick12()
{
    for (var i=0;i<document.AppForm.emptm5.options.length;i++) {
         if (document.AppForm.emptm5.options[i].selected == true)
         {
    		 if (document.AppForm.emptm5.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd5.options.length;j++) 
					{
				         if (document.AppForm.emptd5.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd5.options[j].value > 28)
							{
							   if (document.AppForm.emptd5.options[j].value == 29 & ((document.AppForm.empt5.options.value%4) == 0 || document.AppForm.empt5.options.value == 2008 || document.AppForm.empt5.options.value == 2012 || document.AppForm.empt5.options.value == 2016  || document.AppForm.empt5.options.value == 2020  || document.AppForm.empt5.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd5.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm5.options[i].value == 4 || document.AppForm.emptm5.options[i].value == 6 || document.AppForm.emptm5.options[i].value == 9 || document.AppForm.emptm5.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd5.options.length;j++) 
				   {
				         if (document.AppForm.emptd5.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd5.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd5.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick13()
{
    for (var i=0;i<document.AppForm.empm6.options.length;i++) {
         if (document.AppForm.empm6.options[i].selected == true)
         {
    		 if (document.AppForm.empm6.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd6.options.length;j++) 
					{
				         if (document.AppForm.empd6.options[j].selected == true)
						 {
						 	if (document.AppForm.empd6.options[j].value > 28)
							{
							   if (document.AppForm.empd6.options[j].value == 29 & ((document.AppForm.empy6.options.value%4) == 0 || document.AppForm.empy6.options.value == 2008 || document.AppForm.empy6.options.value == 2012 || document.AppForm.empy6.options.value == 2016  || document.AppForm.empy6.options.value == 2020  || document.AppForm.empy6.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd6.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm6.options[i].value == 4 || document.AppForm.empm6.options[i].value == 6 || document.AppForm.empm6.options[i].value == 9 || document.AppForm.empm6.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd6.options.length;j++) 
				   {
				         if (document.AppForm.empd6.options[j].selected == true)
						 {
						 	if (document.AppForm.empd6.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd6.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick14()
{
    for (var i=0;i<document.AppForm.emptm6.options.length;i++) {
         if (document.AppForm.emptm6.options[i].selected == true)
         {
    		 if (document.AppForm.emptm6.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd6.options.length;j++) 
					{
				         if (document.AppForm.emptd6.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd6.options[j].value > 28)
							{
							   if (document.AppForm.emptd6.options[j].value == 29 & ((document.AppForm.empt6.options.value%4) == 0 || document.AppForm.empt6.options.value == 2008 || document.AppForm.empt6.options.value == 2012 || document.AppForm.empt6.options.value == 2016  || document.AppForm.empt6.options.value == 2020  || document.AppForm.empt6.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd6.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm6.options[i].value == 4 || document.AppForm.emptm6.options[i].value == 6 || document.AppForm.emptm6.options[i].value == 9 || document.AppForm.emptm6.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd6.options.length;j++) 
				   {
				         if (document.AppForm.emptd6.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd6.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd6.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick16()
{
    for (var i=0;i<document.AppForm.emptm7.options.length;i++) {
         if (document.AppForm.emptm7.options[i].selected == true)
         {
    		 if (document.AppForm.emptm7.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd7.options.length;j++) 
					{
				         if (document.AppForm.emptd7.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd7.options[j].value > 28)
							{
							   if (document.AppForm.emptd7.options[j].value == 29 & ((document.AppForm.empt7.options.value%4) == 0 || document.AppForm.empt7.options.value == 2008 || document.AppForm.empt7.options.value == 2012 || document.AppForm.empt7.options.value == 2016  || document.AppForm.empt7.options.value == 2020  || document.AppForm.empt7.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd7.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm7.options[i].value == 4 || document.AppForm.emptm7.options[i].value == 6 || document.AppForm.emptm7.options[i].value == 9 || document.AppForm.emptm7.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd7.options.length;j++) 
				   {
				         if (document.AppForm.emptd7.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd7.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd7.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick15()
{
    for (var i=0;i<document.AppForm.empm7.options.length;i++) {
         if (document.AppForm.empm7.options[i].selected == true)
         {
    		 if (document.AppForm.empm7.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd7.options.length;j++) 
					{
				         if (document.AppForm.empd7.options[j].selected == true)
						 {
						 	if (document.AppForm.empd7.options[j].value > 28)
							{
							   if (document.AppForm.empd7.options[j].value == 29 & ((document.AppForm.empy7.options.value%4) == 0 || document.AppForm.empy7.options.value == 2008 || document.AppForm.empy7.options.value == 2012 || document.AppForm.empy7.options.value == 2016  || document.AppForm.empy7.options.value == 2020  || document.AppForm.empy7.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd7.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm7.options[i].value == 4 || document.AppForm.empm7.options[i].value == 6 || document.AppForm.empm7.options[i].value == 9 || document.AppForm.empm7.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd7.options.length;j++) 
				   {
				         if (document.AppForm.empd7.options[j].selected == true)
						 {
						 	if (document.AppForm.empd7.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd7.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick17()
{
    for (var i=0;i<document.AppForm.empm8.options.length;i++) {
         if (document.AppForm.empm8.options[i].selected == true)
         {
    		 if (document.AppForm.empm8.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd8.options.length;j++) 
					{
				         if (document.AppForm.empd8.options[j].selected == true)
						 {
						 	if (document.AppForm.empd8.options[j].value > 28)
							{
							   if (document.AppForm.empd8.options[j].value == 29 & ((document.AppForm.empy8.options.value%4) == 0 || document.AppForm.empy8.options.value == 2008 || document.AppForm.empy8.options.value == 2012 || document.AppForm.empy8.options.value == 2016  || document.AppForm.empy8.options.value == 2020  || document.AppForm.empy8.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd8.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm8.options[i].value == 4 || document.AppForm.empm8.options[i].value == 6 || document.AppForm.empm8.options[i].value == 9 || document.AppForm.empm8.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd8.options.length;j++) 
				   {
				         if (document.AppForm.empd8.options[j].selected == true)
						 {
						 	if (document.AppForm.empd8.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd8.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick18()
{
    for (var i=0;i<document.AppForm.emptm8.options.length;i++) {
         if (document.AppForm.emptm8.options[i].selected == true)
         {
    		 if (document.AppForm.emptm8.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd8.options.length;j++) 
					{
				         if (document.AppForm.emptd8.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd8.options[j].value > 28)
							{
							   if (document.AppForm.emptd8.options[j].value == 29 & ((document.AppForm.empt8.options.value%4) == 0 || document.AppForm.empt8.options.value == 2008 || document.AppForm.empt8.options.value == 2012 || document.AppForm.empt8.options.value == 2016  || document.AppForm.empt8.options.value == 2020  || document.AppForm.empt8.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd8.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm8.options[i].value == 4 || document.AppForm.emptm8.options[i].value == 6 || document.AppForm.emptm8.options[i].value == 9 || document.AppForm.emptm8.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd8.options.length;j++) 
				   {
				         if (document.AppForm.emptd8.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd8.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd8.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick19()
{
    for (var i=0;i<document.AppForm.empm9.options.length;i++) {
         if (document.AppForm.empm9.options[i].selected == true)
         {
    		 if (document.AppForm.empm9.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd9.options.length;j++) 
					{
				         if (document.AppForm.empd9.options[j].selected == true)
						 {
						 	if (document.AppForm.empd9.options[j].value > 28)
							{
							   if (document.AppForm.empd9.options[j].value == 29 & ((document.AppForm.empy9.options.value%4) == 0 || document.AppForm.empy9.options.value == 2008 || document.AppForm.empy9.options.value == 2012 || document.AppForm.empy9.options.value == 2016  || document.AppForm.empy9.options.value == 2020  || document.AppForm.empy9.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd9.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm9.options[i].value == 4 || document.AppForm.empm9.options[i].value == 6 || document.AppForm.empm9.options[i].value == 9 || document.AppForm.empm9.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd9.options.length;j++) 
				   {
				         if (document.AppForm.empd9.options[j].selected == true)
						 {
						 	if (document.AppForm.empd9.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd9.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick20()
{
    for (var i=0;i<document.AppForm.emptm9.options.length;i++) {
         if (document.AppForm.emptm9.options[i].selected == true)
         {
    		 if (document.AppForm.emptm9.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd9.options.length;j++) 
					{
				         if (document.AppForm.emptd9.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd9.options[j].value > 28)
							{
							   if (document.AppForm.emptd9.options[j].value == 29 & ((document.AppForm.empt9.options.value%4) == 0 || document.AppForm.empt9.options.value == 2008 || document.AppForm.empt9.options.value == 2012 || document.AppForm.empt9.options.value == 2016  || document.AppForm.empt9.options.value == 2020  || document.AppForm.empt9.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd9.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm9.options[i].value == 4 || document.AppForm.emptm9.options[i].value == 6 || document.AppForm.emptm9.options[i].value == 9 || document.AppForm.emptm9.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd9.options.length;j++) 
				   {
				         if (document.AppForm.emptd9.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd9.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd9.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				
function cclick21()
{
    for (var i=0;i<document.AppForm.empm10.options.length;i++) {
         if (document.AppForm.empm10.options[i].selected == true)
         {
    		 if (document.AppForm.empm10.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.empd10.options.length;j++) 
					{
				         if (document.AppForm.empd10.options[j].selected == true)
						 {
						 	if (document.AppForm.empd10.options[j].value > 28)
							{
							   if (document.AppForm.empd10.options[j].value == 29 & ((document.AppForm.empy10.options.value%4) == 0 || document.AppForm.empy10.options.value == 2008 || document.AppForm.empy10.options.value == 2012 || document.AppForm.empy10.options.value == 2016  || document.AppForm.empy10.options.value == 2020  || document.AppForm.empy10.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.empd10.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.empm10.options[i].value == 4 || document.AppForm.empm10.options[i].value == 6 || document.AppForm.empm10.options[i].value == 9 || document.AppForm.empm10.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.empd10.options.length;j++) 
				   {
				         if (document.AppForm.empd10.options[j].selected == true)
						 {
						 	if (document.AppForm.empd10.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.empd10.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				

function cclick22()
{
    for (var i=0;i<document.AppForm.emptm10.options.length;i++) {
         if (document.AppForm.emptm10.options[i].selected == true)
         {
    		 if (document.AppForm.emptm10.options[i].value == 2)
			 {
				    for (var j=0;j<document.AppForm.emptd10.options.length;j++) 
					{
				         if (document.AppForm.emptd10.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd10.options[j].value > 28)
							{
							   if (document.AppForm.emptd10.options[j].value == 29 & ((document.AppForm.empt10.options.value%4) == 0 || document.AppForm.empt10.options.value == 2008 || document.AppForm.empt10.options.value == 2012 || document.AppForm.empt10.options.value == 2016  || document.AppForm.empt10.options.value == 2020  || document.AppForm.empt10.options.value == 2024))
							  {
							  }
							  else
							  {
				     			alert("Invalid date!")
								document.AppForm.emptd10.options[28].selected = true
							  }
							}
						 }
					}
			 }
    		 if (document.AppForm.emptm10.options[i].value == 4 || document.AppForm.emptm10.options[i].value == 6 || document.AppForm.emptm10.options[i].value == 9 || document.AppForm.emptm10.options[i].value == 11 )
			 {
			       for (var j=0;j<document.AppForm.emptd10.options.length;j++) 
				   {
				         if (document.AppForm.emptd10.options[j].selected == true)
						 {
						 	if (document.AppForm.emptd10.options[j].value > 30)
							{
				     			alert("Invalid date!")
								document.AppForm.emptd10.options[30].selected = true
							}
						 }
					}
  		      }
         }
    }
}				



