function showpic(id,hans) {
  //alert(hans);
  var filename = 'EEXVIDEO_DownloadPicture.aspx?downloadpicture='+hans+'&id='+id;
  //alert(filename);
  var downloadWin = window.open(filename,"download","width=350,height=390,scrollbars=auto,status=no,resizable=yes");
}

function winopen(o_id,r_id,hans) {
  //alert(hans);
  var filename = '/default.asp?action='+hans+'&o_id='+o_id+'&r_id='+r_id;
  //alert(filename);
  var downloadWin = window.open(filename,"download","width=360,height=300,scrollbars=auto,status=no,resizable=no");
}

function winopenPress(o_id,hans) {
  //alert(hans);
  var filename = '/default.asp?action='+hans+'&o_id='+o_id;
  //alert(filename);
  var downloadWin = window.open(filename,"download","width=460,height=350,scrollbars=yes,status=no,resizable=no");
}
function openPersonalDataWindow() {
  //alert(hans);
  var filename = '/default.asp?action=changesettings';
  //alert(filename);
  var persDatWin = window.open(filename,"personaldata","width=450,height=520,scrollbars=auto,status=no,resizable=yes");
}
function showpicrez(picname) {
  //alert(hans);
  var filename = '/tempPics/' + picname;
  alert(filename);
  var persDatWin = window.open(filename,"download","width=450,height=520,scrollbars=auto,status=no,resizable=yes");
}
function showtrailer(trailname) {
  //alert(hans);
  var filename = '/upload/' + trailname;
  //filename.opener.name = 'Trailer'
  //alert(filename);
  var persDatWin = window.open(filename,"Trailer","width=450,height=520,scrollbars=auto,status=no,resizable=yes,location=no,titlebar='trailer'");
}

function showpicture(picstring) {
  //alert(picstring);
  var features = "width=450,height=520,scrollbars=yes,status=no,resizable=yes,location=no,titlebar='trailer'"
  winHandle = window.open('',"Picture",features)
  if(winHandle != null){
  var htmlString = "<html><head><title>picture</title>"
      htmlString = htmlString + "</head><body bgcolor=white topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>"
      htmlString = htmlString + "<table cellpadding=2 cellspacing=0 border=0>"
      htmlString = htmlString + "<tr><td><img src=" + picstring + "></td></tr>"
      htmlString = htmlString + "</table></div></form></body></html>"
  winHandle.document.open()
  winHandle.document.write(htmlString)
  winHandle.document.close()
  }	
  if(winHandle != null) winHandle.focus() //brings window to top
  //return winHandle
}


