<!--
function setCookie (name, value, expires, path, domain, secure) {
   document.cookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
}


function getCookie(name) {
   var cookie = " " + document.cookie;
   var search = " " + name + "=";
   var setStr = null;
   var offset = 0;
   var end = 0;
   if (cookie.length > 0) {
      offset = cookie.indexOf(search);
      if (offset != -1) {
         offset += search.length;
         end = cookie.indexOf(";", offset)
         if (end == -1) {
            end = cookie.length;
         }
         setStr = unescape(cookie.substring(offset, end));
      }
   }
   return(setStr);
 }

function ShowPopup_add_clip(file) {

   setCookie("foo", "bar", "", "");
   myVar = getCookie("foo");
   if (myVar != "bar") {
      alert("Sorry...\n\nYour browser needs to be set to ACCEPT COOKIES\nin order to add a film clip to the clipboard.\n\n");
      return false;
   }

   msgWindow = window.open("", "add_clip", 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=400,height=125');               
   msgWindow.focus();                
   msgWindow.location = file;

}

//-->
