/*
			"formName="+escape($("#formName").attr("value"))+
			"&formUrl="+escape($("#formUrl").attr("value"))+
			"&formComment="+escape($("#formComment").attr("value"))+
			"&formEmail="+escape($("#formEmail").attr("value"))+
			"&id="+escape($("#formId").attr("value"))+
			"&postComment=true",*/
			

function quoteAnswerLink(answer) {
	var dt="";
	if($.browser.msie || $.browser.opera) dt = "html"
	$.ajax({
		type: "POST",
		url: "ajax.php?view=quoteWizard/wizard",
		dataType: dt,
		data:
			"answer="+answer+
			"&id="+quoteId,

		error: function(i,msg,error) {
			$("#wizardCont").html("<p>There was an error connecting to my server :( If the problem persists, please contact me.</p><p>"+error+"</p>");
		},
		success: function(msg){
			$("#wizardCont").html(msg);
		}
	});
	return false;
}

function commentPosted() {
	$("#commentForm").hide();
	$("#wizardCont").html("<h3>Thank You!</h3><p>Your comment has been posted.</p><p>It will be visible after being manually approved - Sorry spammers ;)</p>");
}

function commentFailed(errorMsg) {
	alert("Error: "+errorMsg);
}
