// ÆÄÀϸí : public_functions.js // ¼ÒÀ¯ÀÚ : CINESeOUL // Á¦ÀÛÀÚ : Storm // Á¦ÀÛÀÏ : 2002.09.06 // ¼³¸í : ÀÚ¹Ù ½ºÅ©¸³Æ® ÇÔ¼ö¸¦ ¸ð¾Æ³õÀº ÆÄÀÏ. °¢ ÆäÀÌÁö¿¡¼­ ÀÎŬ·çµå Çϼ¼¿ä. ///////////////////////////////////// // // »õâÀ» ¿©´Â ÇÔ¼ö // ///////////////////////////////////// function openWindow(URL,name,property){ var win=window.open(URL,name,property); } ///////////////////////////////////// // // ¿¹°íÆíÀ» Ç÷¹ÀÌÇÏ´Â ÇÔ¼ö // mode:lepk -> 56K // mode:help -> 100K // ///////////////////////////////////// function goPreview(cinemaID,mode){ var win=window.open("http://www.cineseoul.com/inc/StreamService.html?id=" + cinemaID + "&path=" + mode,"StreamWindow","width=500,height=420,left=100,top=50"); win.focus(); } function goPreview_test(cinemaID,mode){ var win=window.open("http://www.cineseoul.com/inc/view.html?id=" + cinemaID + "&path=" + mode,"StreamWindow","width=500,height=420,left=100,top=50"); win.focus(); } function viewVod(c,id,path) { //var win=window.open("http://www.cineseoul.com/vod/view.html?c=" + c + "&id=" + id+ "&path=" + path,"StreamWindow","width=365,height=380,left=100,top=50"); //win.focus(); vodWindow(c,id,path,1); } function vodWindow(c,id,path,otherNo) { var win=window.open("http://www.cineseoul.com/newVod/view.html?c=" + c + "&id=" + id + "&path=" + path + "&ono=" + otherNo,"StreamWindow","width=600,height=450,status=0"); win.focus(); } function vodHighWindow(c,id,path,otherNo) { var win=window.open("http://www.cineseoul.com/newVod/viewHigh.html?c=" + c + "&id=" + id + "&path=" + path + "&ono=" + otherNo,"StreamWindow","width=800,height=550,status=0"); win.focus(); } ///////////////////////////////////// // // ³Ñ¾î¿Â URL â ¿­°í ÇÁ¸°Æ® ÇÏ´Â ÇÔ¼ö // ///////////////////////////////////// function goPrint(URL){ var win=window.open(URL ,"PRINT","width=700,height=600,left=100,top=50,scrollbars=yes"); win.focus(); win.print(); } ///////////////////////////////////// // // ÇöÀç »ó¿µ°ü ÆäÀÌÁö·Î À̵¿ÇÏ´Â ÇÔ¼ö // ///////////////////////////////////// function goTheater(cinemaID){ var win=window.open("/movies/cinedata_screening.html?cinemaID=" + cinemaID ,"CcinedataScreening","width=530,height=450,left=100,top=50,scrollbars=yes"); win.focus(); } ///////////////////////////////////// // // ÇöÀç »ó¿µ°ü ÆäÀÌÁö·Î À̵¿ÇÏ´Â ÇÔ¼ö - ticket section // ///////////////////////////////////// function goTheaterTicketSec(cinemaID){ var win=window.open("/ticket/cinedata_screening.html?cinemaID=" + cinemaID ,"CcinedataScreening","width=530,height=450,left=100,top=50,scrollbars=yes"); win.focus(); } ///////////////////////////////////// // // ÇØ´ç ¿µÈ­ÀÇ ¿¹¸Å ÆäÀÌÁö·Î À̵¿ÇÏ´Â ÇÔ¼ö // ///////////////////////////////////// /* function goTicketing(cinemaID,theaterID,subTheaterID){ if(theaterID==null) theaterID=""; if(subTheaterID==null) subTheaterID=""; location.href="/ticket/index.html?cine_id=" + cinemaID + "&thea_id=" + theaterID + "&sub_id=" + subTheaterID +"&dstat=yes"; } */ function goTicketingAmex(cinemaID,theaterID,subTheaterID){ if(theaterID==null) location.href="/booking_new.html?frameUrl=m&cinemaID=" + cinemaID; else location.href="/booking_new.html?frameUrl=mt&cinemaID=" + cinemaID + "&theaterID=" + theaterID + "&subTheaterID=" + subTheaterID ; } function goTicketing(cinemaID,theaterID,subTheaterID){ if(theaterID==null) location.href="/ticket/index.html?frameUrl=m&cinemaID=" + cinemaID; else location.href="/ticket/index.html?frameUrl=mt&cinemaID=" + cinemaID + "&theaterID=" + theaterID + "&subTheaterID=" + subTheaterID ; } //function goTicketing(cinemaID){ // location.href="/ticket/index.html?cine_id=" + cinemaID; //} ///////////////////////////////////// // // ÇØ´ç ¿µÈ­ÀÇ ÆòÁ¡Ã¢ ÇÔ¼ö // ///////////////////////////////////// function goVote(cinemaID){ var win=window.open("/movies/vote.html?cinemaID="+cinemaID,"Vote","width=380,height=350,scrollbars=no"); win.focus(); } function goVoteTest(cinemaID){ var win=window.open("/movies/vote_test.html?cinemaID="+cinemaID,"Vote","width=370,height=400,scrollbars=no"); win.focus(); } ///////////////////////////////////// // // ÇØ´ç ±ØÀåÀÇ ÆòÁ¡Ã¢ ÇÔ¼ö // ///////////////////////////////////// function goTheaterVote(theaterID){ var win=window.open("/movies/theater_vote.html?theaterID="+theaterID,"Vote","width=410,height=280,scrollbars=no"); win.focus(); } ///////////////////////////////////// // // ÇØ´ç ¿µÈ­ÀÇ ÈïÇ࿹°¨µµÃ¢ ÇÔ¼ö // ///////////////////////////////////// function goPreVote(cinemaID){ var win=window.open("/movies/hit_hunch.html?cinemaID="+cinemaID,"PreVote","width=470,height=380,scrollbars=no"); win.focus(); } function goPreVoteTest(cinemaID){ var win=window.open("/movies/hit_hunch_test.html?cinemaID="+cinemaID,"PreVote","width=470,height=380,scrollbars=no"); win.focus(); } ///////////////////////////////////// // // Å« À̹ÌÁö È­ÀÏÀ» ¿¬´Ù. (»õâ) // ///////////////////////////////////// function viewLargeImage(URL){ var win=window.open("","largeImage",""); //var win=window.open("","LargeImage","top=0,left=0,,toolbar=no,statusbar=yes,scrollbars=yes,resizable=yes"); win.document.write(""); win.document.write("CINESeOUL"); win.document.write(""); win.document.write("
"); win.document.write(""); win.focus(); win.document.close(); } function viewLargePImage(URL,Width,Height){ var win=window.open("http://www.cineseoul.com/movies/people_view.html?iUrl=" + URL,"LargeImage","width="+Width+", height="+Height+", top=0,left=0,toolbar=no,statusbar=no,scrollbars=no,resizable=no"); win.focus(); /* win.document.write(""); win.document.write("CINESeOUL"); win.document.write(""); win.document.write("
"); win.document.write(""); win.focus(); win.document.close(); */ } function viewLargeImagePage(URL,Width,Height){ var win=window.open("http://www.cineseoul.com/movies/view_image.html?iUrl=" + URL,"LargeImage",""); //var win=window.open("http://www.cineseoul.com/movies/view_image.html?iUrl=" + URL,"LargeImage","width="+Width+",height="+Height+",left=10,top=10"); win.focus(); } ///////////////////////////////////// // // ¿ìÆí ¹øÈ£ °Ë»ö // ///////////////////////////////////// function search_zipcode(zip_form, addr_form) { window.open("/cgi-bin/searchZipcode.cgi?zipcode=" + zip_form + "&addr=" + addr_form, "zipcode", "scrollbars=yes,width=400,height=200,left=100,top=50"); } ///////////////////////////////////// // // DB ¸Å´ÏÀú¿¡°Ô ¸ÞÀÏÀ» º¸³½´Ù. // ///////////////////////////////////// function goMailToDBManager(){ openWindow('/inc/db_mail.html','DBMail','width=400,height=480,scrollbars=no,left=100,top=50'); } function goMailToDBManager(category){ openWindow('/inc/db_mail.html?category='+category,'DBMail','width=400,height=480,scrollbars=no,left=100,top=50'); } function goMailToDBManager(category,sourceURL){ openWindow('/inc/db_mail.html?category='+category+'&sourceURL='+sourceURL,'DBMail','width=400,height=480,scrollbars=no,left=100,top=50'); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ·£´ýÇÏ°Ô ¹è³Ê¸¦ È£ÃâÇÏ´Â ÇÔ¼ö // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function getBanner(banner){ // ·Ñ¸µµÇ´Â ¹è³ÊÀÇ °³¼ö bannerCNT=banner.length; chanceLimit=0; chanceTotal=0; // ÃÑ ÆÛ¼¾Æ® for(i=0;i