function isEmail( str )
{
	var filter=/^.+@.+\..{2,3}$/

	if( filter.test(str) )
	{
		return true;
	}
	else
	{
		return false;
	}
}

function isUrl( str )
{
	var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
	return regexp.test(str);
}

function isDate( year, month, day )
{
    //Subtract 1 from the month to put it in correct format for javascript (0-11)
    month = month - 1;

    // Create date object
    checkDate = new Date(year, month, day);
    
    // Check that the date objetc created has the same values we passed in.
    // If not return false as Javascript has corrected an invalid date.
    return ( (day == checkDate.getDate()) && (month == checkDate.getMonth()) && (year == checkDate.getFullYear()) );
}
    
