//old function does not account for Netscape converting /yy of /05 into 1905
function validateDate_(strValue)
{
	var objRegExp  = /^[0-1]{0,1}[0-9]{1,1}\/[0-3]{0,1}[0-9]{1,1}\/(19|20)?[0-9]{2,2}$/i;
	//check for valid date
	return objRegExp.test(strValue);
}

function validateDate(strValue, dateType)
{
	var objRegExp;
	
	//type 1 = must be mm/dd/yyyy
	if( dateType == 1)
	{
		objRegExp = /^[0-1]{1,1}[0-9]{1,1}\/[0-3]{1,1}[0-9]{1,1}\/(19|20)+[0-9]{2,2}$/i;
	}
	
	//type 2 = mm/dd/yyyy or m/d/yyyy or any combination
	else if (dateType == 2)
	{
		objRegExp = /^[0-1]{0,1}[0-9]{1,1}\/[0-3]{0,1}[0-9]{1,1}\/(19|20)+[0-9]{2,2}$/i;
	}
	
	//type DEFAULT = mm/dd/yyyy or m/d/yy or any combination
	else
	{
		objRegExp = /^[0-1]{0,1}[0-9]{1,1}\/[0-3]{0,1}[0-9]{1,1}\/(19|20)?[0-9]{2,2}$/i;
	}
	
	//check for valid date
	return objRegExp.test(strValue);
}

