$(document).ready(function(){   
	//SET TITLE ATTR TO ALT ATTR TO MAKE IE AND OTHER BROWSERS DISPLAY SAME ALT CONTENT
	$("img").each(function(){
		if  ( ($(this).attr("title") == undefined) || ($(this).attr("title") == "") )  {
			if  ( ($(this).attr("alt") != undefined) && ($(this).attr("alt") != "") )  {
				$(this).attr( {title: $(this).attr("alt") });	
			}
		}
	});	
	// ALT ROW CLASSES APPLY
	$("table.tableData tr:even").addClass("rowNormal");
	$("table.tableData tr:odd ").addClass("rowAlt");
	$("table.plain tr").removeClass("rowNormal");
	$("table.plain tr").removeClass("rowAlt");	
	$("table.tableData tr.rowHeader").removeClass("rowAlt");
}); 

jQuery.fn.KeyPressDate = function()
{
    return this.each(function()
    {
        $(this).keydown(function(e)
        {
            var key = e.charCode || e.keyCode || 0;
            //alert(key);
			return (key == 191 ||key == 190 || key == 111 ||	key == 8 || key == 9 || key == 46 || (key >= 37 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105));
        })
    })
};

jQuery.fn.KeyPressNumbersOnly = function()
{
    return this.each(function()
    {
        $(this).keydown(function(e)
        {
            var key = e.charCode || e.keyCode || 0;
            return (key == 8 || key == 9 || key == 46 || (key >= 37 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105));
        })
    })
};

jQuery.fn.KeyPressNumbersDecimalOnly = function()
{
    return this.each(function()
    {
        $(this).keydown(function(e)
        {
            var key = e.charCode || e.keyCode || 0;
            return (key == 190 || key == 110 ||	key == 8 || key == 9 || key == 46 || (key >= 37 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105));
        })
    })
};

jQuery.fn.KeyPressTime = function()
{
    return this.each(function()
    {
        $(this).keydown(function(e)
        {
            var key = e.charCode || e.keyCode || 0;
			//alert(key);
            return (key == 59 || key == 186 || key == 190 || key == 110 ||	key == 8 || key == 9 || key == 46 || (key >= 37 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105));
        })
    })
};
