
//Delete A Room
function deleteBizzcast(uid,id,name){
	var r=confirm("Are You Sure You Want To Remove The BizzCast?");
	if (r==true)
	  {
	  //alert("You pressed OK!");
	  savingDialog();
	  url = 'scripts/php/bizzcasts.php';
		type = 'RemoveBizzcast';
		params = 'uid='+uid+'&';
		params += 'id='+id+'&';
		params += ''+type+'=type&';
		
		httpRequestPOST(url,params,type);
	  }
	else
	  {
	  //alert("Cancelled Delete!");
	  }
}		
	
	
	

// post-submit callback 
function bizzcastFormResponse(responseText, statusText, xhr, $form)  { 
    // for normal html responses, the first argument to the success callback 
    // is the XMLHttpRequest object's responseText property 
 
    // if the ajaxSubmit method was passed an Options Object with the dataType 
    // property set to 'xml' then the first argument to the success callback 
    // is the XMLHttpRequest object's responseXML property 
 
    // if the ajaxSubmit method was passed an Options Object with the dataType 
    // property set to 'json' then the first argument to the success callback 
    // is the json data object returned by the server 
 
   //alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + '\n\nThe output div should have already been updated with the responseText.'); 
	$.colorbox.close();
	if (responseText === 'OK'){
		$.blockUI({ 
			css: { 
				border: 'none', 
				padding: '15px', 
				backgroundColor: '#000', 
				'-webkit-border-radius': '10px', 
				'-moz-border-radius': '10px', 
				opacity: .5, 
				color: '#fff',
				fontSize: '2em'
				},
			message: '<img src="images/icons/tick_lrg.png"  /> Saved'	
		}); 
		//setTimeout('window.location.reload();', 1000); 
		//restoreEventsBanner()
		setTimeout('$.unblockUI();', 2000); 
		
		
		refreshBizzcasts();
		
		//$.colorbox.close()
	} else {
		$.blockUI({ 
			css: { 
				border: 'none', 
				padding: '15px', 
				backgroundColor: '#000', 
				'-webkit-border-radius': '10px', 
				'-moz-border-radius': '10px', 
				opacity: .5, 
				color: '#fff',
				fontSize: '2em'
				},
			message: '<img src="images/icons/cross.png"  /> Save Failed'	
		}); 
		//setTimeout('window.location.reload();', 2000); 
		//setTimeout('$.unblockUI();', 3000); 
		setTimeout('actionsPopUp();', 3000); 
	}
} 





function refreshBizzcasts(){
	var content = $("#bizcasts_box");
	//window.scrollTo(0,0);
	content.fadeOut('slow');
	var value = $('#eventID').val(); 
//alert('The event is: ' + value); 
	content.load("webroom/bizcasts.php?eventID="+value+"&ajaxPanel", content.fadeIn('slow'));
	content.fadeIn('slow');
	
		
}

