// if (document.dropTop.pubpriv.value == "public" && document.dropTop.slots.value == "10") // { // window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=457"; // } function ProcessOrder(loc,pid,cfopID) { var values = document.dropTop.slots.value; var valuesArray = values.split("|"); var slots = valuesArray[0]; var cfopValue = valuesArray[1]; alert("Slots is: " + slots " cfopValue is:" + cfopValue); switch (slots) { case 10: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=" + pid + "&configoption[" + cfopID + "]=" + cfopValue; } case 12: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=" + pid + "&configoption[" + cfopID + "]=" + cfopValue; } case 14: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=459"; } case 16: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=460"; } case 18: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=461"; } case 20: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=462"; } case 22: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=463"; } case 24: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=464"; } case 26: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=465"; } case 28: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=466"; } case 30: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=467"; } case 32: { window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=468"; } } }