$(document).ready(function(){	/*	$('#inventory_adjust').submit(function() {  alert('Registering Order '); var invoice = $('#invoice').val(); alert(invoice)			   jQuery.ajax({				   	async:false,						type:"POST",						url:"code/change_inventory.php",						data:'invoice='+invoice,						cache:false,						success:function(response){alert(response)}							});// end of ajax						return true;});*/	$('#show-menu-editor').click(function(){		$('#menu_editor').slideToggle('slow',function(){});		return false;	});		if($('#msgsent').val() == 'success')alert('Your message was sent');					   	 	 $('#contact_submit').click(function(){	var errors = '';	var name = $('#name').val();	var phone = $('#phone').val();	var email = $('#email').val();		if(name == '')errors+='Name Field.\n'	if(phone == '')errors+='Phone Field.\n'	if(email == '')errors+='Email Field.\n'		if (errors){		alert('The following required fields were left blank:\n'+errors);		return false;	}	});// end of #contact_submit	 	$('#submit-menu').click(function(){		var menudata = $('#menu_field').val();		menudata = encodeURIComponent(menudata)		jQuery.ajax({			type:"POST",			url:"code/save_menu.php",			data:'menudata='+menudata,			cache:false,			success:function(response){alert(response)}							});// end of ajax		 					 		$('#menu_editor').slideToggle('slow',function(){});		return false;	});		$('#show_page').click(function(){		$('.page_controls').slideToggle('slow',function(){});		return false;				   		});						$('#paypal_blockxxx').click(function(){			   var invoice = $('#invoice').val();			   jQuery.ajax({						type:"POST",						url:"code/change_inventory.php",						data:'invoice='+invoice,						cache:false,						success:function(response){}							});// end of ajax										  			   });			$('.page_checkboxx').click(function(){									   									   var page_name = $(this).attr('id');									   var page_status = $(this).attr('checked');									   jQuery.ajax({												type:"POST",												url:"code/change_page_status.php",												data:'page_name='+page_name+'&page_status='+page_status,												cache:false,												success:function(response){}													});// end of ajax									   									  									   });	});// end jquery readyfunction open_window(theURL,winName,features) { //v1.0  window.open(theURL,winName,features);}
