﻿// JScript File
function ValidateNumeric()
{
	var keyCode = window.event.keyCode;
	if (keyCode > 57 || keyCode < 48)
	{
	    window.event.returnValue = false;
        alert('Numerals Only, From 0 To 9');
        return false;
	}
	return false;
}

// Terms And Conditions
function OpenTermsAndConditions()
{
    window.open('Html/TermsAndConditions.htm', 'TermsAndConditions', 
     'top=150, height=600, width=700, toolbar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=no');
}

// Disclaimer
function OpenDisclaimer()
{
    window.open('Html/Disclaimer.htm', 'Disclaimer', 
     'top=150, height=600, width=700, toolbar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=no');
}

    function CreateTable() {
    alert('shailesh');
        // get the reference for the body
        var body = document.getElementsByTagName("body")[0];

        // creates a <table> element and a <tbody> element
        var tbl     = document.createElement("table");
        var tblBody = document.createElement("tbody");

        // creating all cells
        for (var j = 0; j < 2; j++) {
            // creates a table row
            var row = document.createElement("tr");

            for (var i = 0; i < 2; i++) {
                // Create a <td> element and a text node, make the text
                // node the contents of the <td>, and put the <td> at
                // the end of the table row
                var cell = document.createElement("td");
                var cellText = document.createTextNode("cell is row "+j+", column "+i);
                cell.appendChild(cellText);
                row.appendChild(cell);
            }

            // add the row to the end of the table body
            tblBody.appendChild(row);
        }

        // put the <tbody> in the <table>
        tbl.appendChild(tblBody);
        // appends <table> into <body>
        body.appendChild(tbl);
        // sets the border attribute of tbl to 2;
        tbl.setAttribute("border", "2");
    }