﻿function GenericVideoOperation(strOperation,lngVideoID,lngUniPanelID)
{
  glbXmlRequest = new AkimanXmlHTTP(document.getElementById("loading"),document.getElementById("debug"));
  var	params = CustomParamBuilder("strOperation", strOperation);
  params += CustomParamBuilder("lngUniPanelID", lngUniPanelID);
  params += CustomParamBuilder("lngVideoID",lngVideoID);
  params += parseAspForm();
  var soapData = SoapDataBuilder("GenericVideoOperations",params);
  AjaxRequest("/PanelOperationV2.asmx",soapData,"","loading");
}

function UpdateGenericVideoList(UniPanelID)
{
    GenericDocumentOperation("UpdateGenericVideoList",0,UniPanelID);
}
function DeleteGenericVideo(UniPanelID,VideoID)
{
    if (confirm("Are you sure , you want to delete this entry?"))
	{
        GenericVideoOperation("DeleteGenericVideo",VideoID,UniPanelID);
    }
}
