function JS_viewObj(objhtml) { 
    document.write(objhtml); 
}

function JS_swCategoryLayer() {
	if (typeof($('categoryTopLayer')) == 'object') {
		try {
			Element.toggle($('categoryTopLayer'));
		}
		catch(e) {
		}
	}
}

function ecatalog(docu, kd, dir){
	if(screen.width < 800){
		alert("È­¸é»çÀÌÁî 800*600 ÀÌ»ó¿¡¼­¸¸ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
		return;
	}

	if(kd == "fixed"){ x = 1024; y = 768; wname = "fixed_ecatalog"; }
	else if(screen.width > 1280 || screen.height > 1024){ x = 1280; y = 1024; wname = "ecatalog"; }
	else{ x = screen.width; y = screen.height; wname = "ecatalog"; }

	x = x - 10;
	y = y - 58;

	property = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,copyhistory=no,";
	property += "width=" + x + ",height=" + y + ",left=" + 0 + ",top=" + 0;
	docu = docu + "/ecatalog.html" ;

	ecawin = window.open(docu, wname, property);
}
function openNewWin(urls){
	//alert(urls.substring(0,urls.lastIndexOf("/")));
	ecatalog(urls.substring(0,urls.lastIndexOf("/")),'fixed','');
}
