function checknullvalue()
{
	
	var fwd=document.getElementById("frgpassword").value;
    var month=document.getElementById("FirstSelectMonth").value;
    var date=document.getElementById("FirstSelectDay").value;
	
	 if(fwd=='')
	{ 
		 document.getElementById('error').innerHTML="<span style='color: #FF0000; font-size:11px; '>Please input correct email id</span>";
		 document.getElementById("frgpassword").focus();
		 return false;
	}
	else{
		document.getElementById('error').innerHTML="";
		
	}
	
	 if(month==''){
		document.getElementById('error').innerHTML="<span style='color: #FF0000; font-size:11px; '>Please Select Month</span>";
		document.getElementById("FirstSelectMonth").focus();
		 return false;
		
	}
	else{
		document.getElementById('error').innerHTML="";
		
	}
	
	 if(date==''){
		document.getElementById('error').innerHTML="<span style='color: #FF0000; font-size:11px; '>Please Select Date</span>";
		document.getElementById("FirstSelectDay").focus();
		return false;
	}
	else{
		document.getElementById('error').innerHTML="";
		
	}
	
	if(date!='' && month!='' && fwd!='')
	{
		
	getvalidemaidob(document.getElementById("FirstSelectDay").value);	
	}
	
	
}

<!-- Begin
//set todays date
Now = new Date();
NowDay = Now.getDate();
NowMonth = Now.getMonth();
NowYear = Now.getYear();
if (NowYear < 2000) NowYear += 1900; //for Netscape

//function for returning how many days there are in a month including leap years
function DaysInMonth(WhichMonth, WhichYear)
{
  var DaysInMonth = 31;
  if (WhichMonth == "April" || WhichMonth == "June" || WhichMonth == "September" || WhichMonth == "November") DaysInMonth = 30;
  if (WhichMonth == "February" && (WhichYear/4) != Math.floor(WhichYear/4))	DaysInMonth = 28;
  if (WhichMonth == "February" && (WhichYear/4) == Math.floor(WhichYear/4))	DaysInMonth = 29;
  return DaysInMonth;
}

//function to change the available days in a months
function ChangeOptionDays(Which)
{
  DaysObject = eval("document.form1." + Which + "Day");
  MonthObject = eval("document.form1." + Which + "Month");
  YearObject = eval("document.form1." + Which + "Year");

  Month = MonthObject[MonthObject.selectedIndex].text;
  Year = YearObject[YearObject.selectedIndex].text;

  DaysForThisSelection = DaysInMonth(Month, Year);
  CurrentDaysInSelection = DaysObject.length;
 
  if (CurrentDaysInSelection > DaysForThisSelection)
  {
    for (i=0; i<(CurrentDaysInSelection-DaysForThisSelection)-1; i++)
    {
      DaysObject.options[DaysObject.options.length - 1] = null
    }
  }
  if (DaysForThisSelection > CurrentDaysInSelection)
  {
    for (i=0; i<(DaysForThisSelection-CurrentDaysInSelection); i++)
    {
      NewOption = new Option(DaysObject.options.length + 1);
      DaysObject.add(NewOption);
    }
  }
    if (DaysObject.selectedIndex < 0) DaysObject.selectedIndex == 0;
}

//function to set options to today
function SetToToday(Which)
{
  DaysObject = eval("document.form1." + Which + "Day");
  MonthObject = eval("document.form1." + Which + "Month");
  YearObject = eval("document.form1." + Which + "Year");

  YearObject[0].selected = true;
  MonthObject[NowMonth].selected = true;

  ChangeOptionDays(Which);

  DaysObject[NowDay-1].selected = true;
}

//function to write option years plus x
function WriteYearOptions(YearsAhead)
{
  line = "";
  for (i=0; i<YearsAhead; i++)
  {
    line1=NowYear + i;
    line += "<OPTION value="+ line1 +">";
    line += NowYear + i;
 }
  return line;
}
//  End --> of DATE function




///////////////////// AJAX ////////////////////////////////
var xmlHttp 
function getvalidemail(val)
{ 

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

var url="checkemailvalid.php";
url=url+"?email="+val;
url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanged4
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged4() //This method is for extravting the information based on Item#
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	 { 
		 var vat=xmlHttp.responseText; 
		
		 document.getElementById('error').innerHTML=vat;
		
	 } 
}




function getvalidemaidob(d)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }


 var fwd=document.getElementById("frgpassword").value;
 var m=document.getElementById("FirstSelectMonth").value;

var url="checkebdob.php";
url=url+"?month="+m+"&date="+d+"&email="+fwd;

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanged5
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged5() //This method is for extravting the information based on Item#
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	 { 
		 var val=xmlHttp.responseText; 
		var fwd=document.getElementById("frgpassword").value;
		
		if(val==0){
		 document.getElementById('error').innerHTML="<span style='color: #FF0000;font-size:11px;'>No match, try again</span>";
		 
		 }
		 else if(val==1)
		 {
		 var fwd=document.getElementById("frgpassword").value;
			
		 document.getElementById('error1').innerHTML="<span style='color:#000000;font-size:12px;'>Password is being sent to "+fwd+"</span>"
		 document.getElementById('passshow1').style.display="block";
		 document.getElementById('passshow').style.display="none";
		 }
	 } 
}







	
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}


