function ChangeImage(obj) {
	var tmp = obj.src;
	obj.src = obj.oversrc;
	obj.oversrc = tmp;
}

function SetSubMenu(id) {
	//document.all['SUBMENU'].style = document.all[id].style;
	document.all['SUBMENU'].innerHTML = document.all[id].innerHTML;
}

function SearchZipCode(id) {
	this.href = "zipcode.php?id=" + id;
	zoomBox(event, this, 400, 150, 200, 100);
}

function CheckUserID(form) {
	this.href = "checkID.php" + form.userid.value;
	zoomBox(event, this, 400, 150, 200, 100);
}

function OpenDialog(nLink, nWin, nWidth, nHeight, xPos, yPos) {
	if(typeof nLink == "object") url = nLink.href;
	else url = nLink;
	var qResult = window.showModalDialog( url, nWin,
          				"dialogwidth:"+nWidth+"px;dialogheight:"+nHeight+"px;toolbar:no;location:no;help:no;directories:no;status:no;menubar:no;scroll:no;resizable:no");
}

function OpenDialog2(nLink, nWin, nWidth, nHeight, xPos, yPos) {
	if(typeof nLink == "object") url = nLink.href;
	else url = nLink;
	var qResult = window.showModelessDialog( url, nWin,
          				"dialogwidth:"+nWidth+"px;dialogheight:"+nHeight+"px;toolbar:no;location:no;help:no;directories:no;status:no;menubar:no;scroll:no;resizable:no");
}

function OpenWindow(nLink, nTarget, nWidth, nHeight, xPos, yPos) {
	if(typeof nLink == "object") url = nLink.href;
	else url = nLink;

	adjX = xPos ? xPos : (window.screen.width/2 - nWidth/2);
	adjY = yPos ? yPos : (window.screen.height/2 - nHeight/2 - 50);
	var qResult = window.open( url, nTarget, "width="+nWidth+", height="+nHeight+",left="+adjX+",top="+adjY+",toolbar=no,status=no,scrollbars=no,resizable=no");
	return qResult;
}

function OpenWindows(nLink, nTarget, nWidth, nHeight, xPos, yPos) {
	if(typeof nLink == "object") url = nLink.href;
	else url = nLink;

	adjX = xPos ? xPos : (window.screen.width/2 - nWidth/2);
	adjY = yPos ? yPos : (window.screen.height/2 - nHeight/2 - 50);
	var qResult = window.open( url, nTarget, "width="+nWidth+", height="+nHeight+",left="+adjX+",top="+adjY+",toolbar=no,status=no,scrollbars=yes,resizable=no");
	return qResult;
}

function ConfirmAction(obj) {
	if(confirm(obj.name + " ÇÏ½Ã°Ú½À´Ï±î?")) {
		location.href = obj.href;
	}
}

function HiddenBox(obj) {
	if(confirm(obj.name + " ÇÏ½Ã°Ú½À´Ï±î?")) {
		window.showModalDialog(obj.href, '_blank', 'dialogwidth:0px;dialogheight:0px;toolbar:no;location:no;help:no;directories:no;status:no;menubar:no;scrollbars=no;resizable:no');
	}
}

function Go(url) {
	location.href = url;
}


function UserInfo(userid){
	OpenDialog('whois_user_info.php?userid='+userid,'',300,280);
}

