function go_directCart(drno) {
	if (drno == "1041057" || drno == "1041058" || drno == "1041059" || drno == "1041060" || drno == "1041062" || drno == "1040822" || drno == "1040823")
	{
		alert("Àå¹è±¸´Ï¿¡ ´ãÀ» ¼ö ¾ø´Â »óÇ°ÀÔ´Ï´Ù.");
		return;
	}

	var form = document.cartForm;	
	form.checkdirect.value = drno;
	form.mode.value = "direct";	
	form.action = "/order/buy_temp.asp";
	form.submit();
}
//rachel
function go_directCart1(drno) {
	if (drno == "1041057" || drno == "1041058" || drno == "1041059" || drno == "1041060" || drno == "1041062" || drno == "1040822" || drno == "1040823")
	{
		alert("Àå¹è±¸´Ï¿¡ ´ãÀ» ¼ö ¾ø´Â »óÇ°ÀÔ´Ï´Ù.");
		return;
	}

	var form = document.cartForm;	
	form.checkdirect.value = drno;
	form.mode.value = "direct";	
	form.action = "/order/buy_temp2.asp";
	form.submit();
}


/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Ricom Productions | http://ricom.co.uk */
function selectForm(frm){
  // Select the div containing all the hidden forms
  var hiddenForms = document.getElementById("allForms");

  // Select every form within the above div and assign it to an array
  theForm = hiddenForms.getElementsByTagName("div");

  // Set the display for each of the above forms to NONE
  for(x=0; x<theForm.length; x++){
    theForm[x].style.display = "none";
  }

  // If the form selected from the list exists, set it's display to BLOCK
  if (theForm[frm-1]){
    theForm[frm-1].style.display = "block";
  }
}
//rachel

function go_Cart() {
	var form = document.cartForm;	
	form.mode.value = "all";
	if (getCheckCount(form) <= 0 ) {
    	alert ("±¸¸ÅÇÒ »óÇ°À» ¼±ÅÃÇØÁÖ¼¼¿ä.");
    	return;
    }

	form.action = "/order/buy_temp.asp";
	form.submit();
}
function getCheckCount(objForm) {
	var nCount = 0;	
	for (var i = 0; i < objForm.elements.length; i++) {
		if (objForm.elements[i].checked == true) {
			nCount++;
		}
    }	
    return nCount;
}


