	saveResume = function(params)
	{
		//show loading image
		$('resume-overwrite-form').hide();
		$('resume-overwrite-progress').show();

		new Ajax.Request('/parser/overwrite_resume/true/',{
			method:'post', 
			parameters:params,
			on500: function(response){
				alert('There was an error analyzing your resume');
			},
			on460: function(response){
				alert(response);
			},
			onSuccess: function(response){
				//hide loading image
				$('resume-overwrite-form').show();
				$('resume-overwrite-progress').hide();
				
				$('overwriteresume_popup').hide();

				//show error msg, rate your experience, overwrite profile popup
				$('resumeuploadcontainer').update(response.responseText);
				$('resumeuploadcontainer').show();

				$$('.rating').each(function(t){
					var id = $(t).identify();
					var num_id = id.replace(/[^0-9]/g, '');
					var value = $("input_" + num_id).value;
					new Starry(id,{ maxLength:5, name:"input_"+num_id, startAt:value });
				});
			}
		});

		//hide popup
		//setTimeout('$(\'resumeuploadcontainer\').toggle()',2000);
	}

	submitRatings = function(params)
	{
		$('ratings').hide();
		$('ratings-progress').show();
		$('resumeupload_popup').scrollTo();
		$('retrievetitle').show();
		$('ratingstitle').hide();

		new Ajax.Request('/parser/complete_upload/true/',{
			method:'post', 
			parameters:params,
			onSubmit: function(){
			},
			on500: function(response){
				alert('There was an error uploading resume');
			},
			on460: function(response){
				alert(response);
			},
			onSuccess: function(response){
				window.location = response.responseText;
			}
		});

		//hide popup
		//setTimeout('$(\'resumeuploadcontainer\').toggle()',2000);
	}
