/**************** HANDLE FORMS ****************/
function formSubmit(action, referrer) {
	switch (action) {
		case "continue":
			if($("#reg-form")) {
				$("#reg-form").submit();
			} else {
				alert("An error has occured");
			}
			break;
		case "cancel":
			confirm("Warning: Changes will be lost.");
			history.back();
			break;
	}
}
