$(document).ready(function(){
	if ($("#jobForm").length > 0) {
		CKEDITOR.replace('jobDescr', {
				customConfig:root+'js/CKconfig.js',
				toolbar:'WGA',
				skin:'kama',
				contentsCss:root+'css/editor.css'
			}
		)
		$("#postDate").datepicker();
		$("#radio").buttonset();
		$("input:submit").button();
	}
	$("a.button").button();
	if ($("#applyForm").length > 0) {
		$("input:submit").button();
	}
	if ($("a.del").length > 0) {
		$("a.del").bind('click',function(e) {
			e.preventDefault();
			if (confirm('Are you sure you wish to delete this applicant record?')==true) {
				$.ajax({
					url: $(this).attr('href'),
					success: function(data) {
						window.location.reload();
						//$(this).parent().remove();
					}
				})
			}
		})
	}
})

