
function valid_subissue(itntiform)
{
	var myerror = "";

	if (itntiform.NAME.value == "")
	{
		myerror += "You must enter NAME\n";
	}

	if (itntiform.ADDRESS.value == "")
	{
		myerror += "You must enter ADDRESS\n";
	}

	if (itntiform.TEL.value == "")
	{
		myerror += "You must enter PHONE\n";
	}

	if (itntiform.EMAIL.value == "")
	{
		myerror += "You must enter EMAIL\n";
	}
	
	if (itntiform.mystype.value == "New Subscriber")
	{
		if (itntiform.myptype.value == "Please contact me on")
		{
			today = new Date();
			thismonth = today.getMonth()+1;
			thisdate = today.getDate();
			thisyear = today.getFullYear();
	
			thisdateval = thisyear+"/"+thismonth+"/"+thisdate;
			
			selmonth = itntiform.month.value;
			seldate = itntiform.date.value;
			selyear = today.getFullYear();
	
			seldateval = selyear+"/"+selmonth+"/"+seldate;
			
			if (seldateval <= thisdateval)
			{
				myerror += "Please select valid Date\n";
			}

			if (itntiform.time.value >= 10 && itntiform.time.value <= 12)
			{
				if (itntiform.timeampm.value == "PM")
				{
					myerror += "Please select valid Time\n";
				}
			}

			if (itntiform.time.value >= 1 && itntiform.time.value <= 5)
			{
				if (itntiform.timeampm.value == "AM")
				{
					myerror += "Please select valid Time\n";
				}
			}
		}
		else
		{
			today = new Date();
			thismonth = today.getMonth()+1;
			thisdate = today.getDate();
			thisyear = today.getFullYear();
	
			thisdateval = thisyear+"/"+thismonth+"/"+thisdate;
			
			selmonth = itntiform.month1.value;
			seldate = itntiform.date1.value;
			selyear = today.getFullYear();
	
			seldateval = selyear+"/"+selmonth+"/"+seldate;
			
			if (seldateval <= thisdateval)
			{
				myerror += "Please select valid Date\n";
			}

			if (itntiform.time1.value >= 10 && itntiform.time1.value <= 12)
			{
				if (itntiform.timeampm1.value == "PM")
				{
					myerror += "Please select valid Time\n";
				}
			}

			if (itntiform.time1.value >= 1 && itntiform.time1.value <= 5)
			{
				if (itntiform.timeampm1.value == "AM")
				{
					myerror += "Please select valid Time\n";
				}
			}

		}

	}

	if (myerror != "")
	{
		alert(myerror);
		return false;
	}
	else
	{
		return true;
	}
}

