Advertisement
Guest User

Untitled

a guest
Feb 27th, 2011
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. // if (document.dropTop.pubpriv.value == "public" && document.dropTop.slots.value == "10")
  2. // {
  3. // window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=457";
  4. // }
  5.  
  6.  
  7. function ProcessOrder(loc,pid,cfopID)
  8. {
  9. var values = document.dropTop.slots.value;
  10. var valuesArray = values.split("|");
  11. var slots = valuesArray[0];
  12. var cfopValue = valuesArray[1];
  13. alert("Slots is: " + slots " cfopValue is:" + cfopValue);
  14.  
  15. switch (slots)
  16. {
  17. case 10:
  18. {
  19. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=" + pid + "&configoption[" + cfopID + "]=" + cfopValue;
  20. }
  21. case 12:
  22. {
  23. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=" + pid + "&configoption[" + cfopID + "]=" + cfopValue;
  24. }
  25. case 14:
  26. {
  27. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=459";
  28. }
  29. case 16:
  30. {
  31. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=460";
  32. }
  33. case 18:
  34. {
  35. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=461";
  36. }
  37. case 20:
  38. {
  39. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=462";
  40. }
  41. case 22:
  42. {
  43. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=463";
  44. }
  45. case 24:
  46. {
  47. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=464";
  48. }
  49. case 26:
  50. {
  51. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=465";
  52. }
  53. case 28:
  54. {
  55. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=466";
  56. }
  57. case 30:
  58. {
  59. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=467";
  60. }
  61. case 32:
  62. {
  63. window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&pid=167&configoption[44]=468";
  64. }
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement