I use the mcal() function and some of the other functions mcal_days_in_month and it turns blue in my editor which means it's valid but when I run the script I get undefined function. Does anyone know the solution to this. ALen