Is (functions)

var
Is        = {}
Is.Date   = IsDate
Is.Prefix = IsPrefix

Is Date (deprecated - use Date.IsValid)

Is.Date( datetime )

function IsDate( $datetime )
{
	var is_date = false;

	switch ( $datetime )
	{
	case null:
	case "NULL":
	case "null":
	case "":
	case "0":
	case "0000-00-00":
	case "0000-00-00 00:00:00":
		break;
		
	default:
		is_date = true;
	}

	return is_date;
}

Is Prefix (deprecated - use String.HasPrefix)

Is.Prefix( string, prefix )

function IsPrefix( string, prefix )
{
	return (0 == string.indexOf( prefix ));
}