String.prototype.replaceAll = function (searchStr , replaceStr) {
	var temp = this;
	while(temp.indexOf(searchStr) != -1) {
		temp = temp.replace(searchStr , replaceStr);
	}
	return temp;
}

NumberCheck = function(){
    if (!((event.keyCode>=48 && event.keyCode<=57) || event.keyCode == 8 ||  event.keyCode == 37 ||event.keyCode == 39 || event.keyCode == 46)) event.returnValue=false;
}

social_jump = function(fsocial) {
	if(fsocial.length >= 6) {
		document.getElementById("lsocial").focus();
	}
}

address_search = function(){
    window.open('/member/addressSearch.do',"_blank","width=348,height=234");
}

address_ok = function()
{
        var okaddress = document.zipcode.ADDRESS.value;
        var len = okaddress.length;
        var zip1 = okaddress.substr(0,3);
        var zip2 = okaddress.substr(4,3);
        opener.document.getElementById("address1").value = okaddress.substring(8,len);
        opener.document.getElementById("zipcode1").value = zip1;
        opener.document.getElementById("zipcode2").value = zip2;
        opener.document.getElementById("address2").focus();
		self.close();
}

goPage = function(pg) {
	var f = document.getElementById("listForm");
	f.elements['tool.pg'].value = pg;
	f.submit();
}	

idsearch = function() {
	open("/member/idSearch.do","idsearch","width=400 , height=270");
}	


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function setClipBoard(x)
{
 window.clipboardData.setData('Text', x);
 alert('\n¼Ò½º°¡ º¹»çµÇ¾ú½À´Ï´Ù.\n\nCtrl + V·Î ºÙ¿©³Ö±â ÇÏ¼¼¿ä.     \n');
}

<!-- µå·¹±×·¹ÀÌ¾î ½ÃÀÛ

var ie=document.all;

var nn6=document.getElementById&&!document.all;

var isdrag=false;

var x,y;

var dobj;


function movemouse(e)

{

if (isdrag)

{

dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x;

dobj.style.top = nn6 ? ty + e.clientY - y : ty + event.clientY - y;

return false;

}

}


function selectmouse(e)

{

var fobj = nn6 ? e.target : event.srcElement;

var topelement = nn6 ? "HTML" : "BODY";

while (fobj.tagName != topelement && fobj.className != "dragme")

{

fobj = nn6 ? fobj.parentNode : fobj.parentElement;

}

if (fobj.className=="dragme")

{

isdrag = true;

dobj = fobj;

tx = parseInt(dobj.style.left+0);

ty = parseInt(dobj.style.top+0);

x = nn6 ? e.clientX : event.clientX;

y = nn6 ? e.clientY : event.clientY;

document.onmousemove=movemouse;

return false;

}

}

document.onmousedown=selectmouse;

document.onmouseup=new Function("isdrag=false");

// µå·¹±×·¹ÀÌ¾î ³¡ -->
