function findExpiryDate(theDate,field) {
	theDate = theDate.value;
	
	alert(theDate);
	
	var expiryDate = incMonth(theDate,1);
	
	alert(expiryDate);
	}

function disableQuestions(checkField, ifValue, targetFields) {
	// checkField: field of which to check.
	// ifValue: argument of checkField which, if true will disable targetFields.
	// targetFields: comma separated list of fields to disable (radio/checkbox only).
	
	ifValue-=1;
	targetFields = targetFields.split(",");
	
	var theField = eval('document.theForm.'+checkField+'['+ifValue+'].checked');
	
	for (x = 0; x < targetFields.length; x++) {
		
		thisTargetField = eval('document.theForm.'+targetFields[x]);
		numInField = thisTargetField.length;
		
		if (theField) {
			for (i = 0; i < numInField; i++)
				thisTargetField[i].disabled = true;
			}
		else {
			for (i = 0; i < numInField; i++)
				thisTargetField[i].disabled = false;
			}
		}
	}

function enableQuestions(checkField, ifValue, targetFields) {
	// checkField: field of which to check.
	// ifValue: argument of checkField which, if true will enable targetFields.
	// targetFields: comma separated list of fields to enable (text only).
	
	targetFields = targetFields.split(",");
	
	var theForm = checkField.form.name;
	
	// For all the target fields...
	for (x = 0; x < targetFields.length; x++) {
		
		thisTargetField = eval('document.' + theForm + '.' + targetFields[x]);
		
		if (checkField.value == ifValue)
			thisTargetField.disabled = false;
		else
			thisTargetField.disabled = true;
		}
	}
