$(document).ready(function () {
	// Opens links in new window on a anchor with an attribute of rel="openwin"
	$('a[rel=openwin]').click(function(){
		window.open(this.href);
		return false;
	});
	
	// Bind a click event to anchor with rel="submit" and submits form its contained within
	$("a[rel=submit]").click( function(){
		$(this).parents("form").submit();
	});
	
	// Validate all forms
	$("form").validate();

});
