function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// »óÇ° ±¸¸Å ¸µÅ© ½ÃÀÛ	
function ProdBuyGo(gidx)
{
	var oForm = document.createElement("<form name=fomAction></form>");
	oForm.method = "post";
	oForm.action = "/order/order_01.asp";
	var oInputHidden1 = document.createElement("<input type=hidden name=gidx>");		
	oInputHidden1.value = gidx;
	oForm.appendChild(oInputHidden1);
	document.body.appendChild(oForm);
	oForm.submit();
}
// »óÇ° ±¸¸Å ¸µÅ© ³¡

// ³¯Â¥º° »óÇ° ¸µÅ© ½ÃÀÛ	
function ProdGo(url,yy,mm,dd,gidx,tab)
{
	var oForm = document.createElement("<form name=fomAction></form>");
	oForm.method = "post";
	oForm.action = url;
	if (url == "/hit.asp") {
		var oInputHidden1 = document.createElement("<input type=hidden name=f_gidx>");		
		var oInputHidden2 = document.createElement("<input type=hidden name=ProdGoAct>");
		var oInputHidden3 = document.createElement("<input type=hidden name=f_tab>");
		oInputHidden1.value = gidx;
		oInputHidden2.value = "OK";
		oInputHidden3.value = tab;
		oForm.appendChild(oInputHidden1);
		oForm.appendChild(oInputHidden2);
		oForm.appendChild(oInputHidden3);
	} else {

		var oInputHidden1 = document.createElement("<input type=hidden name=yy>");
		var oInputHidden2 = document.createElement("<input type=hidden name=mm>");
	
		if (url == "/hit_gate.asp") {
			var oInputHidden3 = document.createElement("<input type=hidden name=SEL>");
		} else {
			var oInputHidden3 = document.createElement("<input type=hidden name=dd>");
		}
		var oInputHidden4 = document.createElement("<input type=hidden name=ProdGoAct>");
		var oInputHidden5 = document.createElement("<input type=hidden name=f_tab>");
		
		oInputHidden1.value = yy;
		oInputHidden2.value = mm;
		oInputHidden3.value = dd;
		oInputHidden4.value = "OK";
		oInputHidden5.value = tab;
		oForm.appendChild(oInputHidden1);
		oForm.appendChild(oInputHidden2);
		oForm.appendChild(oInputHidden3);
		oForm.appendChild(oInputHidden4);
		oForm.appendChild(oInputHidden5);
	
	}	

	document.body.appendChild(oForm);
	oForm.submit();
}
// ³¯Â¥º° »óÇ° ¸µÅ© ³¡


// ¸ÞÀÎÅÇ¸Þ´º
//ÇöÀçÆÇ¸Å»óÇ°
function MainTabMenu(page,gidx)
{
	for (i=1;i<=3;i++) {
		document.getElementById("mtm"+i).src = "/image/main/tab0"+i+".gif";
			document.getElementById("MainTabt"+i).className = "";
	}
	switch(page){
		case 'detail' : 
			document.getElementById("mtm1").src='/image/main/tab01o.gif';
			document.getElementById("MainTabt1").className = "on";
			iframeBody.location.href='/main/story.asp?move=yes&ProdGidx='+gidx;
			document.all['clip'].style.display = "inline";
			break;
		case 'report' : 
			document.getElementById("mtm2").src='/image/main/tab02o.gif'; 
			document.getElementById("MainTabt2").className = "on";
			iframeBody.location.href='/main/report.asp?move=yes&ProdGidx='+gidx;
			document.all['clip'].style.display = "none";
			break;
		case 'talk' : 
			document.getElementById("mtm3").src='/image/main/tab03o.gif'; 
			document.getElementById("MainTabt3").className = "on";
			iframeBody.location.href='/main/talk.asp?move=yes&ProdGidx='+gidx;
			document.all['clip'].style.display = "none";
//self.location.hash='MainTab';
			break;
	}		
}

//Áö³­»óÇ°
function MainTabMenuAfter(page,gidx)
{
	for (i=1;i<=4;i++) {
		document.getElementById("mtm"+i).src = "/image/main/atab0"+i+".gif";
			document.getElementById("MainTabt"+i).className = "";
	}
	switch(page){
		case 'detail' : 
			document.getElementById("mtm1").src='/image/main/atab01o.gif';
			document.getElementById("MainTabt1").className = "on";
			iframeBody.location.href='/main/story.asp?move=yes&ProdGidx='+gidx;
			document.all['clip'].style.display = "inline";
			break;
		case 'report' : 
			document.getElementById("mtm2").src='/image/main/atab02o.gif'; 
			document.getElementById("MainTabt2").className = "on";
			iframeBody.location.href='/main/report.asp?move=yes&ProdGidx='+gidx;
			document.all['clip'].style.display = "none";
			break;
		case 'talk' : 
			document.getElementById("mtm3").src='/image/main/atab03o.gif'; 
			document.getElementById("MainTabt3").className = "on";
			iframeBody.location.href='/main/talk.asp?move=yes&ProdGidx='+gidx;
			document.all['clip'].style.display = "none";
			break;
		case 'after' : 
			document.getElementById("mtm4").src='/image/main/atab04o.gif'; 
			document.getElementById("MainTabt4").className = "on";
			iframeBody.location.href='/main/after.asp?move=yes&ProdGidx='+gidx;
			document.all['clip'].style.display = "none";
			break;
	}		
}
/// ¸ÞÀÎÅÇ¸Þ´º



//ÃÖÀú°¡ ½º¼¦º¸±â
function MainLowPriceInfo(img, act) {
	f=eval("document.all['LowPriceLayer']");
	f2=eval("document.all['LowPriceLayer_V']");
	
	if (act == "open") {
		data_v = getHttprequest("/include/scshot.asp?img="+img);
		f2.innerHTML=data_v;
		f.style.width = document.body.scrollWidth;
		f.style.height = document.body.scrollHeight;
		f.style.display = 'block';
		f2.style.display = 'block';	
	} else {
		f2.innerHTML="";
		f.style.display = 'none';
		f2.style.display = 'none';
	}

}   
///ÃÖÀú°¡ ½º¼¦º¸±â



// ÇÑ¸¶µðÅÇ¸Þ´º
function MainTalk(page, obj)
{
	for (i=1;i<=2;i++) {
		document.getElementById("tkm"+i).src = "/image/main/tk_m"+i+".gif";
	}
	document.getElementById("Talk_MD").style.display = 'none';
	document.getElementById("Talk_SALER").style.display = 'none';
	
	switch(page){
		case 'Talk_MD' : 
			obj.src='/image/main/tk_m1o.gif'; 
			document.getElementById(page).style.display = 'block';
		break;
		case 'Talk_SALER' : 
			obj.src='/image/main/tk_m2o.gif'; 
			document.getElementById(page).style.display = 'block';
		break;
	}		
}
/// ÇÑ¸¶µðÅÇ¸Þ´º
