jQuery(document).ready(function($) {
	jQuery.fn.log = function (msg) {
	      console.log("%s: %o", msg, this);
	      return this;
	};
})

function check() {
	$("input[rel=check]").alert(this);
}
