");
}
function imgpreview2(id,uid)
{
var KimsonPopupCheck = getPopUpFlag(window.open('','iwin','left=0,top=0,width=100,height=100,scrollbars=yes,status=yes'));
KimsonPopupCheck.document.write("
¹Ì¸®º¸±â
\
");
}
function showInvWin(url)
{
getPopUpFlag(window.open(url , 'articlewin' , 'left=0,top=0,width=800,height=600,scrollbars=yes,status=yes'));
}
function zoom(uid)
{
window.open('../../_system/module/shop/zoom.php?uid=' + uid,'','left=0,top=0,width=480,height=555,scrollbars=no,status=yes');
}
function getTpriceLoyaltyJs(tprice,val)
{
var tmpval = val ? val : 1;
return parseInt(Math.floor(parseInt(tprice)/tmpval ) * tmpval);
}
function getLoginNeed()
{
if(confirm('·Î±×ÀÎÇÏ¼Å¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. \n\nÁö±Ý ·Î±×ÀÎÇϽðڽÀ´Ï±î?'))
{
location.href = "./login.php?referer=" + escape(location.href);
}
}
function getDownInfo(uid)
{
window.open('../../_system/module/upload/info.php?uid=' + uid,'','left=0,top=0,width=480,height=555,scrollbars=yes,status=yes');
}
function IconImgError(imgobj, maxwidth) {
var maxwidth=(!maxwidth)?10:maxwidth;
try {
imgobj.src = 'http://image.cetizen.com/icon/none.bmp';
imgobj.width = maxwidth;
imgobj.style.width = maxwidth;
} catch (ex) {}
}
function OnUserMenuShow(str, pname){
if(str > 0) {
// user menu layer
var obj = document.all["calmain"];
// set position
obj.style.posLeft = event.x + document.body.scrollLeft + 10;
obj.style.posTop = event.y + document.body.scrollTop +10;
var isReturn = "";
var text = "";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
" + pname + "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
text += "
";
obj.innerHTML = text;
obj.style.display = "";
}
}
function OnUserMenuHide() {
document.all["calmain"].style.display = "none";
}
//-->
var init_maxwidth = 580;
var init_maxwidth_list = 125;
function RainImgError(imgobj) {
try {
imgobj.src = 'http://image3.cetizen.com/2007_cetizen/cetizen/noimage.gif';
imgobj.width =125;
imgobj.height= 93;
imgobj.style.width = 125;
imgobj.style.height = 93;
} catch (ex) {}
}
function RainImgError2(imgobj, maxwidth) {
var maxwidth=(!maxwidth)?100:maxwidth;
try {
imgobj.src = 'http://image3.cetizen.com/2007_cetizen/cetizen/d_noimage.gif';
imgobj.width = maxwidth;
imgobj.style.width = maxwidth;
} catch (ex) {}
}
function RainImgError48(imgobj, maxwidth) {
try {
imgobj.src = 'http://image3.cetizen.com/2007_cetizen/cetizen/noimg'+ maxwidth +'.gif';
imgobj.width = maxwidth;
//imgobj.height = maxheight;
imgobj.style.width = maxwidth;
//imgobj.style.height = maxheight;
} catch (ex) {}
}
function RanFramesView(url, w, h, scroll) {
getPopUpFlag(window.open(url , 'articlewin' , 'left=0,top=0,width='+w+',height='+h+',scrollbars='+scroll + ',status=no'));
}
function RanimgView(img_obj) {
var img_name=img_obj;
var viewImg=new Image()
viewImg.src=img_name
document.body.appendChild(viewImg)
// alert('offsetWidth:'+viewImg.offsetWidth+'/width:'+viewImg.width)
var w_img = viewImg.width;
var h_img = viewImg.height;
//alert(h_img);
if (h_img > 768) {
var win_scrollbars = 'yes';
var h_img = '768';
var w_img = '1024';
var img_name = img_obj.src;
var win_scrollbars = 'yes';
} else if (w_img > 1024) {
var w_img = '1024';
var h_img = '768';
var win_scrollbars = 'yes';
var img_name = img_obj.src;
} else {
var win_scrollbars = 'no';
var img_name = img_obj.src;
}
//rain.Popup.imgViewerSimple (img_obj,win_w,win_h,0)
//alert(win_scrollbars);
RanFramesView(img_obj,w_img,h_img,win_scrollbars);
}
function loadRainImgList(imgobj) {
try {
if (imgobj.width > init_maxwidth_list) {
imgobj.height = Number(imgobj.height * init_maxwidth_list / imgobj.width);
imgobj.width = init_maxwidth_list;
imgobj.style.width=init_maxwidth_list;
imgobj.style.height=Number(imgobj.height * init_maxwidth_list / imgobj.width);
}
} catch(ex) {}
}
function loadRainImgList2(imgobj, maxwidth) {
var maxwidth=(!maxwidth)?10:maxwidth;
try {
if (imgobj.width > maxwidth) {
imgobj.height = Number(imgobj.height * maxwidth / imgobj.width);
imgobj.width = maxwidth;
imgobj.style.width=maxwidth;
imgobj.style.height=Number(imgobj.height * maxwidth / imgobj.width);
imgobj.src = imgobj;
}
} catch(ex) {}
}
function loadRainThumbGameImg(imgobj, maxwidth)
{
try {
if (imgobj.width > maxwidth) {
imgobj.height = Number(imgobj.height * maxwidth / imgobj.width);
imgobj.width = maxwidth;
imgobj.style.width = maxwidth;
imgobj.style.height = Number(imgobj.height * maxwidth / imgobj.width);
}
} catch(ex) {}
}
function loadRainImg(imgobj) {
imgobj.src = imgobj;
try {
if (imgobj.width > init_maxwidth) {
imgobj.height = Number(imgobj.height * init_maxwidth / imgobj.width);
imgobj.width = init_maxwidth;
imgobj.style.width=init_maxwidth;
imgobj.style.height=Number(imgobj.height * init_maxwidth / imgobj.width);
}
} catch(ex) {}
}
function sendprint(uid)
{
//RanFramesView('../../_system/module/print/print.htm?uid=' + uid, 650,600,'yes');
getPopUpFlag(window.open('../../_system/module/print/print.htm?uid=' + uid , 'printwin' , 'top=0,left=0,width=650,height=600,scrollbars=yes,status=yes'));
}
function sendcopy(uid)
{
//RanFramesView('../../_system/module/print/print.htm?uid=' + uid, 650,600,'yes');
getPopUpFlag(window.open('../../_system/module/print/copy.htm?uid=' + uid , 'copywin' , 'top=0,left=0,width=650,height=600,scrollbars=yes,status=yes'));
}
function sendemail(id,uid)
{
//RanFramesView('../../_system/module/email/email.php?id='+id+'&uid=' + uid, 650,600,'no');
getPopUpFlag(window.open('../../_system/module/email/email.php?id='+id+'&uid=' + uid , 'emailwin' , 'top=0,left=0,width=650,height=600,scrollbars=no,status=yes'));
}
function statview(id)
{
getPopUpFlag(window.open('/bbs.php?q=stat&newwin=Y&id='+id , 'bbsstatwin' , 'top=0,left=0,width=650,height=600,scrollbars=no,status=yes'));
}
function singo(table,uid,userid,mbid,id)
{
if (mbid == "") {
view_cover('LayLoginForm','');
return;
}
var bid = '';
id = bid?bid:id;
if(userid == mbid) {
rainPopup.alert("º»ÀÎÀÌ ÀÛ¼ºÇÑ ±ÛÀº ½Å°í°¡ ºÒ°¡´É ÇÕ´Ï´Ù");
return;
}
//RanFramesView("/bbs.php?q=singo&xsite=review&newwin=Y&id=" + id + "&tbl=" + table + "&suid=" + uid + "&userid="+userid, 480,380,'no');
getPopUpFlag(window.open("device.php?q=singo&xsite=review&newwin=Y&id=&tbl=" + table + "&suid=" + uid + "&userid="+userid, "singowin" , "left=0,top=0,width=460,height=368,scrollbars=no,status=yes"));
}
function getDivWidth(width,div)
{
var maxsize = parseInt(width);
var content = document.getElementById(div);
var img = content.getElementsByTagName("img");
for(i=0; i maxsize') )
{
var heightSize = ( eval('img[' + i + '].height')*maxsize )/eval('img[' + i + '].width') ;
eval('img[' + i + '].width = maxsize') ;
eval('img[' + i + '].height = heightSize') ;
}
}
content.innerHTML = content.innerHTML.replace(/Image View\
");
}
function OutUrlWin(url)
{
window.open(url);
}
function bbsdel_check(url, seq)
{
function delCheck(bl) {
if (bl) {
location.href = url + "&uid=" + seq;
}
}
if(confirm('Á¤¸»·Î »èÁ¦ÇϽðڽÀ´Ï±î ? '))
location.href = url + "&uid=" + seq;
else
return;
}
function bbsdel_check1(url, seq)
{
return confirm('Á¤¸»·Î »èÁ¦ÇϽðڽÀ´Ï±î? ');
location.href = url + "&uid=" + seq;
}
function category_change(cat, newwin)
{
location.href = "./bbs.php?id=&best=&muid=&s=&recnum=&pid=4274&rcat=&vcat=12&pno=4274&puid=&category=" + cat + "&newwin=" + newwin;
}
function StrLen(argStr)
{
var ii;
var strLen = 0;
for(ii = 0; ii < argStr.length; ii++) {
if(argStr.charCodeAt(ii) < 128)
strLen ++;
else
strLen += 2;
}
return strLen;
}
function down(xid)
{
frames._action_frame_.location.href = "/_system/module/upload/down.php?xsite=&id=&uid=&xid=" + xid;
}