//¾ÆÀÌµð/ºñ¹ø Ã£±â
function idpw_pop() {
	var url = "http://swimplaza.co.kr/member/member-index2.php?cmn=2&sts=passid";
	var width = "650";
	var height = "650";
    window.open(url, "wprint", "width=" + width + ", height=" + height +", resizable=0, scrollbars=yes") ;
}

function recom_media(frm) {
	frm.submit();
}

function recom_re(frm) {
	frm.mode.value = "recom_re";
	frm.submit();
}

function scrap_media(frm) {
	if(confirm('ÀÌ µ¿¿µ»óÀ» ½ºÅ©·¦ÇÏ½Ã°Ú½À´Ï±î?')) {
		frm.submit();
	}
}


function scrapView(idx) {
    var pdf_file = "/include/scrap.php?idx="+ idx;
    windowOpen(pdf_file, 'scrapview', 300, 120, 'scrollbars=no,resizable=yes');
}

function windowOpen(url, name, width, height, option) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
	if (option) str += "," + option;
  }
  window.open(url, name, str);
}

function media_delete(idx,page) {
	if(confirm("ÀÌ °Ô½Ã¹°À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
		location.href = "media_save3.php?mode=delete&idx=" + idx + "&page=" + page;
	}
	
}

function media_edit(idx,page) {

	location.href = "media_upload.php?mode=edit&idx=" + idx + "&page=" + page;
	
}
