 function PopupHelp(url,widht,height,left,top)
    {
      var PopupWindow=null;
       PopupWindow=window.open(url,'Help','left=' + left + ', top= ' + top + ' ,scrollbars=no,resizable=false,width=' + widht +',height='+ height);
       PopupWindow.focus();
    }
    
function Upper(e,r)
{
if (e.keyCode > 96 && e.keyCode < 123)
r.value = r.value.toUpperCase();
}

function HandleEnterDigits(e,r)
{

  if (!(e.keyCode > 44 && e.keyCode < 58))
e.keyCode=""
}

function HandleEnterChar(e,r)
{
//alert(e.keyCode)
if (!(e.keyCode > 64 && e.keyCode < 123))
e.keyCode=""
}

function HandleEnterCharAndDigits(e,r)
{
//alert(e.keyCode)
if ((e.keyCode > 1487 && e.keyCode < 1515))
e.keyCode=""
}

function ChangeCountryCode()
{
document.all.DropDownListCountrycode.value=document.all.DropDownListCountry.value
document.all.phoneCountryCode.value=document.all.DropDownListCountrycode.options[document.all.DropDownListCountrycode.selectedIndex].text;
document.all.MobileCountryCode.value=document.all.DropDownListCountrycode.options[document.all.DropDownListCountrycode.selectedIndex].text;
}


function isValidEmail(str) {
return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}


function putValue()
{
	if (isValidEmail(document.all.cc.value))
	{
	//document.all.CCList.value=document.all.cc.value +";" + document.all.CCList.value  ;
	// 
	var listItem = document.all.CCList   
	newOpt = new Option(document.all.cc.value,document.all.cc.value);
	listItem.options[listItem.length] = newOpt;
	document.all.cc.value=''
	}
	else
	{
	alert("Invalid Email Address")
	}
	
}

function char_Limit() {
var characters = document.frmInfo.notesDetails.value
document.frmInfo.counter.value = characters.length
if (characters.length>8100)
{
alert("Please limit the length of the Notes entered to 8000 characters.")
document.frmInfo.notesDetails.focus()
}
return false
}


function char_LimitNotes() {
var characters = document.frmInfo.NewCaseStep11_NewCaseStep2_1_notesDetails.value
document.frmInfo.NewCaseStep11_NewCaseStep2_1_counter.value = characters.length
if (characters.length>8100)
{
alert("Please limit the length of the 'Information Details' entered to 8000 characters.")
document.frmInfo.NewCaseStep11_NewCaseStep2_1_notesDetails.value.value=""
return false
}
}

