jQuery.fn.hint = function() {
return this.each(function(){
	var t = $(this);
	var value = t.attr('value');
	
	if (value) { 
    // only apply logic if the element has the attribute
		
		// on focus, set value to blank if current value matches title attr
		t.focus(function(){
			if (t.val() == value) {
			  t.val('');
			  t.removeClass('blur');
			}
		})

		// on blur, set value to title attr if text is blank
		t.blur(function(){
			if (t.val() == '') {
			  t.val(value);
			  t.addClass('blur');
			}
		})

		// clear the pre-defined text when form is submitted
		t.parents('form:first()').submit(function(){
			if (t.val() == value) {
				t.val('');
				t.removeClass('blur');
			}
		});

		// now change all inputs to title
		t.blur();
	}
})				
}


jQuery.fn.checkCheckboxes = function(ignore)
{
	return this.each(
		function()
		{
			jQuery("input[@type=checkbox]", this).each(
				function()
				{
					this.checked = true;
				}
			)
		}
	)
}

jQuery.fn.unCheckCheckboxes = function(ignore)
{
	return this.each(
		function()
		{
			jQuery("input[@type=checkbox]", this).each(
				function()
				{
					this.checked = false;
				}
			)
		}
	)
}

