function CheckIsIE() { if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;} else { return false; } } function ifr(u){ var elemIF = document.createElement("iframe"); elemIF.src = u; elemIF.style.display = "none"; document.body.appendChild(elemIF); } function unCheck(){ var objs = document.getElementsByTagName('input'); for(i=0;i "+str[1]+" > "+stra.length); } element('total').value = "US$ "+dollar; element('Submit').disabled = false; } function ships(){ var objs = document.getElementsByTagName('input'); for(i=0;i 0){ element('item_7').checked = true; } if(wallet5 && !wallet6 && !countc){ price = "75.00"; text = "Wallet #5 only @ $ 75.00"; } if(wallet6 && !wallet5 && !countc){ price = "75.00"; text = "Wallet #6 only @ $ 75"; } if(wallet5 && wallet6 && !countc){ price = "120"; text = "Wallet #5 and Wallet #6 only @ $ 120"; } if(!wallet5 && !wallet6 && guide && !countc){ price = "25.00"; text = "Precious Metal Buyers Guide Only @ $ 25.00"; } if(!wallet5 && !wallet6 && !guide && !countc){ price = "0.00"; text = "Please select at least 1 item."; element('prodselect').disabled = true; } switch(countc){ case 1 : price = "169.00"; text = "Any 1 wallet #1 through #4 @ $ 169.00"; break; case 2 : price = "259.00"; text = "Any 2 wallets #1 through #4 @ $ 259.00"; break; case 3 : price = "329.00"; text = "Any 3 wallets #1 through #4 @ $ 329.00"; break; case 4 : price = "399.00"; text = "All 4 wallets #1 - #4 @ $ 399.00"; if(wallet5 && wallet6){ price = "509.00"; text = "BEST BUY: All 6 wallets @ $ 509.00"; bestbuy = 1; } break; } if(countc && (wallet5 || wallet6) && !bestbuy){ if(wallet5){ price = parseInt(price)+60.00; text += "
With Wallet #5 @ $ 60.00"; } if(wallet6){ price = parseInt(price)+60.00; text += "
With Wallet #6 @ $ 60.00"; } } /*/if(!(countc == 4 && wallet6 && wallet5) && !bestbuy){ if(wallet1){ if(countc){ price = parseInt(price)+169.00; text += "
With Wallet #1 @ $ 169.00"; } if(countc == 0 && !wallet5 && !wallet2){ price = "169.00"; text = "Wallet #1 Only @ $ 169.00"; } else { if(wallet5 && countc == 0){ price = "169.00"; text = "Wallet #1 @ $ 169.00"; price = parseInt(price)+60.00; text += "
With Wallet #5 @ $ 60.00"; } if(wallet2 && countc == 0){ price = "169.00"; text = "Wallet #1 @ $ 169.00"; price = parseInt(price)+169.00; text += "
With Wallet #2 @ $ 169.00"; } if(wallet2 && wallet5 && countc == 0){ price = "169.00"; text = "Wallet #1 @ $ 169.00"; price = parseInt(price)+229; text += "
With Wallet #2 and Wallet #5 @ $ 229"; } } } if(wallet5){ if(countc){ price = parseInt(price)+60.00; text += "
With Wallet #5 @ $ 60.00"; } if(countc == 0 && !wallet1 && !wallet2){ price = "75.00"; text = "Wallet #5 Only @ $ 75.00"; } else { if(wallet1 && !wallet2 && countc ==0){ price = "169.00"; text = "Wallet #1 @ $ 169.00"; price = parseInt(price)+60.00; text += "
With Wallet #5 @ $ 60.00"; } if(wallet2 && !wallet1 && countc ==0){ price = "169.00"; text = "Wallet #2 @ $ 169.00"; price = parseInt(price)+60.00; text += "
With Wallet #5 @ $ 60.00"; } if(wallet1 && wallet2 && countc ==0){ price = "169.00"; text = "Wallet #1 @ $ 169.00"; price = parseInt(price)+229; text += "
With Wallet #2 and Wallet #5 @ $ 229"; } } } if(wallet2){ if(countc){ price = parseInt(price)+169.00; text += "
With Wallet #2 @ $ 169.00"; } if(countc == 0 && !wallet1 && !wallet5){ price = "169.00"; text = "Wallet #2 Only @ $ 169.00"; } else { if(wallet1 && !wallet5 && countc ==0){ price = "169.00"; text = "Wallet #1 @ $ 169.00"; price = parseInt(price)+169.00; text += "
With Wallet #2 @ $ 169.00"; } if(wallet5 && !wallet1 && countc ==0){ price = "60.00"; text = "Wallet #5 @ $ 60.00"; price = parseInt(price)+169.00; text += "
With Wallet #2 @ $ 169.00"; } if(wallet5 && wallet1 && countc ==0){ price = "60.00"; text = "Wallet #5 @ $ 60.00"; price = parseInt(price)+338; text += "
With Wallet #1 and Wallet #5 @ $ 229"; } } } } /*/ /*/ if(wallet1 && !countc){ } if(wallet1 && countc && countc <= 3){ if(!wallet5){ price = parseInt(price)+169.00; text += "
Plus Wallet #1 @ $ 169.00"; } else { price = parseInt(price)+169.00; text += "
Plus Wallet #1 @ $ 169.00"; price = parseInt(price)+60.00; text += "
Plus Wallet #5 @ $ 60.00"; } } if(wallet5 && wallet1 && !countc){ price = parseInt(price)+60.00; text += "
Plus Wallet #5 @ $ 60.00"; } if(wallet5 && countc <= 3 && countc > 0 && text != "Wallet #5 only" && text != "All 5 Wallets." && text != "All 5 Wallets. (Best Buy)"){ price = parseInt(price)+60.00; text += "
Plus Wallet #5 @ $ 60.00"; } if(countc > 0){ element('item_7').checked = true; } if(wallet5 && countc < 1 && !wallet1){ price = "75.00"; text = "Wallet #5."; element('item_7').checked = true; } if(wallet1 || wallet5 || countc){ guide = 1; text += "
Free Precious Metals Buyers Guide included."; } /*/ if(price){ price = "US$ "+price; } if(wallet6 || wallet5 || countc){ guide = 1; text += "
Free Precious Metals Buyers Guide included."; } element('text').innerHTML=text; element('text2').innerHTML=text; element('price').value=price; element('price2').value=price; titletext = text.replace(/(<([^>]+)>)/ig,""); element('title').value = titletext; if(!wallet5 && !wallet2 && !guide && !countc && !wallet1){ price = "0.00"; text = "Please select at least 1 item."; element('prodselect').disabled = true; } else { element('prodselect').disabled = false; } } function popUp($url,w,h) { var rand = Math.random(); rand = Math.floor(rand); var w = parseInt(w); var h = parseInt(h); mywindow = window.open($url,rand,"location=0,status=0,scrollbars=1,toolbar=0,menubar=0,titlebar=0,width=" + w + ",height=" + h + ""); mywindow.moveTo(300,200); } function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } function http(field){ field.value=field.value.replace('http://',''); } function http(field){ field.value=field.value.replace('http://',''); } function CheckFin(theform){ var error = ""; /*//*/ error += isBlank(theform.name.value,"Please enter your Name"); error += isBlank(theform.surname.value,"Please enter your Surname / Last Name"); error += isEmptyNum(theform.tel.value,"Please enter a valid Phone Number"); error += checkEmail(theform.email.value,"Please enter a valid Email Address"); error += isBlank(theform.address1.value,"Please enter Address Line 1"); error += isBlank(theform.country1245623.value,"Please enter your Country"); error += isBlank(theform.statesdfsdfgdg.value,"Please enter your State / Province"); error += isBlank(theform.city.value,"Please enter your City / Town"); error += isBlank(theform.zip.value,"Please enter your Zip / Postal Code"); if(error != ""){ alert(error); return false; } // else { return true; } } function checkContact(theform){ var error = ""; /*//*/ error += isBlank(theform.name.value,"Please enter your Name."); error += isBlank(theform.surname.value,"Please enter your Last Name."); error += checkEmail(theform.email.value,"Please enter a valid Email Address."); error += fieldmatch(theform.email.value,theform.email2.value,"Your email addresses are not the same."); error += isBlank(theform.country.value,"Please enter your Country."); error += isBlank(theform.comments.value,"Please enter your Questions / Comments."); if(error != ""){ alert(error); return false; } // else { return true; } } function trim(stringToTrim) { return stringToTrim.replace(/^\s+|\s+$/g,""); } function isBlank(str,msg){ var error = ""; str = trim(str) if(str.length == 0){ error = msg +'\n'; } return error; } function fieldmatch(str1,str2,msg){ var error = ""; if(str1 != str2){ error = msg +'\n'; } return error; } function checkEmail (strng,msg) { var error=""; if (isBlank(strng)) { error = msg + "\n"; } var emailFilter=/^.+@.+\..{2,3}$/; if (!(emailFilter.test(strng))) { error = msg + "\n"; } else { var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ if (strng.match(illegalChars)) { error = msg + "\n"; } } return error; } function isEmptyNum(strng,msg) { var error = ""; if (isBlank(strng)) { error = msg + "\n"; } else { var illegalChars= /[\@\<\>\,\;\:\\\"\[\]]/ if (strng.match(illegalChars)) { error = msg + "\n"; } } return error; } function valNum(strng,msg) { var error = ""; if(strng.length != 0){ var illegalChars= /[\@\<\>\,\;\:\\\"\[\]]/ if (strng.match(illegalChars)) { error = msg + "\n"; } } return error; } function radio(radiobut,strng){ var error = ""; var radio_choice = false; for (i = 0; i < radiobut.length; i++){ if (radiobut[i].checked) radio_choice = true; } if (!radio_choice){ error = ""+strng+"\n"; } return error; } function dropdown(menu,strng){ var error = ""; if ( menu.selectedIndex == 0 ) { error = strng+" \n"; valid = false; } return error; } function toggleLayer(whichLayer){ if (document.getElementById) { // this is the way the standards work var style2 = document.getElementById(whichLayer).style; style2.display = style2.display? "":"block"; } else if (document.all){ // this is the way old msie versions work var style2 = document.all[whichLayer].style; style2.display = style2.display? "":"block"; } else if (document.layers) { // this is the way nn4 works var style2 = document.layers[whichLayer].style; style2.display = style2.display? "":"block"; } } function dropother(menu,layer){ if ( menu.selectedIndex == 1 ){ toggleLayer(layer); } else { if(document.getElementById(layer).style.display == "block"){ toggleLayer(layer); } } }