function saveTranscripts(transcript_id){
	document.body.style.cursor = "wait";
	
	var urllink = base_url + "home/saveTranscripts/" + transcript_id;
									
	$.ajax({
         type: "POST",
         url:urllink,
         success: function(response) {
         	$("#savedTransDiv").html(response);
         	$("#saveButton").html('<img src="' + base_url + 'images/saved.png" border="0" style="float:right;" />');
         	$("#saveButton2").html('<img src="' + base_url + 'images/saved.png" border="0" style="float:right;" />');
         	document.body.style.cursor = 'default';
        },
		error: function(){alert('Error');}
    }) 			
}


function saveTranscripts1(transcript_id){
	document.body.style.cursor = "wait";
	
	var urllink = base_url + "home/saveTranscripts/" + transcript_id;
									
	$.ajax({
         type: "POST",
         url:urllink,
         success: function(response) {
         	$("#savedTransDiv").html(response);
         	document.body.style.cursor = 'default';
        },
		error: function(){alert('Error');}
    }) 			
}


function saveTranscripts2(transcript_id){
	document.body.style.cursor = "wait";
	
	var urllink = base_url + "home/saveTranscripts/" + transcript_id;
									
	$.ajax({
         type: "POST",
         url:urllink,
         success: function(response) {
         	$("#savedTransDiv").html(response);
         	document.body.style.cursor = 'default';
        },
		error: function(){alert('Error');}
    }) 			
}



function saveTranscripts3(transcript_id){
	document.body.style.cursor = "wait";
	
	var urllink = base_url + "home/saveTranscripts/" + transcript_id;
	var btnDiv  = "#save" + transcript_id;
			
	$.ajax({
         type: "POST",
         url:urllink,
         success: function(response) {
         	$("#savedTransDiv").html(response);
         	$(btnDiv).html('<img src="' + base_url + 'images/saved-small.png" border="0" height="18" />');
         	
         	document.body.style.cursor = 'default';
        },
		error: function(){alert('Error');}
    }) 			
}



function removeTranscript(id){
	document.body.style.cursor = "wait";
	
	var urllink = base_url + "home/removeTranscript/" + id;
	$.ajax({
         type: "POST",
         url:urllink,
         success: function(response) {
         	$("#savedTransDiv").html(response);
         	document.body.style.cursor = 'default';
        },
		error: function(){alert('Error');}
    }) 
}




function removeCartItem(id){
	document.body.style.cursor = "wait";
	
	var urllink = base_url + "home/removeCartItem/" + id;
	$.ajax({
         type: "POST",
         url:urllink,
         success: function(response) {
         	$("#cartItems").html(response);
         	document.body.style.cursor = 'default';
        },
		error: function(){alert('Error');}
    }) 
}
