//var ajaxVenues = new sack();
var ajaxPhotos = new sack();

function delPhotoComment(phtComm,HTTP_PATH,phtID,userID)
{
	ajaxPhotos.element = 'dv'+phtComm;		
	ajaxPhotos.requestFile = HTTP_PATH +'/Publish/Ajax/utilities.php?photoCommID='+phtComm+'&utility=2';
	//ajaxPhotos.onCompletion = setlabel;	// Specify function that will be executed after file has been found
	if(ajaxPhotos.onInteractive= window.confirm("Are You Sure You Want To Delete It?"))
	{
		ajaxPhotos.runAJAX();		// Execute AJAX function
	}
	ajaxPhotos.onCompletion = setlabel(HTTP_PATH,phtID,userID);	// Specify function that will be executed after file has been found
}


function setlabel(HTTP_PATH,phtID,userID)
 {
	 eval(ajaxPhotos.response);
	 window.location = HTTP_PATH +'/Publish/Users/Albums/viewAlbum.php?pid=' + phtID + '&uid='+userID;
 }