

function DoConfirm(message, url) {
  if(confirm(message)) location.href = url;
}

function OpenMusic(URL,URL2)
{
//  var mLeft = screen.width-400-30;
  var mLeft = 0;
  aURL = "../songplayer.php?play_song="+URL+"&song_name="+URL2;
  window.status = "";
  strFeatures = "top=30,left="+mLeft+",width=300,height=120,toolbar=no,scrollbars=no," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(aURL, "MySongPlayer", strFeatures);
  window.status = "Song Player";
  objNewWindow.focus();
}

function OpenMemberList(URL)
{
  var mLeft = screen.width-400-30;
  window.status = "";
  strFeatures = "top=30,left="+mLeft+",width=400,height=540,toolbar=no,scrollbars=yes," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(URL, "MyMemberList", strFeatures);
  window.status = "開啟新的瀏覽器視窗";
//  objNewWindow.moveTo(screen.width-400-40,screen.height-540-50);
//  objNewWindow.moveTo(460,160);
  objNewWindow.focus();
}

function OpenECard(URL)
{
  var mLeft = screen.width-700-30;
  window.status = "";
  strFeatures = "top=30,left="+mLeft+",width=700,height=540,toolbar=no,scrollbars=yes," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(URL, "MyECard", strFeatures);
  window.status = "開啟新的瀏覽器視窗";
//  objNewWindow.moveTo(screen.width-400-40,screen.height-540-50);
//  objNewWindow.moveTo(460,160);
  objNewWindow.focus();
}

function OpenImageView(URL)
{
  var mLeft = screen.width-400-30;
  window.status = "";
  strFeatures = "top=30,left="+mLeft+",width=400,height=400,toolbar=no,scrollbars=yes," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(URL, "MyImages", strFeatures);
  window.status = "開啟新的瀏覽器視窗";
  objNewWindow.focus();
}

function OpenMovie(URL)
{
  var mLeft = screen.width-768-30;
  window.status = "";
  strFeatures = "top=30,left="+mLeft+",width=768,height=609,toolbar=no,scrollbars=yes," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(URL, "MyMemberList", strFeatures);
  window.status = "開啟新的瀏覽器視窗";
  objNewWindow.focus();
}

function OpenScrawl(URL)
{
  window.status = "";
  strFeatures = "top=220,left=340,width=470,height=40,toolbar=no,scrollbars=yes," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(URL, "MyNewScrawl", strFeatures);
  window.status = "開啟新的瀏覽器視窗";
}

function showpicture(auto_seq,seq,picture_name)
{
//  var mLeft = screen.width-820;
  window.status = "";
  strFeatures = "top=30,left=10,width=220,height=60,toolbar=no,scrollbars=yes," 
              + "menubar=no,location=no,directories=no";
  picturl = "../exhibition/showpicture.php?auto_seq="+auto_seq+"&seq="+seq+"&picture_name="+picture_name;
  objNewWindow = window.open(picturl, "MyPictureList", strFeatures);
  window.status = "開啟新的瀏覽器視窗";
  objNewWindow.focus();
}

function OpenProductionsList(URL)
{
  var mLeft = screen.width-530;
  window.status = "";
  strFeatures = "top=30,left="+mLeft+",width=500,height=540,toolbar=no,scrollbars=yes," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(URL, "MyProductionsList", strFeatures);
  window.status = "開啟新的瀏覽器視窗";
  objNewWindow.focus();
}

function OpenRecording(p1,p2)
{
//  var mLeft = screen.width-400-30;
  var mLeft = 10;
  aURL = "../recordingplayer.php?play_recording="+p1+"&recording_name="+p2;
  window.status = "";
  strFeatures = "top=30,left="+mLeft+",width=400,height=120,toolbar=no,scrollbars=no," 
              + "menubar=no,location=no,directories=no";
  objNewWindow = window.open(aURL, "MyRecordingPlayer", strFeatures);
  window.status = "Recording Player";
  objNewWindow.focus();
}
