String.prototype.chknull = function() {
	var thisv = this;
	for (; thisv.indexOf(" ") != -1 ; )	thisv = thisv.replace(" ","");
	if( thisv.length > 0 ) return true;
	else return false;
}

String.prototype.trim = function() {
	var thisv = this;
	return thisv.replace(/^\s+/,'').replace(/\s+$/,'');
}
function Popup_CenterWindow(url, wName, ww, wh) {
	var sw = screen.availWidth;
	var sh = screen.availHeight;

	sw = (sw - ww) / 2;
	sh = (sh - wh) / 2;
	
	return window.open(url, wName, "left=" + sw + ",top=" + sh + ",width=" + ww + ",height=" + wh + ",toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no");
}
function ConfigBoard(vl, cd, ct) {
	Popup_CenterWindow("/_Admin/community/pop.asp?t=" + vl + "&cd=" + cd + "&ct=" + ct, "cf", 350, 100);
}
String.prototype.popupView = function () { 
	var img_view = this;
	var x = x + 20 ; 
	var y = y + 30 ; 
	var htmlz = "<html><head><title>ÀÌ¹ÌÁöÅ©°Ôº¸±â</title><style>body{margin:0;cursor:hand;}</style></head><body scroll=auto onload='width1=document.all.Timage.width;if(width1>1024)width1=1024;height1=document.all.Timage.height;if(height1>768)height1=768;top.window.resizeTo(width1+30,height1+54);' onclick='top.window.close();'><img src='"+img_view+"'  title='Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù.' name='Timage' id='Timage'></body></html>" 
	var imagez = window.open('', "image", "width="+ 100 +", height="+ 100 +", top=0,left=0,scrollbars=auto,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1"); 
	imagez.document.open(); 
	imagez.document.write(htmlz) 
	imagez.document.close(); 
} 