// °ø¹é Ã¼°Å
String.prototype.trim = function() {
    return this.replace(/(^ *)|( *$)/g, "");
}
String.prototype.ltrim = function() {
    return this.replace(/(^ *)/g, "");
}
String.prototype.rtrim = function() {
    return this.replace(/( *$)/g, "");
}


function POP_CENTER_GET(url)
{
	var sW = (screen.availWidth)/2.5; 
	var sH = (screen.availHeight)/2.5;
	var w = window.open(url,"gET","width=10,height=10,top="+sH+",left="+sH);
	w.focus();
}

function POP_CENTER_POST(obj,url)
{
	var f = obj;
	var sW = (screen.availWidth)/2; 
	var sH = (screen.availHeight)/2;
	var w = window.open("","pOST","width=10,height=10,top="+sH+",left="+sH);
	f.target = "pOST";
	f.method = "post";
	f.action = url;
	f.submit();

	w.focus();
}

function hangul()  // ÇÑ±Û¸¸ ÀÔ·Â
{
if((event.keyCode < 12592) || (event.keyCode > 12687))
event.returnValue = false
} 

function onlyNumber(){   // ¼ýÀÚ¸¸ ÀÔ·Â
  if ( event.keyCode<48 || event.keyCode>57) 
    event.returnValue=false; 
} 

function getFlashObject(flashSrc, objWidth, objHeight, etcParam) {
	var tag = "";
	var baseFlashDir="";
	flashSrc = baseFlashDir + flashSrc;

	if ( etcParam != "" || etcParam != null ) {
		if ( etcParam.substr(0, 1) == "?" )
			flashSrc += etcParam;
		else
			flashSrc += "?" + etcParam;
	}

	tag += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
	tag += "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" ";
	tag += "width=\"" + objWidth + "\" height=\"" + objHeight + "\">";
	tag += "<param name=\"movie\" value=\"" + flashSrc + "\">";
	tag += "<param name=\"menu\" value=\"false\">";
	tag += "<param name=\"quality\" value=\"high\">";
	tag += "<param name=\"wmode\" value=\"transparent\">";
	tag += "<embed src=\"" + flashSrc + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" ";
	tag += "type=\"application/x-shockwave-flash\" width=\"" + objWidth + "\" height=\"" + objHeight + "\" ";
	tag += "wmode=\"transparent\"></embed>";
	tag += "</object>";

	document.write(tag);
}