// focus
function allblur() {
  for (i = 0; i < document.links.length; i++)
    document.links[i].onfocus = document.links[i].blur;
}

// openwindow
function openwindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}


// scraper
function setVariables() {
	if (document.layers) {
		v=".top=";
		dS="document.";
		sD="";
		y="window.pageYOffset";
	}
	else if (document.all){
		v=".pixelTop=";
		dS="";
		sD=".style";
		y="document.body.scrollTop";
	}
	else if (document.getElementById){
		y="window.pageYOffset";
	}
}
function checkLocation() {
	object="scraper";
	yy=eval(y);
	if (document.getElementById)
	document.getElementById("scraper").style.top=yy
	else
	eval(dS+object+sD+v+yy)
	setTimeout("checkLocation()",10);
}

function goto(form) {
var myindex=form.go.selectedIndex
window.location=(form.go.options[myindex].value);
}

function goto_new(form) {
	var windowprops = ""; // ÆË¾÷Ã¢ÀÇ ¿É¼Ç
	var URL = form.go.options[form.go.selectedIndex].value;
	if (URL != "" && URL != null){
		popup = window.open(URL,'',windowprops);
	}
}


function openPopst(url, name, width, height, top, left){ //Åø¹Ù ½ºÅ©·Ñ ÆË¾÷ ¿­±â
	var opt = "toolbar=yes,resizable=yes,scrollbars=yes,location=yes,resize=no,menubar=no,directories=no,copyhistory=0,width="+width+",height="+height+",top="+top+",left="+left;
	window.open(url, name, opt); 
}


function showFlash (src, width, height) {
	var flash_tag = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"" + width + "\" height=\"" + height + "\">\n"
	              + "<param name=movie value=\"" + src + "\">\n"
	              + "<param name=quality value=high>\n"
	              + "<embed src=\"" + src + "\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height +"\"></embed>\n"
	              + "</object>";

	document.write (flash_tag);
}