// JavaScript Document
// Function setDivHeight is to make the heights of the left,right and middle divs equal
/*function setDivHeight(){
if (document.getElementById && !document.all){
// For Firefox
var h3 =  parseInt(window.innerHeight) ;
if(document.getElementById("left")){
//document.getElementById("left").style.height = h3 + "px";
document.getElementById("left").style.height = "100%" ;
}
////////////
if(document.getElementById("right")){
//document.getElementById("right").style.height = h3 + "px";
document.getElementById("right").style.height = "100%" ;
}
////////////
if(document.getElementById("middle")){
//document.getElementById("middle").style.height = h3 + "px" ;
document.getElementById("middle").style.height = "100%" ;
}}

else
{
//For Internet Explorer
var h3 =  parseInt(document.body.clientHeight) ;
if(document.getElementById("left")){
document.getElementById("left").style.height = h3 + "px";
}
////////////
if(document.getElementById("right")){
document.getElementById("right").style.height = h3 + "px";
}
////////////
if(document.getElementById("middle")){
document.getElementById("middle").style.height = h3 + "px" ;
}
}
return;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////// End of Function setDivHeight
*/
///////////////////////// Function to validate numeric input in a text field
function checkIt(evt) {
    evt = (evt) ? evt : window.event
    var charCode = (evt.which) ? evt.which : evt.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        alert("This field accepts numbers only.");
        return false
    }
    status = ""
    return true
}
///////////////////////////////////////End of Function to validate numeric input in a text field
///////////////////////// Function to validate decimal numeric input in a text field
function checkIt2(evt) {
    evt = (evt) ? evt : window.event
    var charCode = (evt.which) ? evt.which : evt.keyCode
    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57) ) {
        alert("This field accepts numbers and decimal only.");
        return false
    }
    status = ""
    return true
}
///////////////////////////////////////End of Function to validate numeric input in a text field
function checkIt3(evt) {
    evt = (evt) ? evt : window.event
    var charCode = (evt.which) ? evt.which : evt.keyCode
    if (charCode > 0 && charCode < 900 ) {
        alert("Please click the icon to the right of this text field and select a date...");
        return false
    }
    status = ""
    return true
}
/////////////////////////////////////// Function to limit number of characters
function textLimit(field, maxlen) {
if (field.value.length > maxlen + 1){
alert('Max number of words characters allowed are ' + maxlen );
if (field.value.length > maxlen)
field.value = field.value.substring(0, maxlen);
} 
}
///////////////////////// Function to validate decimal numeric input in a text field
function checkIt4(evt) {
    evt = (evt) ? evt : window.event
    var charCode = (evt.which) ? evt.which : evt.keyCode
    if( (charCode == 189 || charCode == 109) ||
      (charCode >= 48 && charCode <= 57) ||	  
      (charCode < 31 ) ) {
      
    status = ""
    return true
    }
     alert("This field accepts numbers and decimal only.");
    return false
}
///////////////////////////////////////End of Function to validate numeric input in a text field

