/******************************
Document info      
Auth     : RedCat
Project  : 
Location : /jscss
Filename : lib.common.js
Update   : 2004-02-23
Updater	 : ±èÀÎÈ£(tree92@joy1004.com)
Comment  : 
******************************/
//document.domain = "";

if (document.layers){
	var wb = 'ns4';
}
else if (document.all){
	var wb = 'ie';
}
else if (document.getElementById){
	var wb = 'ns6';
}

//###############################################################################################
//	ÀÛ¼ºÀÚ : ±èÀÎÈ£(tree92@webax.pe.kr)		//	ÀÛ¼ºÀÏ : 2004³â 2¿ù 19ÀÏ
//	¼³  ¸í : ¹®ÀÚ¿­ÀÌ ¾ËÆÄºª°ú ¼ýÀÚ·Î¸¸ ±¸¼ºµÇ¾î ÀÖ´ÂÁö È®ÀÎ // pCheckID = 1 : ¾ÆÀÌµð °Ë»ç·Î ÀÌ¿ë
//	»ç¿ë¿¹ : checkAlpa("_AAAA", 1) => return false
function checkAlpaNum(pValue, pCheckID)
{
    //ÀÏ¹ÝÇüÅÂÀÇ ID´Â alphanumeric¸¸ °¡´É.
    var regExpr = /^[a-zA-Z0-9]+$/;
	var regExpr2= /^[a-zA-Z]+$/;

    if (regExpr.test(pValue)) //alphanumericÀ¸·Î¸¸ ±¸¼ºµÇ¾î ÀÖÀ¸¸é OK!
    {
        return true;
    }
    else //ÇÑ±Û°ú alphanumericÀÎÁö °Ë»ç.
    {
        var chrOrig;

		if(pCheckID = 1) {
			if ( !regExpr2.test(pValue.substring(0, 1)) ) {
				alert("¾ÆÀÌµðÀÇ Ã¹±ÛÀÚ´Â ¾ËÆÄºªÀÌ¾î¾ßÇÕ´Ï´Ù.");
				return false;
			}
		}
		
        for( var intinx = 0; intinx <= pValue.length -1 ; intinx++ )
        {
            chrOrig = pValue.substring(intinx,intinx+1);
            if (!regExpr.test(chrOrig))
            {
				alert ("¹®ÀÚ´Â ¾ËÆÄºª, ¼ýÀÚ·Î¸¸ ±¸¼ºµÇ¾î¾ß ÇÕ´Ï´Ù.");
				return false;
            }
        }
    }
    return true;
}
//###############################################################################################


//¼ýÀÚ,¾ËÆÄºª¸¸//////////////////////////////////////////////
function chkAlNum(pValue) {
	for(var i=0; i<pValue.length;i ++) {
		var pCh = pValue.charAt(i).toUpperCase();
		if(pCh >="A" && pCh <="Z") continue;
		if(pCh >="0" && pCh <="9") continue;
		if(pCh  =" ") continue;
		return false;
	}
}

//°ø¹éÃ¼Å©////////////////////////////////////////////////////
function chkSpace(pValue) {
	if (pValue.indexOf(" ")>=0) {
		return true;
	}else {
		return false;
	}
}

//ÇÑ±ÛÃ¼Å©////////////////////////////////////////////////////
function chkHan(pValue) {
	for(i=0;i<pValue.length;i++) {
		var a=pValue.charCodeAt(i);
		if (a > 128) {
			return true;
		}else{
			return false;
		}
	}
}

//¼ýÀÚÃ¼Å©////////////////////////////////////////////////////
function chkNum(x){ 
	var x;
	var anum=/(^\d+$)|(^\d+\.\d+$)/ 
	if (anum.test(x)) 
		return true;
	else{ 
		return false;
	} 
}

//ÁÖ¹Îµî·Ï¹øÈ£Ã¼Å©//////////////////////////////////////////
function chkJumin(p_jumin1,p_jumin2) { 
	errfound = false; 
	var p_jumin1;
	var p_jumin2;
	var checkImg=''; 

	var i3=0 
	for (var i=0;i<p_jumin1.length;i++) { 
		var ch1 = p_jumin1.substring(i,i+1); 
		if (ch1<'0' || ch1>'9') { i3=i3+1 } 
	} 
	if ((p_jumin1 == '') || ( i3 != 0 )) { 
		return false;
	} 

	var i4=0 
	for (var i=0;i<p_jumin2.length;i++) { 
		var ch1 = p_jumin2.substring(i,i+1); 
		if (ch1<'0' || ch1>'9') { i4=i4+1 } 
	}
	if ((p_jumin2 == '') || ( i4 != 0 )) {
		return false;
	} 

	// Ãâ»ý³âµµ °Ë»ç
	if(p_jumin1.substring(0,1) < 0) { 
		return false;
	}
	
	// ³²³à ¼ºº° È®ÀÎ
	if(p_jumin2.substring(0,1) > 4) { 
		return false;
	} 

	if((p_jumin1.length > 7) || (p_jumin2.length > 8)) { 
		return false;
	} 

	if ((p_jumin1 == '72') || ( p_jumin2 == '18')) { 
		return false;
	} 
     
	var f1=p_jumin1.substring(0,1) 
	var f2=p_jumin1.substring(1,2) 
	var f3=p_jumin1.substring(2,3) 
	var f4=p_jumin1.substring(3,4) 
	var f5=p_jumin1.substring(4,5) 
	var f6=p_jumin1.substring(5,6) 
	var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7 
	var l1=p_jumin2.substring(0,1) 
	var l2=p_jumin2.substring(1,2) 
	var l3=p_jumin2.substring(2,3) 
	var l4=p_jumin2.substring(3,4) 
	var l5=p_jumin2.substring(4,5) 
	var l6=p_jumin2.substring(5,6) 
	var l7=p_jumin2.substring(6,7) 
	hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5 
	hap=hap%11 
	hap=11-hap 
	hap=hap%10 
	if (hap != l7) { 
		return false;
	}     
       
	var i9=0 

	if (!errfound) 
		return true;
}
 
//ÀÌ¸ÞÀÏÃ¼Å©/////////////////////////////////////////
function chkMail(pValue) {
	if(chkSpace(pValue)){
		//alert ("E¸ÞÀÏ ÁÖ¼Ò¿¡¼­ °ø¶õÀ» »©ÁÖ½Ê½Ã¿À");
		return false;
	}else if (pValue.indexOf("/")!=-1 || pValue.indexOf(";") !=-1 || chkHan(pValue)) {
		//alert("E-MailÇü½ÄÀÌ Àß¸øµÇ¾ú½À´Ï´Ù.\n  ´Ù½ÃÇÑ¹ø È®ÀÎ¹Ù¶ø´Ï´Ù.");
		return false;
	}else if ((pValue.length != 0) && (pValue.search(/(\S+)@(\S+)\.(\S+)/) == -1)) {
		//alert("E-MailÇü½ÄÀÌ Àß¸øµÇ¾ú½À´Ï´Ù..\n  ´Ù½ÃÇÑ¹ø È®ÀÎ¹Ù¶ø´Ï´Ù.");
		return false;
	}else{ 
		return true;
	}
}

//trim//////////////////////////////////////////////////
function trim(ment){  
	var start;
	var end;
	for(i=0;i<ment.length;i++){
		mentcnt = ment.substring(i,i+1);
		if (mentcnt  !=  ' '){
			start=i;
			break;
		}
	}

	for(i=ment.length - 1;i  >  -1; i--){
		mentcnt = ment.substring(i,i+1);
		if (mentcnt != ' ') {
			end=i;
			break
		}
	}
	
	str = ment.substring(start,end+1);
	if (str == ' ')
	{
		str = '';
	}
	return str;
}

// ÄÞ¸¶ ³Ö±â //////////////////////////////////////////
function setComma(values) {
	var rtn = "";
	var val = "";
	var j = 0;
	x = values.length;
  
	for(i=x; i>0; i--) {
		if(values.substring(i,i-1) != ",") {
			val = values.substring(i,i-1)+val;
		}
	}
	
	x = val.length;
	for(i=x; i>0; i--) {
		if(j%3 == 0 && j!=0) {
			rtn = val.substring(i,i-1)+","+rtn;  
		}else {
			rtn = val.substring(i,i-1)+rtn;
		}
		j++;
	}
	return rtn;
}

// ÄÞ¸¶ »èÁ¦ ////////////////////////////////////////
function srtipComma(frm){
	var val='';
	x = frm.length;
	for(i=x; i>0; i--) {
		if(frm.substring(i,i-1) != ",") {
			val = frm.substring(i,i-1)+val;
		}
	}
	return val;
}

//  ¹®¼­³» id = imgID ÀÎ ÀÌ¹ÌÁö Å©±â Á¶Àý ///////////////////////
function reSetImgSize(mxw, mxh, imgID) {
	mxw = mxw?mxw:400;
	mxh = mxh?mxh:300;
	var maxheight = mxh;
	var maxwidth = mxw;
	var img_properties = new Array();
  
	if(wb == 'ns6') {
		var imgs = document.getElementById[imgID];
	} else if (wb == 'ie') {
		var imgs = document.all.imgID;
	} else if (wb == 'ns4') {
		var imgs = document.layers[imgID]; 
	} else {
		return false; 
	}
	
	alert(typeof(imgs));
	if (imgs.length == 0)  {
		return false;
	}

	for(i=0; i<imgs.length; i++) {
		if(maxwidth > 0 && maxheight >0) {
			img_properties[0] = imgs[i].width;
			img_properties[1] = imgs[i].height;

			if(img_properties[0]>maxwidth||img_properties[1]>maxheight) {
				height = (maxwidth*img_properties[1])/img_properties[0];
				width = maxwidth;
				
				if(height > maxheight) {
					width = (maxheight*img_properties[0])/img_properties[1];
					height = maxheight;
				}
			}else {
				height = img_properties[1];
				width = img_properties[0];
			}
		}else {
			height = img_properties[1];
			width = img_properties[0];
		}

		imgs[i].width = width;
		imgs[i].height = height;
		imgs[i].style.cursor = "hand";
	}
}


//##########################################################################################
//»õÃ¢¿­±â/////////////////////////////////////////////
function openWindow(pUrl, pTarget, pWidth, pHeight, pScroll, pToolbar, pResizable, pStatus) {
	var pLeftPos= (screen.width - pWidth) / 2;
	var pTopPos = (screen.height - pHeight) / 2;
	pToolbar	= pToolbar?pToolbar:"no";
	pResizable	= pResizable?pResizable:"no";
	pStatus		= pStatus?pStatus:"no";
	pScroll		= pScroll?pScroll:"yes";
	window.open(pUrl, pTarget, "top="+pTopPos+",left="+pLeftPos+',width='+pWidth+',height='+pHeight+',toolbar='+ pToolbar+',resizable='+pResizable+',scrollbars='+pScroll+',status='+pStatus);
}

function openWindow2(pURL, pName, pWidth, pHeight, pResizable, pScrollbars) {
	var winWidth 	= pWidth; // »õÃ¢ ³Êºñ
	var winHeight 	= pHeight; // »õÃ¢ ³ôÀÌ
	var winURL 		= pURL; // »õÃ¢À¸·Î ¶ç¿ï URL
	var winName 	= pName; // »õÃ¢ÀÇ Ã¢ÀÌ¸§
	var winPosLeft 	= (screen.width - winWidth) / 2; // »õÃ¢ Y ÁÂÇ¥
	var winPosTop 	= (screen.height - winHeight) / 2; // »õÃ¢ X ÁÂÇ¥
	var winMenubar 	= 0;	//¸Þ´º¹Ù¸¦ º¸¿©ÁÖ°Å³ª ¼û±é´Ï´Ù
	var winScrollbars = pScrollbars;	//½ºÅ©·Ñ¹Ù¸¦ º¸¿©ÁÖ°Å³ª ¼û±é´Ï´Ù
	var winStatus 	= 1;	//»óÅÂÇ¥½ÃÁÙÀ» º¸¿©ÁÖ°Å³ª ¼û±é´Ï´Ù
	var winResizable = pResizable;	//ÆË¾÷À©µµ¿ìÀÇ Å©±â¸¦ »ç¿ëÀÚ°¡ ÀÓÀÇ·Î ¼öÁ¤ÇÒ ¼ö ÀÖ´ÂÁö ¿©ºÎ¸¦ ÁöÁ¤ÇÕ´Ï´Ù
	var winLocation = 0;	//ÁÖ¼ÒÇ¥½ÃÁÙÀ» º¸¿©ÁÖ°Å³ª ¼û±é´Ï´Ù
	var winToolbar 	= 0;	//µµ±¸¸·´ë¸¦ º¸¿©ÁÖ°Å³ª ¼û±é´Ï´Ù
	var winDirectories = 0;	//µð·ºÅä¸®¹Ù¸¦ º¸¿©ÁÖ°Å³ª ¼û±é´Ï´Ù
	var winOpt = "width="+winWidth+",height="+winHeight+",top="+winPosTop+",left="+winPosLeft;
	window.open(winURL, winName, winOpt + "");
}

//--------------------------------------------------------------------------------
//	º¸ÀÌ´Â Ã¢¿¡¼­ ÇÁ·Î¼¼½º Ã³¸®
//-------------------------------------------------------------------------------//
function openFormWindow(pUrl, pTarget, pWidth, pHeight, pResizable, pScroll, pToolbar, pStatus){
 	var pLeftPos	= (screen.width - pWidth) / 2;
	var pTopPos		= (screen.height - pHeight) / 2;
	pToolbar	= pToolbar?pToolbar:"no";
	pResizable	= pResizable?pResizable:"no";
	pStatus		= pStatus?pStatus:"yes";
	pScroll		= pScroll?pScroll:"yes";
	var pWinStyle = "width="+pWidth+",height="+pHeight+",location=no,directories=no,menubar=no,toolbar="+pToolbar+",status="+pStatus+",scrollbars="+pScroll+",resizable="+pResizable+",top="+pTopPos+",left="+pLeftPos;
	var showWindow = window.open(pUrl, pTarget, pWinStyle);
	try {
		showWindow.focus();
	} catch (e) {
	}
}

function openFormWindow2(pUrl, pTarget, pLeft, pTop, pWidth, pHeight, pResizable, pScroll, pToolbar, pStatus, pCenter){
	pLeftPos = pLeft
	pTopPos = pTop
	if(pCenter) {
		var pLeftPos	= (screen.width - pWidth) / 2;
		var pTopPos		= (screen.height - pHeight) / 2;
	}
	pToolbar	= pToolbar?pToolbar:"no";
	pResizable	= pResizable?pResizable:"no";
	pStatus		= pStatus?pStatus:"yes";
	pScroll		= pScroll?pScroll:"yes";
	var pWinStyle = "width="+pWidth+",height="+pHeight+",location=no,directories=no,menubar=no,toolbar="+pToolbar+",status="+pStatus+",scrollbars="+pScroll+",resizable="+pResizable+",top="+pTopPos+",left="+pLeftPos;
	var showWindow = window.open(pUrl, pTarget, pWinStyle);
	try {
		showWindow.focus();
	} catch (e) {
	}
}

//----------------------------------------------------------------------------
// Æû°ª(Post°ª)À» ÆË¾÷Ã¢¿¡ Àü¼Û
//---------------------------------------------------------------------------//
function sendFormWindow(oForm, pUrl, pTarget, pWidth, pHeight, pResizable, pScroll, pToolbar, pStatus)
{
	oForm.action = pUrl;
	oForm.target = "openFormWindow";
	openFormWindow(pUrl, pTarget, pWidth, pHeight, pResizable, pScroll, pToolbar, pStatus);
	oForm.submit();
}

//##########################################################################################


//##########################################################################################
//	ÇÔ¼ö¸í : checkFromElement
//	ÀÎ  ÀÚ : Æû°´Ã¼(f, pEscElements)
//	³»  ¿ë : ¸ðµçÆûÀ» Ã¼Å©ÇØ ÁÝ´Ï´Ù. (Á¦¿ÜµÉ ±¸¼º¿ä¼Ò : "name1,name2,name3,...")
//	¹ÝÈ¯°ª : 
//	ÀÛ¼ºÀÚ : ±Ç¿¬Çö
//	ÀÛ¼ºÀÏ : 2003³â 10¿ù 22ÀÏ ¼ö¿äÀÏ
function checkFromElement(f, pEscElements)
{
	//-- Ã¼Å©ÇÏÁö ¾ÊÀ» ³à¼®µéÀÇ ÀÌ¸§À» ³Ö´Â´Ù 
	//-- "ÀÌ¸§1,ÀÌ¸§2,ÀÌ¸§3,..." ÇüÅÂ¸¦ ÃëÇÑ´Ù.
	var pFilter = pEscElements;

	for (var i=0; i < f.elements.length; i++)
	{
		//-- Ã¼Å©ÇÏÁö ¾ÊÀ» ³à¼®ÀÎ°¡¸¦ ¾Ë¾Æº»´Ù.
		if ( pFilter.indexOf(f.elements[i].name) >= 0)
			continue;

		var k=0;
		if (f.elements[i].type == "radio" || f.elements[i].type == "checkbox") 
		{
			for(var j=0; j < eval("f."+ f.elements[i].name +".length"); j++)
			{
				if (eval("f."+ f.elements[i].name +"[j].checked"))
					k++;
			}
			if (k < 1)
			{	
				alert("ÇÊ¼öÀÔ·Â»çÇ×ÀÔ´Ï´Ù.");
				f.elements[i].focus();
				return false;
			}
		} else if (f.elements[i].type == "image" || f.elements[i].type == "button" || f.elements[i].type == "submit" || f.elements[i].type == "reset") { 
		} else {
			if (!f.elements[i].value)
			{
				alert("ÇÊ¼öÀÔ·Â»çÇ×ÀÔ´Ï´Ù.");
				f.elements[i].focus();
				return false;
			}
		}
	}

	return true;
}
//##########################################################################################

//##########################################################################################
// ÄíÅ°°ª °¡Á®¿À±â
function getCookie( name ) {
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length ) {
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie ) {
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
				endOfCookie = document.cookie.length;
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
	}
	return "";
}
/*
function getCookie(Name) {
	var search = Name + "="
	var returnvalue = "";

	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)

		if (offset != -1) { // ÄíÅ°°¡ ÀÖ´Ù¸é
			offset += search.length
			end = document.cookie.indexOf("&", offset);

			if (end == -1)
				end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}

	return returnvalue;
}
*/
//##########################################################################################

//##########################################################################################
// ¿À´Ã³¯Â¥ ¾ò±â
function getToday(sSpliter){
	var sToday = "", sDate, sMonth = "", sDay = "";
	sDate = new Date();						//Date °³Ã¼¸¦ ¸¸µì´Ï´Ù.
	sMonth = sDate.getMonth() + 1;
	sDay = sDate.getDate();
	if(parseInt(sMonth) < 10) {
		sMonth = "0"+sMonth;
	}
	if(parseInt(sDay) < 10)
		sDay = "0"+sDay;
		
	sToday += sDate.getYear() + sSpliter;	//¿¬µµ¸¦ °¡Á®¿É´Ï´Ù.
	sToday += sMonth + sSpliter;			//¿ùÀ» °¡Á®¿É´Ï´Ù.
	sToday += sDay;							//ÀÏÀ» °¡Á®¿É´Ï´Ù.
	return(sToday);
}
//##########################################################################################

// --------- --------- --------- --------- ---------
function stripTag(value) //ÅÂ±×¹þ±â±â
{
	var sTag = value.replace(/[<][^>]*[>]/gi,"")
	sTag = sTag.replace(/&nbsp;/gi,"")
	return sTag
}
// --------- --------- --------- --------- ---------


// --------- --------- --------- --------- ---------
function objectViewer(oObject)
{
	document.write(document.getElementById(oObject).value);
}

function swfObjectViewer(src, width, height){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    object += '<embed src="'+src+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
    object += '<\/object>';
    document.write(object);
}
// --------- --------- --------- --------- ---------

// --------- --------- --------- --------- ---------
function getFileExt(fileName) {
	if (!fileName)
		return;
	
	fileExt = fileName.substr(fileName.lastIndexOf(".") + 1);
	fileExt = fileExt.toLowerCase();
	alert(fileExt);
	return fileExt;
}
// --------- --------- --------- --------- ---------

function addFavorite(sURL, sTitle) {
	try {
		window.external.AddFavorite(sURL, sTitle);
	} catch (e) {
		alert("¿À·ù³»¿ë : " + e + "\n\nÁñ°ÜÃ£±â¿¡ µî·ÏÁß ¿À·ù¹ß»ý!");
	} finally {
	}
}

function viewFavorite(iPosition, iLeft, iTop, sImg) {
	if(iPosition == 0) {
		sPosition = "relative";
	} else {
		sPosition = "absolute";
	}
	if(iLeft.length == 0) 
		iLeft = "970px";
	if(iTop.length == 0)
		iTop = "10px";
	
	var imgPath = "images/main/favorite1.gif";
	if(typeof(sImg) != "undefined") {
		if(sImg.length > 0) { 
			imgPath = sImg;
		}
	}
	
	var sFavorite = 		"<div id='lyFavorite' style='position:"+ sPosition +";left:"+ iLeft +";top:"+ iTop +";'>";
	sFavorite = sFavorite + "<img src='"+ imgPath +"' style='cursor:pointer' onclick='javascript:addFavorite(window.location.href, document.title)' alt='Áñ°ÜÃ£±â¿¡ Ãß°¡ÇÏ±â'>";
	sFavorite = sFavorite + "</div>";
	
	document.write(sFavorite);
}

function fnFrameSize(oFrame, iGap) {
	oFrame.style.height = eval(oFrame.name +".document.body.scrollHeight") + iGap;
}

// 2011.02.28, ±èÀÎÈ£, SNS°ü·Ã Ã³¸®
function sendTwitter(title) {
    var url = '';
    url = window.location;
    title = title.replace('&', '');

    var postBody = '';
    postBody = title;
    postBody += ' ';
    postBody += url;
    postBody = encodeURIComponent(postBody);

    var sURL = '';
    sURL = 'http://twitter.com/home';
    sURL += '?status=';
    sURL += postBody;

    window.open(sURL);

    return false;
}

function sendMe2day(title) {
    var url = '';
    url = window.location;

    var newPostBody = '';
    newPostBody = '"';
    newPostBody += title;
    newPostBody += '":';
    newPostBody += url;
    newPostBody += '&sns=me2day';
    newPostBody = encodeURIComponent(newPostBody);

    var newPostTags = '';
    newPostTags = '´ë±¸±¤¿ª½Ã';
    newPostTags = encodeURIComponent(newPostTags);

    var sURL = '';
    sURL = 'http://me2day.net/posts/new';
    sURL += '?new_post[body]=';
    sURL += newPostBody;
    sURL += '&new_post[tags]=';
    sURL += newPostTags;

    window.open(sURL);

    return false;
}

function sendFacebook(title) {
    var url = '';
    url = window.location;

    var pTitle = '';
    pTitle = title;
    pTitle = encodeURIComponent(pTitle);

    var pUrl = '';
    pUrl = url;
    pUrl += '&sns=facebook';
    pUrl = encodeURIComponent(pUrl);

    var sURL = '';
    sURL = 'http://www.facebook.com/sharer.php';
    sURL += '?s=100';
    sURL += '&p[title]=';
    sURL += pTitle;
    sURL += '&p[url]=';
    sURL += pUrl;

    window.open(sURL);

    return false;
}

function sendYozm(title) {
    var url = '';
    url = window.location + '';
    
    url = url.replace('&section_id=', '&amp;section_id=');

    var m = '';
    m = title;
    m += ' ';
    m += url;
    m += '&sns=yozm';
    m = encodeURIComponent(m);

    var sURL = '';
    sURL = 'http://yozm.daum.net/home';
    sURL += '?m=';
    sURL += m;

    window.open(sURL);

    return false;
}

function sendClog(title) {
    var url = window.location + '';
    url += "&sns=clog";

    var sURL = '';
    sURL += 'http://csp.cyworld.com/bi/bi_recommend_pop.php';
    sURL += '?url=' + encodeURIComponent(url);
    sURL += '&writer=';
    sURL += '&title=' + encodeURIComponent(title);    
    sURL += '&summary=';
	
    window.open(sURL,'recom_icon_pop', 'width=400,height=364,scrollbars=no,resizable=no');

    return false;
}
