$(function(){
	 $('#checktypes').click(function(e){
		 if ($('#checktypes').attr('class') == 'unchecked')
		 {
			 $('.types').attr('checked', true);
			 $('#checktypes').attr('class', 'checked');
		 } else {
			$('.types').attr('checked', false);
			 $('#checktypes').attr('class', 'unchecked');
		 }
	 });
	
	 $('#checkcats').click(function(e){
		 if ($('#checkcats').attr('class') == 'unchecked')
		 {
			 $('.cats').attr('checked', true);
			 $('#checkcats').attr('class', 'checked');
		 } else {
			$('.cats').attr('checked', false);
			 $('#checkcats').attr('class', 'unchecked');
		 }
	 });

	 $('#checktags').click(function(e){
		 if ($('#checktags').attr('class') == 'unchecked'){
			 $('.tags').attr('checked', true);
			 $('#checktags').attr('class', 'checked');
		 } else {
			$('.tags').attr('checked', false);
			 $('#checktags').attr('class', 'unchecked');
		 }
	 });

	 $('#asf_number').focus(function(){
		if ($('#asf_number').attr('value') == 'Enter Template #'){
			$('#asf_number').attr('value', '');
		}
	});
	$('#asf_number').blur(function(){
		if ($('#asf_number').attr('value') == ''){
			$('#asf_number').attr('value', 'Enter Template #');
		}
	});

	$('#asf_keywords').focus(function(){
		if ($('#asf_keywords').attr('value') == 'Enter Keyword(s)'){
			$('#asf_keywords').attr('value', '');
		}
	});

	$('#asf_keywords').blur(function(){
		if ($('#asf_keywords').attr('value') == ''){
			$('#asf_keywords').attr('value', 'Enter Keyword(s)');
		}
	});
});

