<!--

function chWT() { // Áö¿ªº° ³¯¾¾Á¤º¸ refresh
	document.frames['weather'].location.href = './weather/weather_iframe.htm?reg='+document.form2.regNM.value;
}

function openNotice(v,w){ //°øÁö»çÇ×Ã¢ Open
	if(v=='') var imgwin = window.open("./notice/list.htm",'WIN','scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width=650,height=600');
	else var imgwin = window.open(v,'WIN','scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width='+w+',height=600');
	imgwin.focus(); 
}

/*
function openCard(a) { //È¸»çÁ¤º¸Ã¢ Open
	  var width=350,height=180;
	  var left = (screen.width - width) / 2;
	  var top = (screen.height - height) / 2;

	var newCor = window.open('bzCard.htm?no='+a,'newCor',"location=no,directories=no,resizable=no,status=no,toolbar=no,menubar=no,width="+width+",height="+height+",top="+top+",left="+left+",scrollbars=no");
	newCor.focus();
} */


function openCard(a) {

	var width=362,height=235;
	var windowprops='width=350,height=180,location=no,directories=no,scrollbars=no,status=no,resizable=no,toolbar=no';
	// ¡è ÃÊ±â¿¡ Á¶±×¸¶ÇÑ À©µµ¿ì¸¦ ¿­¶§ÀÇ ¿É¼ÇÀ» ÁöÁ¤ÇÕ´Ï´Ù
	var heightspeed = 2;
	// ¡è ¼öÁ÷ ½ºÅ©·Ñ ¼Óµµ¸¦ ÁöÁ¤ÇÕ´Ï´Ù
	var widthspeed = 7;
	// ¡è ¼öÆò ½ºÅ©·Ñ ¼Óµµ¸¦ ÁöÁ¤ÇÕ´Ï´Ù
	var leftdist = (screen.width - width) / 2;
	// ¡è À©µµ¿ìÀÇ ¿ÞÂÊ ³¡ À§Ä¡
	var topdist = (screen.height - height) / 2;
	// ¡è À©µµ¿ìÀÇ À§ÂÊ ³¡ À§Ä¡

	if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {

		var sizer = window.open('bzCard.htm?no='+a,"","left=" + leftdist + ",top=" + topdist +","+ windowprops);
		for (sizeheight = 0; sizeheight < height; sizeheight += heightspeed) sizer.resizeTo("1", sizeheight);
		for (sizewidth = 0; sizewidth < width; sizewidth += widthspeed) sizer.resizeTo(sizewidth, sizeheight);

	}
	else window.open('bzCard.htm?no='+a,'mywindow');

}

var marked_row = new Array;

function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, theMarkColor) {
	var theCells = null;

// 1. Pointer and mark feature are disabled or the browser can't get the
//    row -> exits
	if ((thePointerColor == '' && theMarkColor == '') || typeof(theRow.style) == 'undefined') {
		return false;
	}

// 2. Gets the current row and exits if the browser can't get it
	if (typeof(document.getElementsByTagName) != 'undefined') {
		theCells = theRow.getElementsByTagName('td');
	} else if (typeof(theRow.cells) != 'undefined') {
		theCells = theRow.cells;
	} else {
		return false;
	}

// 3. Gets the current color...
	var rowCellsCnt	= theCells.length;
	var domDetect	= null;
	var currentColor	= null;
	var newColor		= null;
// 3.1 ... with DOM compatible browsers except Opera that does not return
//         valid values with "getAttribute"
	if (typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {
		currentColor	= theCells[0].getAttribute('bgcolor');
		domDetect		= true;
	} else {
// 3.2 ... with other browsers
		currentColor	= theCells[0].style.backgroundColor;
		domDetect		= false;
	} // end 3

// 4. Defines the new color
// 4.1 Current color is the default one
	if (currentColor == '' || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
		if (theAction == 'over' && thePointerColor != '') {
			newColor = thePointerColor;
		} else if (theAction == 'click' && theMarkColor != '') {
			newColor = theMarkColor;
		}
	} else if (currentColor.toLowerCase() == thePointerColor.toLowerCase() && (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) {
// 4.1.2 Current color is the pointer one
		if (theAction == 'out') {
			newColor = theDefaultColor;
		} else if (theAction == 'click' && theMarkColor != '') {
			newColor = theMarkColor;
			marked_row[theRowNum] = true;
		}
	} else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
// 4.1.3 Current color is the marker one
		if (theAction == 'click') {
			newColor = (thePointerColor != '') ? thePointerColor : theDefaultColor;
			marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum]) ? true : null;
		}
	} // end 4

// 5. Sets the new color...
	if (newColor) {
		var c = null;
// 5.1 ... with DOM compatible browsers except Opera
		if (domDetect) {
			for (c = 0; c < rowCellsCnt; c++) {
				theCells[c].setAttribute('bgcolor', newColor, 0);
			} // end for
		} else {
// 5.2 ... with other browsers
		for (c = 0; c < rowCellsCnt; c++) {
			theCells[c].style.backgroundColor = newColor;
		}
	}
	} // end 5

	return true;
} // end of the 'setPointer()' function

//-->