﻿function IsPhoneEmpty(txt)
{
    var objTxt = document.getElementById(txt);
    if(objTxt.value.Trim() == ""){return true;}return false;
}

//Will check the klength of each box
//txt the id and i s the desired length
//chkempty - will see if the box contains data and is greater then 0, if not, don't check.
function CheckLength(txt, i,chkempty)
{
    var objTxt = document.getElementById(txt);
    if(chkempty == false)
    {
        if(objTxt.value.length < i && objTxt.value.length > 0){return true;}return false;
    }
    else
    {
        if(objTxt.value.length < i){return true;}return false;
    }
}