function winOpen(url,width,height) {
	var status = "width=" + width + ",height=" + height + ",toolbar=no,status=no,menubar=no, resizable=yes";
	win = window.open(url,'',status);
} 

function winOpen2(url,width,height) {
	var status = "width=" + width + ",height=" + height + ",toolbar=no,status=no,menubar=no, scrollbars=yes, resizable=yes";
	win = window.open(url,'',status);
} 

function winClose() {
	self.close();
}

function winClose2(choice) {
	if(choice=="ok")
		self.close();
	else
		history.back();
}

function idCheckOpen(table) {
	var userid = document.gaipform.userid.value;
	
	var url = "id_check.php?userid=" + userid + "&table=" + table;
	winOpen(url, 300,200);
}

function delConfirm(url) {
	if(confirm('Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
		location.href=url;
	else
		return;
}
function cartdelConfirm(url) {
	if(confirm('¸ðµÎ ºñ¿ì½Ã°Ú½À´Ï±î?'))
		location.href=url;
	else
		return;
}
function resConfirm(url) {
	if(confirm('Á¤¸» º¹¿øÇÏ½Ã°Ú½À´Ï±î?'))
		location.href=url;
	else
		return;
}
function alldelConfirm(url) {
	if(confirm('¿µ±¸ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n º¹¿øµÇÁö ¾Ê½À´Ï´Ù.'))
		location.href=url;
	else
		return;
}


function selectConfirm(msg){
	if(!confirm("¼±ÅÃµÈ " + msg + " ¸ðµÎ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
		return false;

	return true;

}

function selectConfirm2(msg){
	if(!confirm(msg))
		return false;

	return true;

}