var DOM = (document.getElementById) ? true : false; var IE = (!DOM && document.all) ? true : false; var NS4 = (!IE && !DOM && document.layers) ? true : false; var isLoaded = false; var popup = null; function popupWin(url,wid,hgt,top,left,opts) { if (popup && !popup.closed) { popup.close() } popup = window.open(url,"popup","width="+wid+",height="+hgt+",top="+top+",left="+left+","+opts); return false; } /* Page tracking */ var bro = navigator.appName.replace(/^(\w+)\s.+$/,"$1"); var ver = (bro == "Microsoft") ? navigator.appVersion.replace(/^.+MSIE\s(\d+\.\d+).+$/,"$1") : navigator.appVersion.replace(/^(\d+\.\d+).+$/,"$1"); var ref = (document.referrer) ? escape(document.referrer) : ""; /* Index */ var msgAry = new Array ( "

Websites only work well when they satisfy visitors needs. That means easy navigation, quick response times, and highly effective copy and graphics. Visitors come to your site for a specific purpose. If they don't find what they want very quickly, they'll never return.

", "

In most instances changes or minor additions to your site will be completed within 24 hours. At Fulspec.com you'll always get a fast, attentive response whenever you need to make changes.

", "

A small ad in Yellow Pages can run you around $200.00 a month. Compare that to around $25.00 a month to host a medium-sized website. Typically you can expect to invest $2500.00 for a website with some interactive features. (Around the cost of preparing artwork for a full page ad). But remember, the life of an ad is limited. The life of a professionally designed website will last you years. Additions and changes, to keep up with the times, are a fraction of that cost.

" ); function chgMsg(no) { if (DOM) { document.getElementById('message').innerHTML = msgAry[no]; } // does not work with Opera else if (IE) { document.all.message.innerHTML = msgAry[no]; } else if (NS4 && !isLoaded) { alert("The rollover message displayed here and some\nother functions on this site do not work with NS4\n\nPlease! Please! Upgrade your browser"); isLoaded = true; } //more trouble than it's worth else { return false } } /* Estimator */ var exchange = new Array(1.27,1.32,0.78,0.53,1.00); var symbols = new Array('A$','C$','€','£','$'); var exrate = 1; var sym = '$'; function flag(val) { exrate = exchange[val]; sym = symbols[val] document.forms[0].elements[7].value = exrate; getquote(); return false } function getquote() { var price = 0; var exrate = document.forms[0].elements[7].value; with (document.forms[0]) { pages = elements[0].value; temp = pages; // pages @ $100 (1-4), $80 (5-19), $75 (20 up) if (pages) { if (temp > 19) { price += ((temp - 19) * 75); temp = 19 } if (temp > 4) { price += ((temp - 4) * 80); temp = 4 } if (temp > 0) { price += (temp * 100); } images = elements[1].value; temp = images/pages; // images @ $0.00 (1-3), $2.5 (4 up) if (temp > 3) { price += ((temp - 3) * 2.5 * pages); } price += elements[2].value * 5.0; // create images @ $5.00/1k price += elements[3].value * 2.5; // crop & size @ $2.50 price += elements[4].value * 2.0; // text images @ $2.00 price += elements[5].value * 5.00; // rollovers @ $5.00 price += elements[6].value * 5.00; // form fields @ $5.00 } elements[9].value = sym+Math.round(price * exrate)+".00"; } } function help(subj) { if (popup && !popup.closed) { popup.close() } popup = window.open("help.html#"+subj,"popoup","top=100,left=500,width=330,height=500,scrollbars"); } /* Barcode */ function getCode(val) { if (!val) { alert("You have not entered anything to barcode !!"); return false; } var code39 = (document.codeform.code[1].checked) ? true : false if (code39) { var errmsg = "Barcode 39 may only contain:\nthe letters A thru' Z, the numbers 0 thru' 9,\n"; errmsg += "and the following special chars (space - . $ / + %)\n\n"; errmsg += "Any lowercase letters will be converted to uppercase"; val = val.toUpperCase(); if (/[^0-9A-Z \-\. \$\/\+\%";]/g.test(val)) { alert(errmsg); return false; } document.getElementById('barcode').src = "/cgi-bin/cgiwrap/fulspec/barcode39.cgi?"+escape(val); } else { var errmsg = "Barcode 128 may contain any alpha-numeric character, but we have disabled the following\n"; errmsg += "characters for security and code simplification: ~ ! ( ) \\ < > ?"; if (/[~!\(\)\\<>?]/g.test(val)) { alert(errmsg); return false; } document.getElementById('barcode').src = "/cgi-bin/cgiwrap/fulspec/barcode128.cgi?"+escape(val); } document.getElementById('txt').innerHTML = val return false; } /* INQUIRE*/ function checkForm() { return false; } /* ORDER ENTRY */ function enterOrder() { location.href = "/cgi-bin/cgiwrap/fulspec/login.cgi"; return false; } /* OrderEntry - A0 */ function checkPO() { var df = document.forms[0]; if (df.pono.value == "") { alert(' A Purchase Order Number is required before selecting Parts '); return false } return true; } /* OrderEntry - Parts */ function delConfirm(no) { var df = document.forms[0]; var num = no + 3; // skips over hidden and button fields. var pn = df.elements[num].name.split(':'); if (pn[1] && (!df.elements[num].checked)) { var delmsg = "Delete PartNo: " + pn[0] + "\n\nARE YOU SURE?\nPress 'OK' to Delete or 'Cancel' to Save\n\n(If deleted, all previously entered schedule information for this part will be lost)"; if (!confirm(delmsg)) { df.elements[num].checked = true; } } } /* OrderEntry - A1 */ function setSch(elem,field,val) { var dfe = document.forms[0].elements; var li = field.split(':')[0]; var si = field.split(':')[1]; var qd = field.split(':')[2]; var hidden_data = dfe['h'+li].value.split(':'); var msg = ""; // Check the data if ((qd == 1) && (!/^\d+$/.test(val))) { msg = "This field may only contain whole numbers"; } if ((qd == 2) && (!/^\d{2}\/\d{2}\/\d{2,4}$/.test(val))) { msg = "The date must be in the form mm/dd/yy" } if (msg) { alert(msg); elem.value=""; return false; } if (hidden_data[qd]) { temp = hidden_data[qd].split(','); temp[(si-1)] = val; hidden_data[qd] = temp.join(','); } else { hidden_data[qd] = val; } dfe['h'+li].value = hidden_data.join(':'); } function checkSch(df) { var imax = df.elements.length - 1; i = 4; var msg = ""; while (i < imax) { if (df.elements[i].type == 'hidden') { var arys = df.elements[i].value.split(':'); var qty = (arys[1]) ? arys[1].split(',') : ""; var dte = (arys[2]) ? arys[1].split(',') : ""; if (qty.length != dte.length) { msg = 'All quantities must be matched with a valid date'; } else if (!qty && !dte) { msg = 'No quantity or request date has been entered for one of the line items.\nEnter a quantity and date, or delete the line item.'; } } i++; } if (msg) { alert(msg); return false; } else { return true; } } /* OrderEntry - A2 */ var allow = true; function printable() { var df = document.forms[0]; if (allow) { df.action='/cgi-bin/cgiwrap/fulspec/orderprn.cgi'; df.target = "popup"; popupWin('/cgi-bin/cgiwrap/fulspec/orderprn.cgi?pg=int',700,600,10,10,'scrollbars,menubar'); df.cancel.value = "Return to Main Menu"; allow = false; } else { alert("This order has already been submitted"); } return false; } function disallow() { if (allow) { return true } else { alert("This order has already been submitted"); return false } }