$.fn.readonly = function(boolean){
	var boolean = typeof boolean === 'boolean' && boolean === false ? false : true ;
	return this.each(function(){
		if (boolean) {
			$('*[name]' , this).attr('readonly' , 'readonly');
			$(':submit' , this).attr('disabled' , 'disabled');
		} else {
			$('*[name]' , this).removeAttr('readonly');
			$(':submit' , this).removeAttr('disabled');
		}
	});
};
