﻿function DisplayShareVideo(VideoID, CategoryID, SubCategoryID, VideoName) {
    MyFireVideosWeb._services.videoajax.ShareVideo(VideoID, CategoryID, SubCategoryID, VideoName, OnDisplayShareVideoComplete, OnTimeOut, OnError);
} //end ShareVideo

function DisplayVideo(VideoID) {
    alert(VideoID);
    MyFireVideosWeb._services.videoajax.ShowVideo(VideoID, OnDisplayVideoComplete, OnTimeOut, OnError);
} //end DisplayVideo

function OnDisplayShareVideoComplete(share) {
    location.href = share;
} //end OnDisplayShareVideoComplete

function OnDisplayVideoComplete(show) {
    //window.open("Sample.htm",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
    window.open(show, null, 'height=450,width=600,status=no,toolbar=no,menubar=no,location=no');
} //end OnDisplayVideoComplete

function OnTimeOut(arg) {
    //alert(arg.get_message());
} //end OnTimeOut

function OnError(arg) {
    //alert(arg.get_message());
} //end OnError
