// 名刺表示
function cardOpen(id){
  url = "../card/cardView.do?userId=" + id;
  w = window.open(url,'cardpop','width=567,height=500,menubar=no,scrollbars=yes,resizable=no,toolbar=no');
  w.focus();
}

function cardOpen2(id){
  url = "../../card/cardView.do?userId=" + id;
  w = window.open(url,'cardpop','width=567,height=500,menubar=no,scrollbars=yes,resizable=no,toolbar=no');
  w.focus();
}

// 保存名刺表示
function saveCardOpen(id){
  url = "../card/saveView.do?id=" + id;
  w = window.open(url,'savepop','width=567,height=500,menubar=no,scrollbars=yes,resizable=no,toolbar=no');
  w.focus();
}

// ポップアップウィンドウ共通
function openWin(url,name,features){
  w = window.open(url,name,features);
  w.focus();
}

// 名刺に表示された各コンテンツへのリンク遷移
function OpenerLocation(url) {
/** ↓/mod/2006.09.05/SOH/iframe内から名刺表示した場合に対応 **/
//  window.opener.location = url;
  var obj;
  obj = window.opener.parent;
  obj.location.href = url;
/** ↑/mod/2006.09.05/SOH/iframe内から名刺表示した場合に対応 **/
  window.close();
}

// クリップボードにコピー
function clipboardCopy(url){
  if(navigator.appName.indexOf("Microsoft Internet Explorer")!=-1){
    window.clipboardData.setData("text", url);
  }else{
    alert("Windows + IEのみ使用可能な機能です。");
  }
}

// BODYグラフ表示

function bodyGraphOpen(id){
  url = "./showBodyGraph.do?userId=" + id;
  w = window.open(url,'cardpop','width=600,height=580,menubar=no,scrollbars=yes,resizable=no,toolbar=no');
  w.focus();
}

function openWinCalorie(){
  url = "/sports/bodygraph/popUpCalorie.jsp";
  w = window.open(url,'cardpop','width=600,height=580,menubar=no,scrollbars=yes,resizable=no,toolbar=no');
  w.focus();
}

