//Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com var message="Function Disabled!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } //document.oncontextmenu=new Function("alert(message);return false") var ns = (navigator.appName.indexOf("Netscape") != -1); var fNewX = 0; function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i 55) || (count != 16)) pass_test = 0; } else if (cc == 2) { temp = cc_num.substring(0,4); if ((temp != 6011) || (count != 16)) pass_test = 0; } else if (cc == 3) { temp = cc_num.substring(0,2); if (((temp != 34) && (temp != 37)) || (count != 15)) pass_test = 0; } else if (cc == 10) { temp = cc_num.substring(0,2); temp1 = cc_num.substring(0,3); if (count != 14) pass_test = 0; else if (((temp != 36) && (temp != 38)) && ((temp1 < 300) || (temp1 > 305))) pass_test = 0; } if (pass_test == 0) error += "Please enter a valid credit card number." + "\n"; } if (use_cvvs > 1) { if (document.billing.cvv2.value == "") error += fillin + "Card Verification Value" + "\n"; } if (document.billing.pay2_1.value == "") error += fillin + "First Name on Card" + "\n"; if (document.billing.pay2_2.value == "") error += fillin + "Last Name on Card" + "\n"; var expYear = new Number(document.billing.pay4_2.value)+2000; if (expYear < year){ error += "Credit Card has expired" + "\n"; }else if (expYear == year){ if (document.billing.pay4_1.value < month){ error += "Credit Card has expired" + "\n"; } } } if (error.length != 0) { alert(error); return (false); } else { done_flag = 1; return (true); } } function CheckItConFee(button, blank_flag) { var d = new Date(); var error = ""; var month = d.getMonth()+1; var year = d.getFullYear(); var fillin ="Please fill in " ; var select_fillin ="Please select a " ; var use_cvvs = 0; var check_states = 1; var cc; var digits = "0123456789"; var select; var loop; //alert(document.billing.First.value + "this is a test "); if (button == "68") return (true); if (done_flag == 1) { return (false); } //alert(document.billing.First.value + "this is a test "); if (document.billing.First.value == "") error += fillin + "First" + "\n"; if (document.billing.Last.value == "") error += fillin + "Last" + "\n"; if (document.billing.Email.value == "") error += fillin + "Email" + "\n"; // validate the email address if (document.billing.Email.value != "") if (document.billing.Email.value.indexOf('@',0) == -1 || document.billing.Email.value.indexOf('.',0) == -1) error += "Please enter a valid email address of the form yourname@host.com." + "\n"; if (document.billing.Address.value == "") error += fillin + "Address 1" + "\n"; if (document.billing.City.value == "") error += fillin + "City" + "\n"; if (document.billing.State.value == "n") error += select_fillin + "State/Province" + "\n"; else if (check_states == 1) if (document.billing.State.value == "") error += fillin + "State/Province" + "\n"; if (document.billing.Zip.value == "" || IsNumeric(document.billing.Zip.value) == false || document.billing.Zip.value.length < 5) error += fillin + " a proper Zip Code" + "\n"; if (document.billing.Phone.value == "") error += fillin + "Phone Number" + "\n"; if ((document.billing.usebilling != undefined) && (document.billing.usebilling.checked == false)) { if (document.billing.ShipFirst.value == "") error += fillin + "Shipping Address First" + "\n"; if (document.billing.ShipLast.value == "") error += fillin + "Shipping Address Last" + "\n"; if (document.billing.ShipAddress.value == "") error += fillin + "Shipping Address 1" + "\n"; if (document.billing.ShipCity.value == "") error += fillin + "Shipping Address City" + "\n"; if (document.billing.ShipState.value == "n") error += select_fillin + "Shipping Address State/Province" + "\n"; else if (check_states == 1) if (document.billing.ShipState.value == "") error += fillin + "Shipping Address State/Province" + "\n"; if (document.billing.ShipZip.value == "") error += fillin + "Shipping Address Zip Code" + "\n"; if (document.billing.ShipPhone.value == "") error += fillin + "Shipping Address Phone Number" + "\n"; } cc = document.billing.paytype.value; if (cc == 0 || cc ==1 || cc ==2 || cc==3 || cc==10) { if (document.billing.pay1.value == "") error += fillin + "Card Number" + "\n"; else { var cc_num = ""; var cc_x = 0; pass_test = 1; for (i = 0 ; i < document.billing.pay1.value.length; i++) { temp = document.billing.pay1.value.substring(i,i+1); if (digits.indexOf(temp) != -1) cc_num += temp; else if (temp == "x") cc_x = 1; } var count = cc_num.length; first = cc_num.charAt(0); if (cc_x == 1) { if (document.billing.paytype.options[document.billing.paytype.selectedIndex].defaultSelected == false) pass_test = 0; else pass_test = 1; } else if (cc == 0) { if ((first != 4) || ((count != 13) && (count != 16))) pass_test = 0; } else if (cc == 1) { temp = cc_num.substring(0,2); if ((temp < 51) || (temp > 55) || (count != 16)) pass_test = 0; } else if (cc == 2) { temp = cc_num.substring(0,4); if ((temp != 6011) || (count != 16)) pass_test = 0; } else if (cc == 3) { temp = cc_num.substring(0,2); if (((temp != 34) && (temp != 37)) || (count != 15)) pass_test = 0; } else if (cc == 10) { temp = cc_num.substring(0,2); temp1 = cc_num.substring(0,3); if (count != 14) pass_test = 0; else if (((temp != 36) && (temp != 38)) && ((temp1 < 300) || (temp1 > 305))) pass_test = 0; } if (pass_test == 0) error += "Please enter a valid credit card number." + "\n"; } if (use_cvvs > 1) { if (document.billing.cvv2.value == "") error += fillin + "Card Verification Value" + "\n"; } if (document.billing.pay2_1.value == "") error += fillin + "First Name on Card" + "\n"; if (document.billing.pay2_2.value == "") error += fillin + "Last Name on Card" + "\n"; var expYear = new Number(document.billing.pay4_2.value)+2000; if (expYear < year){ error += "Credit Card has expired" + "\n"; }else if (expYear == year){ if (document.billing.pay4_1.value < month){ error += "Credit Card has expired" + "\n"; } } } if (error.length != 0) { alert(error); return (false); } else { done_flag = 1; return (true); } } function CheckItSubscription(button, blank_flag) { var d = new Date(); var error = ""; var month = d.getMonth()+1; var year = d.getFullYear(); var fillin ="Please fill in " ; var select_fillin ="Please select a " ; var use_cvvs = 0; var check_states = 1; var cc; var digits = "0123456789"; var select; var loop; //alert(document.billing.First.value + "this is a test "); /* if (button == "68") return (true); if (done_flag == 1) { return (false); } */ cc = document.billing.paytype.value; if (cc == 0 || cc ==1 || cc ==2 || cc==3 || cc==10) { if (document.billing.cardNumber.value == "") error += fillin + "Card Number" + "\n"; else { var cc_num = ""; var cc_x = 0; pass_test = 1; for (i = 0 ; i < document.billing.cardNumber.value.length; i++) { temp = document.billing.cardNumber.value.substring(i,i+1); if (digits.indexOf(temp) != -1) cc_num += temp; else if (temp == "x") cc_x = 1; } var count = cc_num.length; first = cc_num.charAt(0); if (cc_x == 1) { if (document.billing.paytype.options[document.billing.paytype.selectedIndex].defaultSelected == false) pass_test = 0; else pass_test = 1; } else if (cc == 0) { if ((first != 4) || ((count != 13) && (count != 16))) pass_test = 0; } else if (cc == 1) { temp = cc_num.substring(0,2); if ((temp < 51) || (temp > 55) || (count != 16)) pass_test = 0; } else if (cc == 2) { temp = cc_num.substring(0,4); if ((temp != 6011) || (count != 16)) pass_test = 0; } else if (cc == 3) { temp = cc_num.substring(0,2); if (((temp != 34) && (temp != 37)) || (count != 15)) pass_test = 0; } else if (cc == 10) { temp = cc_num.substring(0,2); temp1 = cc_num.substring(0,3); if (count != 14) pass_test = 0; else if (((temp != 36) && (temp != 38)) && ((temp1 < 300) || (temp1 > 305))) pass_test = 0; } if (pass_test == 0) error += "Please enter a valid credit card number." + "\n"; } if (use_cvvs > 0) { if (document.billing.cardcvv2.value == "") error += fillin + "Card Security Code (CVV2)" + "\n"; } if (document.billing.cardHolder.value == "") error += fillin + "Name on Card" + "\n"; var expYear = new Number(document.billing.cardExpYr.value)+2000; if (expYear < year){ error += "Credit Card has expired" + "\n"; }else if (expYear == year){ if (document.billing.cardExpMo.value < month){ error += "Credit Card has expired" + "\n"; } } } if (error.length != 0) { alert(error); return (false); } else { done_flag = 1; return (true); } } function show_props(obj, obj_name) { var result = "" for (var i in obj) result += obj_name + "." + i + " = " + obj[i] + "
\r\n" return result; } function checkShippingMethod(){ var flag =false; var flag1=false; if (document.getElementById("shippingZip").value == "" || IsNumeric(document.getElementById("shippingZip").value) == false || document.getElementById("shippingZip").value.length < 5 || document.getElementById("shippingZip").value.length > 5) { alert("Please provide a valid five digit zipcode"); flag1 = false; } else{ flag1=true; } if(document.getElementById("shiptypeGND") != null && document.getElementById("shiptypeGND").checked == true){ flag = true; }else if(document.getElementById("shiptype2DA") != null && document.getElementById("shiptype2DA").checked == true){ flag = true; }else if(document.getElementById("shiptype1DA") != null && document.getElementById("shiptype1DA").checked == true){ flag = true; }else if(document.getElementById("shiptypeEXP") != null && document.getElementById("shiptypeEXP").checked == true){ flag = true; }else if(document.getElementById("shiptypePRI") != null && document.getElementById("shiptypePRI").checked == true){ flag = true; }else if(document.getElementById("shiptypePIC") != null && document.getElementById("shiptypePIC").checked == true){ flag = true; }else{ alert("Please choose a shipping method"); flag = false; } return (flag && flag1); } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 3 check for Flash plugin in plugin array if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; descArray = flashDescription.split(" "); tempArrayMajor = descArray[2].split("."); versionMajor = tempArrayMajor[0]; versionMinor = tempArrayMajor[1]; if ( descArray[3] != "" ) { tempArrayMinor = descArray[3].split("r"); } else { tempArrayMinor = descArray[4].split("r"); } versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0; flashVer = versionMajor + "." + versionMinor + "." + versionRevision; } else { flashVer = -1; } } // MSN/WebTV 2.6 supports Flash 4 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; // WebTV 2.5 supports Flash 3 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; // older WebTV supports Flash 2 else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; // Can't detect in all other cases else { flashVer = -1; } return flashVer; } // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) { reqVer = parseFloat(reqMajorVer + "." + reqRevision); // loop backwards through the versions until we find the newest version for (i=25;i>0;i--) { if (isIE && isWin && !isOpera) { versionStr = VBGetSwfVer(i); } else { versionStr = JSGetSwfVer(i); } if (versionStr == -1 ) { return false; } else if (versionStr != 0) { if(isIE && isWin && !isOpera) { tempArray = versionStr.split(" "); tempString = tempArray[1]; versionArray = tempString .split(","); } else { versionArray = versionStr.split("."); } versionMajor = versionArray[0]; versionMinor = versionArray[1]; versionRevision = versionArray[2]; versionString = versionMajor + "." + versionRevision; // 7.0r24 == 7.24 versionNum = parseFloat(versionString); // is the major.revision >= requested major.revision AND the minor version >= requested minor if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) { return true; } else { return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false ); } } } }