﻿function goBack()
{
  window.history.back()
}

/*Checking for numeric values*/
function isNumberKey(evt)
{
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57))
        return false;

    return true;
}

//Function to check decimal values
function IsDecimal(evt,control)
{
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode!=46)
        return false;
    if(charCode==46)
        if(control.value.indexOf('.')>-1 || control.value.length==0)
            return false;
    return true;
}

//Function to Print current Window
function PrintPage()
{
    window.print();
}
