

function doConfirm (id, text){
 var agree = confirm("Are you sure you want to "+text+"?");
    if (agree)
        return true;
    else
        return false;
}

function IsNumeric(id)
{
	if(isNaN(document.getElementById(id).msisdn.value)){
		alert('Mobile Number(s) is in an invalid format');
		return false;
	}else{
		return true;
	}
}

function trim (str) {
	str = this != window? this : str;
	return str.replace(/^\s+/, '').replace(/\s+$/, '');
}