//앨범 삭제 function albumdelete(site, alb, type){ // alert(site+alb+"type="+type); var msg =""; /* if(type=="phone"){ msg = "핸드폰 앨범입니다. 앨범 사진이 모두 삭제 됩니다."; } else{ msg = "앨범 전체가 삭제 됩니다."; } */ msg = "앨범과 앨범 사진이 모두 삭제 됩니다."; msg += "삭제 하시겠습니까?"; if(confirm(msg)){ var data = ""; data += "site="+site; data += "&alb=" + alb+"&type=" + type; LoadPostData("/mod/album_delete.php", albumdeleteResult, data); } } function albumdeleteResult(data, xml) { var res = xml.getElementsByTagName("res")[0].firstChild.nodeValue; var type = xml.getElementsByTagName("type")[0].firstChild.nodeValue; var site = xml.getElementsByTagName("site")[0].firstChild.nodeValue; if (res == "ok") { //끝 메세지 if(type=="open"){ parent.center_iframe.location.href="/html/photo_main.php?site="+site+"&albType=0&p=P"; //메인 프레임을 보여준다. } else if(type=="friend"){ parent.center_iframe.location.href="/html/photo_main.php?site="+site+"&albType=1&p=P"; //메인 프레임을 보여준다. } else if(type=="secret"){ parent.center_iframe.location.href="/html/photo_main.php?site="+site+"&albType=2&p=P"; //메인 프레임을 보여준다. } else{ parent.center_iframe.location.href="/html/photo_main.php?site="+site+"&albType=3&p=P"; //메인 프레임을 보여준다. } }else { alert(res); } }