
	 // $(document).ready(function(){
// 	    	
// 	    
// 	    
	    // $('#slider1').anythingSlider({// Appearance
		// theme               : "default", // Theme name, add the css stylesheet manually
		// expand              : false,     // If true, the entire slider will expand to fit the parent element
		// resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
		// vertical            : false,     // If true, all panels will slide vertically; they slide horizontally otherwise
		// showMultiple        : false,     // Set this value to a number and it will show that many slides at once
		// easing              : "swing",   // Anything other than "linear" or "swing" requires the easing plugin or jQuery UI
// 
		// buildArrows         : false,      // If true, builds the forwards and backwards buttons
		// buildNavigation     : false,      // If true, builds a list of anchor links to link to each panel
		// buildStartStop      : false,      // ** If true, builds the start/stop button
// 
		// appendForwardTo     : null,      // Append forward arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
		// appendBackTo        : null,      // Append back arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
		// appendControlsTo    : null,      // Append controls (navigation + start-stop) to a HTML element (jQuery Object, selector or HTMLNode), if not null
		// appendNavigationTo  : null,      // Append navigation buttons to a HTML element (jQuery Object, selector or HTMLNode), if not null
		// appendStartStopTo   : null,      // Append start-stop button to a HTML element (jQuery Object, selector or HTMLNode), if not null
// 
		// toggleArrows        : false,     // If true, side navigation arrows will slide out on hovering & hide @ other times
		// toggleControls      : false,     // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times
// 
		// startText           : "Start",   // Start button text
		// stopText            : "Stop",    // Stop button text
		// forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
		// backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
		// tooltipClass        : "tooltip", // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)
// 
		// // Function
		// enableArrows        : false,      // if false, arrows will be visible, but not clickable.
		// enableNavigation    : false,      // if false, navigation links will still be visible, but not clickable.
		// enableStartStop     : false,      // if false, the play/stop button will still be visible, but not clickable. Previously "enablePlay"
		// enableKeyboard      : false,      // if false, keyboard arrow keys will not work for this slider.
// 
		// // Navigation
		// startPanel          : 2,         // This sets the initial panel
		// changeBy            : 1,         // Amount to go forward or back when changing panels.
		// hashTags            : false,      // Should links change the hashtag in the URL?
		// infiniteSlides      : false,      // if false, the slider will not wrap & not clone any panels
		// navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
		// navigationSize      : false,     // Set this to the maximum number of visible navigation tabs; false to disable
// 
		// // Slideshow options
		// autoPlay            : false,     // If true, the slideshow will start running; replaces "startStopped" option
		// autoPlayLocked      : false,     // If true, user changing slides will not stop the slideshow
		// autoPlayDelayed     : false,     // If true, starting a slideshow will delay advancing slides; if false, the slider will immediately advance to the next slide when slideshow starts
		// pauseOnHover        : false,      // If true & the slideshow is active, the slideshow will pause on hover
		// stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.
		// playRtl             : false,     // If true, the slideshow will move right-to-left
// 
		// // Times
		// delay               : 3000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
		// resumeDelay         : 0,     // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
		// animationTime       : 600,       // How long the slideshow transition takes (in milliseconds)
		// delayBeforeAnimate  : 0,         // How long to pause slide animation before going to the desired slide (used if you want your "out" FX to show).
// 
// 		
					// });
// 					
					// });
					
	function refreshjobcat(){
		
		var i;
		for (i = $('m2jobcat2').length - 1; i>=0; i--) {
			$('m2jobcat2').options[i].disabled=false;
			if ($('m2jobcat2').options[i].value==$('m2jobcat1').value) {
				if($('m2jobcat2').options[i].value!="none"){
					$('m2jobcat2').options[i].disabled=true;
				}
			}
		}
		var i;
		for (i = $('m2jobcat3').length - 1; i>=0; i--) {
			$('m2jobcat3').options[i].disabled=false;
			if (($('m2jobcat3').options[i].value==$('m2jobcat1').value)||($('m2jobcat3').options[i].value==$('m2jobcat2').value)) {
				if($('m2jobcat3').options[i].value!="none"){
					$('m2jobcat3').options[i].disabled=true;
				}
			}
		}
		
		if($('#m2jobcat1').val()!=' '){
			$('#m2jobcat2').removeAttr('disabled');
		}else{
			$('#m2jobcat2').val('select');
			$('#m2jobcat2').attr('disabled','disabled');
		}
		if($('#m2jobcat2').val()!='select'){
			$('#m2jobcat3').removeAttr('disabled');
		}else{
			$('#m2jobcat3').val('select');
			$('#m2jobcat3').attr('disabled','disabled');
		}
	}
	
	function checkForm(){

		if($('#agreebox').is(":checked")){
			if($('#m2email').val())
			{	
				if($('#m2jobcat1').val()!='select'){
					return true
				}
				else
				{
					alert('Please choose a category');
					return false;
				}
			}
			else
			{
				alert('Please enter your email address.');
				return false;
			}
		}else{
			alert('Please tick to confirm you agree to the KeepMePosted terms and conditions.');
			return false;
		}
	
		
	}
