function CalculateChars()
{    
	var field = document.getElementById(commentClientId);
	var maxMultiMessageChars = 1500;

    if (field.value.length > maxMultiMessageChars){
			field.value = field.value.substring(0, maxMultiMessageChars);
			alert('- Maximum of 1500 characters allowed');
    }
}

function getSizes()
{
    var iWidth = window.screen.width;
    var iHeight = window.screen.height;
    var screenSize = iWidth +' x '+ iHeight;
    return screenSize;
}

function checkForMail(value)
{   
    checkForMobile(value);
    if (value == 'Mail')
    {
     //alert(value);
       
        document.getElementById(trAltMailMess).style.display = '';
    }
    else
    {
        document.getElementById(trAltMailMess).style.display = "none";
    }
}
function checkForMobile(value)
{   
    if (value == 'Mobile')
    {
      
      //alert(value);
        document.getElementById(lblPhone).innerHTML = value;        
        document.getElementById(mobileText).style.display = '';
        document.getElementById(panelMobile).style.display = '';
    }
    else
    {
        document.getElementById(lblPhone).innerHTML = 'Phone';     
        document.getElementById(mobileText).style.display = "none";
        document.getElementById(panelMobile).style.display = "none";
    }
}