// JavaScript Document

$.ajaxSetup({
	url: 'http://www.hi-tec.com/artforparks/includes/afp_control.php',
	cache: false
}); 





function entry(){
	var action = 'entry';
	//  ...you know... if jQuery doesn't have something to do this already, I should make an array, loop, output param string thing...
	var name = document.getElementById('name').value;
	var email = document.getElementById('email').value;
	var phone = document.getElementById('phone').value;
	var skype = document.getElementById('skype').value;
	var artURL = document.getElementById('artURL').value;
	var notes = document.getElementById('notes').value;
	
	$.ajax({
		//Override default?
		type: 'POST',
		data: {action:action, name:name, email:email, phone:phone, skype:skype, artURL:artURL, notes:notes},
		success: function(data){
			$('#signup').html('<p>'+data+'</p>'); // "data" is the response.write value that the server page sent.
    	}
	});
	
	return false; // Prevents the form from being submited
}

