function gallery(gallery_name,max_num){
  pop_window=window.open('/movies/popups/gallery.jhtml?imageNo=1&galleryName='+gallery_name+'&maxNo='+max_num,'','width=481,height=430,scrollbar=false,toolbar=false')
  pop_window.creator=self
}

function launchVideo(url){
  window.open(url,"dom","width=350, height=140, toolbar=false, scroll=false")
}

function shorten_date(long_date){
  bits = long_date.split("/");
  short_date = bits[0]+"/"+bits[1];
  document.write (short_date);
}


s= "no" ;
var popUpWindow = null;
var undefinedVariable;
var undefType = typeof undefinedVariable;
function pop(url,w,h,s){
  if (popUpWindow!=null) {
    var windowHasBeenClosed = (typeof popUpWindow.location == undefType ) ;
    if (!windowHasBeenClosed ){
      popUpWindow.close();
   	}
  }
  settings="resizable=yes,toolbar=no,scrollbars=" + s + ", width=" + w +",height=" + h + ",status=no";
  var time = new Date();
  winName="movies" + time.getTime()
  popUpWindow = open(url,winName, settings);
  if ( navigator.appVersion.indexOf("MSIE")==-1 ) {
    popUpWindow.resizeTo(w, h);
  }
}
