"use strict";
function getParam(el, name, useId) {
  var attr  = typeof(useId) !== 'undefined' ? 'id' : 'class',
      re    = new RegExp(name + '-(\\S*)'),
      match = $(el).attr(attr).match(re);

  return match ? match[1] : null;
}
$.fn.getParam = function (name, useId) {
  return getParam($(this), name, useId);
};
function display(str) {
  str += '';
  return str.preventXss();
}
String.prototype.preventXss = function () {
  return this.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,"");
};
function debug(message) {
  try {
    console.log(message);
  }
  catch (e) {
    alert(message);
  }
}
