function verify_dates(mo_1, da_1, yr_1, mo_2, da_2, yr_2){
	if ("2" == mo_1) {
	
		if (Number(da_1) > 28) {
			alert("Your first date is incorrect. February only has 28 days!");
			return(false);
		}
	
	
	}
	if ("2" == mo_2) {
		if (Number(da_2) > 28) {
			alert("Your second date is incorrect. February only has 28 days!");
			return(false);
		}
	}
	if ("9" == mo_1){
		if (Number(da_1) > 30) {
			alert("Your first date is incorrect. September only has 30 days!");
			return(false);
		}
	}
	if ("9" == mo_2){
		if (Number(da_2) > 30) {
			alert("Your second date is incorrect. September only has 30 days!");
			return(false);
		}
	}
	if ("4" == mo_1){
		if (Number(da_1) > 30) {
			alert("Your first date is incorrect. April only has 30 days!");
			return(false);
		}
	}
	if ("4" == mo_2){
		if (Number(da_2) > 30) {
			alert("Your second date is incorrect. April only has 30 days!");
			return(false);
		}
	}
	if ("6" == mo_1){
		if (Number(da_1) > 30) {
			alert("Your first date is incorrect. June only has 30 days!");
			return(false);
		}
	}
	if ("6" == mo_2){
		if (Number(da_2) > 30) {
			alert("Your second date is incorrect. June only has 30 days!");
			return(false);
		}
	}
	if ("11" == mo_1){
		if (Number(da_1) > 30) {
			alert("Your first date is incorrect. November only has 30 days!");
			return(false);
		}
	}
	if ("11" == mo_2){
		if (Number(da_2) > 30) {
			alert("Your second date is incorrect. November only has 30 days!");
			return(false);
		}
	}
		
	date_1 = new Date(yr_1,mo_1, da_1);
	date_2 = new Date(yr_2,mo_2, da_2);
	if (date_1 > date_2){
		alert("Your starting date is later than your finishing date!");
		return(false);	
	}

	return(true);
}

function isValidDate(mo_1, da_1, yr_1){

	if ("0" == mo_1 ||"0" == da_1||"0" == yr_1)
	    return(false);
	    
	if ("2" == mo_1) {
	
		if (Number(da_1) > 29) {
			 //   alert("Your first date is incorrect. February only has 28 days!");
			return(false);
		}
	}

	if ("9" == mo_1){
		if (Number(da_1) > 30) {
			//alert("Your first date is incorrect. September only has 30 days!");
			return(false);
		}
	}

	if ("4" == mo_1){
		if (Number(da_1) > 30) {
		//	alert("Your first date is incorrect. April only has 30 days!");
			return(false);
		}
	}

	if ("6" == mo_1){
		if (Number(da_1) > 30) {
		//	alert("Your first date is incorrect. June only has 30 days!");
			return(false);
		}
	}

	if ("11" == mo_1){
		if (Number(da_1) > 30) {
		//	alert("Your first date is incorrect. November only has 30 days!");
			return(false);
		}
	}
	return(true);
}

function checkExpDate(mo, yr)
{    
    var str = "";
    var today = new Date;
    var t = new Date;
    var month = Number(mo)-1;
    var year = Number(yr);
    t.setMonth(month); 

    t.setFullYear(year);
    t.setDate(1); // set the date to the day of the month
    t.setHours(23,59); // set the minute to the minute of the day
    
    //////////////////////////////////////////////////////////////
    // add a month, subtract  day to find last day of month
    //////////////////////////////////////////////////////////////
    t.setMonth(t.getMonth() + 1); //+1 month
    t.setDate(t.getDate() - 1);//-1 day
  
   if (t < today)
	    return(false);
	else
	    return(true);
}





