function showSevereErrorMsg( error )
{
	return "This functionality is not supported. (" + error + ")";
}

/*
 * Returns an error description for an error number
 */
function showErrorMsg ( error )
{
	switch ( error )
	{
		case ISDKERROR_NONE:                     return "Success";
		case ISDKERROR_INTERNAL_ERROR:           return "Internal Error";
		case ISDKERROR_INVALID_ARGUMENT:         return "Invalid Argument";
		case ISDKERROR_INVALID_STATUS:           return "Invalid Status";
		case ISDKERROR_UNKNOWN_ID:               return "Unknown ID";
		case ISDKERROR_NOT_SUBSCRIBED:           return "Not subscribed";
		case ISDKERROR_NOT_SUPPORTED:            return "This functionality is not supported";
		case ISDKERROR_NOT_LOGGED_IN:            return "Not logged in";
		case ISDKERROR_IN_USE:                   return "In use";
		case ISDKERROR_INVALID_SERVICETYPE:      return "Operation is not available for the service";
		case ISDKERROR_AUTHENTICATION_FAILED:    return "Authentication failed";
		case ISDKERROR_BUSY:                     return "Busy";
		case ISDKERROR_CANCELLED:                return "Cancelled";
		case ISDKERROR_CLIENT_ERROR:             return "Client Error";
		case ISDKERROR_NETWORK_ERROR:            return "Network Error";
		case ISDKERROR_REJECTED:                 return "Rejected";
		case ISDKERROR_SERVER_ERROR:             return "Server Error";
		case ISDKERROR_TIMEOUT:                  return "Timeout";
		case ISDKERROR_UNAVAILABLE:              return "Unavailable";
		case ISDKERROR_DUPLICATE:                return "Duplicate";
		case ISDKERROR_GROUP_NOT_EMPTY:          return "Only empty groups can be removed, please move contacts first.";
		case ISDKERROR_INVALID_URL:              return "url is not valid or not available";
		case ISDKERROR_FILETRANSFER_EMPTY:       return "File transfer failed (empty file)";
		case ISDKERROR_FILETRANSFER_CANCELLED:   return "File transfer failed (cancelled)";
		case ISDKERROR_FILETRANSFER_DUPLICATE:   return "File transfer failed (file already in transfer)";
		case ISDKERROR_FILETRANSFER_FAILED:      return "File transfer failed (unknown reason)";
		case ISDKERROR_NETMEETING_NOT_INSTALLED: return "Netmeeting not installed";
		case ISDKERROR_NETMEETING_NOT_CAPABLE:   return "Call does not have netmeeting capabilities";
		case ISDKERROR_NETMEETING_IN_USE:        return "Netmeeting is in use";
		case ISDKERROR_RESULT_NOTSIZED:          return "Result value param needs to be resized properly before attempting this call again";
		case ISDKERROR_NOT_YET_IMPLEMENTED:      return "Not yet implemented";
		
    case R_USER_INVALID:                     return "Incorrect user/password combination. Please verify your input.";
    case R_FORM_MANDATORY:                   return "Please fill out all required fields (indicated in red)";
    case R_INVALID_EMAILADDRESS:             return "Please provide a valid emailaddress. (i.e. user@example.com) ";
    case R_UNKNOWN_USER:                     return "Unable to find a user with that emailaddress.";
    case R_PWDMAILED_OK:                     return "Your password has been sent to your emailaddress. It should arrive in a few minutes. ";
    case R_FAILED_EMAIL:                     return "Could not send the email. Please contact system administrator.";
    case R_FAILED_ADDGROUP:                  return "Could not add a new contact group";		
    case R_VERIFICATION_REQUIRED:            return "Please check the box as verification of your action.";
    case R_FAILED_ADDCONTACT:                return "Could not add a new contact.";
    case R_FAILED_EDITCONTACT:               return "Could not edit the contact.";
    case R_INVALID_STARTDATE:                return "Invalid startdate, please verify date.";
    case R_INVALID_STOPDATE:                 return "Invalid stopdate, please verify date.";
    case R_INVALID_STARTSTOPDATE:            return "Invalid stopdate. The stopdate much be higher than the startdate.";
    case R_NO_LOGOUT:                        return "Could not log you off. Please try again later.";
    
    case R_EXCEPTION:                        return "Unknown error occurred";
    case R_FAILED_CREATE_CONFERENCE:         return "Failed to create conference.";
    case R_DUPLICATE_CONFERENCE:             return "There already exists such a conference.";
    case R_TOO_MANY_ATS:                     return "It is not allowed to have more than 1 '@' sign in a URI!";
    case R_FAILED_ADDWATCHER:                return "Could not add contact as watcher.";
		
		default:
			return "Unknown Error " + error;
	};
}

/*
 * Returns an error description for an error number
 */
function showSuccessMsg ( error )
{
	switch ( error )
	{
		
    case R_ADDED_CONFERENCE:                 return "Succesfully added the conference. Please while reloading the page.";
		
		default:
			return "OK";
	};
}
