function NavHover(sElement,iSwitch)
{
	switch(iSwitch)
	{
		case 1:
		sElement.style.cursor='pointer';
		sElement.style.background='#386D90';
		break;
		default:
		sElement.style.cursor='auto';
		sElement.style.backgroundImage="url('/images/nav_bk.png')";
	}
}
function NavTo(Where)
{
	top.location.href=Where;
}

function FormatPhoneNumber(value) {
    /* onChange="this.value = FormatPhoneNumber(this.value);" */
	var aliasExp = /^ *([a-zA-Z][a-zA-Z0-9_\-\.]*) *$/;
    var msisdnExp = /^ *(\+?1[ .-]*)?\(?(\d{3})\)?[ .-]*(\d{3})[ .-]*(\d{4}) *$/;
    if (msisdnExp.test(value)) {
        digits = msisdnExp.exec(value);
	return '(' + digits[2] + ') ' + digits[3] + '-' + digits[4];
    }
    else if (aliasExp.test(value)) {
        alias = aliasExp.exec(value);
        return alias[1];
    }
    else {
		//alert("'" + value + "' is not a valid phone number or email alias.");
        return value;
    }
}
