function getTeamDetailsRead(personID) {
	$("#id_hidden").val(personID);
	$("#teamDetails").ajaxSubmit({
		target:'#team-details-info'
	});
}



// By vijay on 23rd September 2008
function getFailureList(){
	tb_remove();
	tb_show("Failure list","company-investment.php?action=getFailureList&width=530&height=300&modal=true",false);
}


function acceptOffer(accepted, offer_id, payment_type){
	var action = 'offerAcceptance';
	if(payment_type != 'cc'){
		if(accepted == 'Accepted'){
			if(!confirm(lang_confirm_offline_payment)){
				return;
			}
		}
		if(accepted == 'Pending'){
			if(!confirm(lang_unapprove_offline_payment)){
				return;
			} else {
				accepted = 'refunded';	
				action = 'refundOfflinePayment';
			}
		}
	}
	$('#offer-acceptance-'+offer_id).html('<img src="images/v2/loader/mini.gif" alt="loading..."/>');
	$.ajax({
		type: "POST",
		url: "company-investment.php",
		data: 'action='+action+'&offer='+accepted+'&offer_id='+offer_id,
		success: function(msg){
			tb_remove();
			jqLoad('showFollowUp','company-investment');
			getInvestmentStatus();
		}
	});
}


function actuallyProceed(){
	$('#TabbedPanels1-TabbedPanels1').html(lang_capturing);
	$.ajax({
		type: "POST",
		url: "company-investment.php",
		data: 'action=proceedandcapturefunds',
		success: function(msg){
			$('#TabbedPanels1-TabbedPanels1').html(msg);
		}
	});
}	


