var items = new Array(); var n1m = 0; var hours = 0; var total = 0; var OrdWin2 = ""; var n1w = '', n3w = '', n4w = '', n6w = '', n10w = '', n13w = '', n20w = '', scrapper2 = '', scrapper20a = ''; var nu = navigator.userAgent; var tboxsize = 2; if (nu.indexOf("MSIE") != -1 && nu.indexOf("Mac") == -1 && nu.indexOf("Opera") == -1) { tboxsize = 1; } var macmatch = 0, uamatch = 0; if (nu.indexOf("Mac") != -1 && nu.indexOf("AOL") == -1 && nu.indexOf("MSIE 4.0") != -1) { macmatch = 1; } if (nu.indexOf("MSIE") != -1 && nu.indexOf("Opera") == -1) { if (!macmatch) { uamatch = 1; } if (nu.indexOf("MSIE 9.") != -1 || nu.indexOf("MSIE 1") != -1 || nu.indexOf("Trident/") != -1) { uamatch = 2; } } else if (nu.indexOf("Gecko") != -1 || nu.indexOf("Opera") != -1 || nu.indexOf("Konqueror") != -1) { if (nu.indexOf("Linux") == -1 || (nu.indexOf("Opera/6.") == -1 && nu.indexOf("Opera / 6") == -1)) { uamatch = 2; } } else if (nu.indexOf("Mozilla/4.") != -1) { if (nu.indexOf("Mac") == -1) { uamatch = 3; } } var OW = ""; var AOW2 = ''; var win_sz, win_id; var qd38 = "honey mustard"; var qd55 = "pickles"; var qd1 = "coke 12 oz. can"; var qd42 = "sweet bbq"; var qd13 = "sausage"; var qd53 = "lettuce"; var qd22 = "extra cheese"; var qd15 = "onions"; var qd14 = "ground beef"; var qd4 = "pepsi 20 oz. bottle"; var qd7 = "spring water"; var qd35 = "classic pesto chicken (pizza)"; var qd8 = "pepperoni"; var qd41 = "mild"; var qd33 = "supreme pizza"; var qd11 = "pineapple"; var qd12 = "anchovies"; var qd37 = "artichoke chicken (pizza)"; var qd26 = "veggie (pizza)"; var qd21 = "spinach"; var qd54 = "mayo"; var qd32 = "grilled chicken (pizza)"; var qd2 = "pepsi 12 oz. can"; var qd49 = "ranch dressing"; var qd10 = "mushrooms"; var qd25 = "cheese steak (pizza)"; var qd39 = "bbq sauce"; var qd29 = "buffalo chicken (pizza)"; var qd18 = "bacon"; var qd28 = "white (pizza)"; var qd34 = "chicken & broccoli white (pizza)"; var qd9 = "ham"; var qd19 = "green peppers"; var qd20 = "black olives"; var qd23 = "chicken bacon ranch (pizza)"; var qd51 = "no dressing"; var qd5 = "coke 2 liter"; var qd31 = "greek (pizza)"; var qd24 = "margherita (pizza)"; var qd58 = "swiss"; var qd43 = "old bay"; var qd36 = "asiago chicken bacon (pizza)"; var qd50 = "blue cheese dressing"; var qd44 = "parmesan garlic"; var qd52 = "dressing on the side"; var qd3 = "coke 20 oz. bottle"; var qd45 = "blue cheese"; var qd48 = "meatball"; var qd47 = "meat sauce"; var qd6 = "pepsi 2 liter"; var qd30 = "meat (pizza)"; var qd56 = "american"; var qd46 = "ranch"; var qd16 = "tomatoes"; var qd57 = "provolone"; var qd27 = "hawaiian (pizza)"; var qd40 = "hot"; var qd17 = "feta cheese"; var q0, dq15, dq3, ar_len001, dq14, dq12, dq4, qa0, dq10, ar_len011, r1, dq1, dq2, ar_len0, tbl21, dq7, vv0, c_h0, v0, tbl10, r0, dq16, dq13, r_h1, qamin0, dq5, qq0, r_h0, ck0, r0r, n_1, dq9, c0, r1p, r1r, dq11, dq6, r0p, n_0, c0p, qanumon0, tbl11, tbl20, dq8, ck1, op, needle, oP, mimic, w1d, w1h, icol_a, icol_b, subprice, prearray, p1n, winqty, svhn = 0, callcent = 0, callcomcent1 = "Comment", callcomcent2 = 0, totalcost = 0, delchrg = 0, franco = 0, drop_titl = 0, drop_oclk = 0, full_scrn = 0, site_wnmr = 0, drop_hovr = 0, drop_slim = 0, drop_prob = 0, drop_save = 0, addrcent = 0, cker1 = 0, bsite = "", csite = "", urlsitus = "", urlsitus2 = "", cthru = 0, cthruleft = 0, extracthru = 0, extracthruleft = 0, sitecmnt = 0, menuforward = 0, newdivstyle = 0, imgx = 0, deeon = 0, orvse = 0, ppp1 = 0, mphone = 0, menuoff = 0, menuoff2 = "", weaccept1 = "", sizefull = 0, sizefull2 = 0, sizefull3 = 0, sizefuller2 = 0, freep2 = 0, freep3 = 0, freep4 = 0, forced2 = 0, forced3 = 0, forced4 = 0, forced5 = 0, forced6 = 0, roundh2 = 0, roundh3 = 0, roundh4 = 0, roundh5 = 0, roundh6 = 0, roundh7 = 0, newlook = 0, popupless = 0, lpast = 0, newshowhide = 0, csspop = 0, csspopup = 1, csscolumn = 0, newdivstyler = 0, scrapper = 0, tampm = '', newlookphone = 0, qlessi = "", qlessd = "", qlesss = "", numcnt = 0, numcnt2 = 0, keep = -1, logcustom = 0, logstring = "", logcuser = "", rfrming = 1, alertchk = 0, nomen = "", nomon = "", ineo = "", ineon = "", calmod = "", datelist = "", datestr = "", datearg = "", dateprearg = "", mphonevar = 0, chromevar = 0, pckaobj, json2fds, taxvar = 1.0600, q1, v1, nmtg = 0; var superqty, ropez; var extras500_0 = new Array(qd1, qd2, qd3, qd4, qd5, qd6, qd7); var extras500_0p = new Array(1.00, 1.00, 1.52, 1.52, 2.35, 2.35, 1.52); var extras450_0 = new Array(qd8, qd9, qd10, qd11, qd12, qd13, qd14, qd15, qd16, qd17, qd18, qd19, qd20, qd21, qd22); var extras512_0 = new Array(qd23, qd24, qd25, qd26, qd27, qd28, qd29, qd30, qd31, qd32, qd33, qd34, qd35, qd36, qd37); var radio100_0 = new Array(qd38, qd39); var radio101_0 = new Array(qd40, qd41, qd42, qd43, qd38, qd44); var radio89_0 = new Array(qd45, qd46); var radio111_0 = new Array(qd47, qd48, qd13); var salad114_0 = new Array(qd49, qd50, qd51, qd52); var ssalad114_0 = new Array(qd49, qd50, qd51, qd52); var extras112_0 = new Array(qd53, qd16, qd54, qd55); var radio113_0 = new Array(qd56, qd57, qd58); function visvals() { if (document.getElementById('visphon') != null) { document.getElementById('visphon').innerHTML = '(410) 740-2009'; } if (document.getElementById('visaddr') != null) { document.getElementById('visaddr').innerHTML = '5325 Phelps Luck Drive'; } if (document.getElementById('viscity') != null) { document.getElementById('viscity').innerHTML = 'Columbia'; } if (document.getElementById('visstat') != null) { document.getElementById('visstat').innerHTML = 'MD'; } if (document.getElementById('visname') != null) { document.getElementById('visname').innerHTML = 'Romas Pizza - Catering'; } //fix this if (document.getElementById('vishomeurl') != null) { document.getElementById('vishomeurl').innerHTML = ''; } } function getOffsetRect(elem) { // (1) var box = elem.getBoundingClientRect(); var body = document.body; var docElem = document.documentElement; // (2) var scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop; var scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft; // (3) var clientTop = docElem.clientTop || body.clientTop || 0; var clientLeft = docElem.clientLeft || body.clientLeft || 0; // (4) var top = box.top + scrollTop - clientTop; var left = box.left + scrollLeft - clientLeft; return { top: Math.round(top), left: Math.round(left) }; } var jquerychk = 0, jquerycook = 0; var checkjQuery = function() { if (!window.jQuery && jquerychk < 50) { jquerychk++; return false; } else if (!jQuery.cookie && jquerychk < 50) { if (!jquerycook) { jquerycook++; jqcookload(); } jquerychk++; return false; } else { clearTimeout(jqinterval); grabord(); } } var jqinterval= setInterval(checkjQuery,400); (function() { var srcfile, jsfile; if (!window.jQuery) { srcfile = "/icons/js/jquery-1.7.1.min.js"; jsfile = document.createElement('script'); jsfile.setAttribute("type","text/javascript"); jsfile.setAttribute("src",srcfile); document.getElementsByTagName("head")[0].appendChild(jsfile); } var jnug = navigator.userAgent; if (jnug.indexOf("MSIE") != -1 && jnug.indexOf("MSIE 9") == -1 && jnug.indexOf("MSIE 1") == -1) { srcfile = "/icons/js/json2.js"; jsfile = document.createElement('script'); jsfile.setAttribute("type","text/javascript"); jsfile.setAttribute("src",srcfile); document.getElementsByTagName("head")[0].appendChild(jsfile); } })(); function jqcookload() { if (!jQuery.cookie) { srcfile = "/icons/js/jquery.cookie.js"; jsfile = document.createElement('script'); jsfile.setAttribute("type","text/javascript"); jsfile.setAttribute("src",srcfile); document.getElementsByTagName("head")[0].appendChild(jsfile); } } var timeobj = ''; var timenowobj = ''; function sveord() { if (!localStorage) { $.cookie('eatord1001865',JSON.stringify(items), {expires: 1, path : '/' }); } else { localStorage.setItem('eatord1001865',JSON.stringify(items)); timeobj = { itmtime: new Date().getTime() }; localStorage.setItem('eattime1001865',JSON.stringify(timeobj)); } } function grabord() { var pieitems,pienum; if (!ropez) { if (!localStorage) { if ($ && $.cookie && JSON.parse($.cookie('eatord1001865'))) { items = JSON.parse($.cookie('eatord1001865')); } } else { pieitems = JSON.parse(localStorage.getItem('eatord1001865')); if (pieitems && pieitems[1]) { pienum = pieitems.length - 1; items = new Array(); piecount = 1; for (var i=1;i<=pienum;i++) { if (pieitems[i] && pieitems[i].code && pieitems[i].code < 95000) { items[piecount++] = pieitems[i]; } } } timeobj = JSON.parse(localStorage.getItem('eattime1001865')); timenowobj = new Date().getTime().toString(); if (timeobj && timeobj.itmtime != null) { if (timenowobj > timeobj.itmtime + 7200000) { items = ''; } } } if (items && items[1]) { n1m = items.length - 1; displaymenuorder(); } else { items = new Array(); } } } function nmtgoff(id) { nmtg = (id ? 0 : 1); displaymenuorder(); var nmcnt = 0; var sh = parent.document; sh.forms[0].nmtg.value = nmtg; if (id) { if (n1m == 1) { sh.forms[0].nomen.value = ''; } else { for (var i=0; i <= sh.forms[0].elements.length-3; i++) { if (sh.forms[0].elements[i].name != "nomen") { continue; } else { nmcnt++; sh.forms[0].elements[i].value = ''; if (n1m == nmcnt) { break; } } } } } displaymenuorder(); } function onclk(id,id2) { var sh = OW.document.order.elements; if (!id) { id = 0; } if (id == 1) { if (sh.nomen.value == 'Name') { sh.nomen.value = ''; } } else if (id == 2) { if (sh.ineo.value == 'Comment') { sh.ineo.value = ''; } } return false; } function onclk2(id,nc) { var sh = parent.document; var qoc = 0; if (items[id].basedesc != null && items[id].nomenoff != null) { return true; } if (!nc) { if (items[id].nomenoff == null) { items[id].nomenoff = 1; if (items[id].nomen && items[id].nomen == 'Name') { items[id].nomen = ''; } if (n1m == 1) { if (sh.forms[0].nomen.value && sh.forms[0].nomen.value == 'Name') { sh.forms[0].nomen.value = ''; } } else { for (var i=1; i<=n1m;i++) { qoc = 0; for (var j=0; j <= sh.forms[0].elements.length-3; j++) { if (sh.forms[0].elements[j].name != "nomen") { continue; } else { qoc++; if (id == i && id == qoc) { if (sh.forms[0].elements[j].value && sh.forms[0].elements[j].value == 'Name') { sh.forms[0].elements[j].value = ''; } break; } } } } } } else { return true; } } else { if (items[id].ineooff == null) { items[id].ineooff = 1; if (items[id].ineo && items[id].ineo == 'Comment') { items[id].ineo = ''; } if (n1m == 1) { sh.forms[0].ineo.value = ''; } else { for (var i=1; i<=n1m;i++) { qoc = 0; for (var j=0; j <= sh.forms[0].elements.length-3; j++) { if (sh.forms[0].elements[j].name != "ineo") { continue; } else { qoc++; if (id == i && id == qoc) { if (sh.forms[0].elements[j].value && sh.forms[0].elements[j].value == 'Comment') { sh.forms[0].elements[j].value = ''; } break; } } } } } } else { return true; } } } var ld12 = ""; var ld6 = ""; var ld3 = ""; var ld8 = ""; var ld7 = ""; var ld9 = ""; var ld10 = ""; var ld2 = ""; var ld4 = ""; var ld5 = ""; var ld11 = ""; var ld1 = ""; var wu8 = ""; var wu1 = ""; var wu2 = ""; var wu4 = ""; var wu6 = ""; var wu9 = ""; var wu5 = ""; var wu7 = ""; var wu3 = ""; var wq1 = ''; var wq2 = ''; function namehasher() { var mixx; ld12 = "Cheese Choice "; ld6 = "Dipping Sauce "; ld3 = "Choice of 8 Items "; ld8 = "Dipping Dressing "; ld7 = "Wing Sauce "; ld9 = "Side Choice "; ld10 = "Dressing Choice "; ld2 = "Choice of 4 Items "; ld4 = "Choice of 12 Items "; ld5 = "Choice of 20 Items "; ld11 = "Fixing Choice "; ld1 = "Beverages "; wu8 = "
Fixing Choice: "; wu1 = "
Beverages: "; wu2 = "
Gourmet Choices: "; wu4 = "
Wing Sauce: "; wu6 = "
Side Choice: "; wu9 = "
Cheese Choice: "; wu5 = "
Dipping Dressing: "; wu7 = "
Dressing Choice: "; wu3 = "
Dipping Sauce: "; cx1 = ' CHECKED'; cx2 = ' value=1'; wq1 = '
With: '; wq2 = '
w/: '; return 1; } function chkstr(idelm,idmax) { var digits = "0123456789"; var result = ''; var sh = OW.document; var elm,chgval; var test = 0; var chgval = sh.getElementById(idelm).value; for (var i = 0; i < chgval.length; i++) { c = chgval.charAt(i); if (digits.indexOf(c) != -1) { if (!test) { if (c != 0) { test++; } else { continue; } } result = "" + result + c; } } if (!result || result == null) { result = 0; } if (idmax > 1 && result > idmax) { result = idmax; } sh.getElementById(idelm).value = result; return true; } function goanchor(id) { if (id) { location.hash ='#' + id; } } function qlessing(qlpos,qljay,qlfds) { var qreti = ""; if (!qlfds) { qreti = fds[qlpos][3]; qreti = qreti.replace(/'/g,"’"); qreti = qreti.replace(/"/g,"”"); return qreti; } else if (qlfds == 1) { qreti = fds[qlpos][4]; qreti = qreti.replace(/'/g,"’"); qreti = qreti.replace(/"/g,"”"); return qreti; } else if (qlfds == 2) { qljay = qljay - 0; if (fds[qlpos][qljay+5]) { qreti = fds[qlpos][qljay+5]; qreti = qreti.replace(/'/g,"’"); qreti = qreti.replace(/"/g,"”"); qreti = " - " + qreti; return qreti; } else { return ""; } } return ""; } logcustom = "https://www.eatkey.com/apps/EatCustomer/?rids=1001865&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck="; logstring = ""; weaccept1 = "WE ACCEPT VISA, MASTERCARD, AMERICAN EXPRESS AND DISCOVER"; function posOflex() { } function lT2(lF, lC, lN) { if (lF.value.length > lN) { lF.value = lF.value.substring(0, lN); } else { lC.value = lN - lF.value.length; } } function openPreOrderWin(id) { var tmpQty = 0, qtyObjCount = 0, tmpNomen = '', tmpIneo = ''; totalcost = 0; var sh = parent.document; if (ppp1 != 1) { updatemenuorder(1); } for (var i = 1;i <= n1m; i++) { totalcost += (items[i].price * items[i].quantity); tmpQty = 0; tmpNomen = ''; tmpIneo = ''; if (n1m == 1) { tmpQty = parseInt(sh.forms[0].qty.value); if (!nmtg) { tmpNomen = sh.forms[0].nomen.value; } tmpIneo = sh.forms[0].ineo.value; } else { qtyObjCount = 0; for (var j = 1; j <= sh.forms[0].elements.length-3; j++) { if (sh.forms[0].elements[j-1].name != "qty") { continue; } else { qtyObjCount++; if (qtyObjCount == i) { tmpQty = parseInt(sh.forms[0].elements[j-1].value); if (!nmtg) { tmpNomen = sh.forms[0].elements[j-2].value; } tmpIneo = sh.forms[0].elements[j+1].value; break; } } } } if (isNaN(tmpQty)) { alert("You Inadvertantly Entered a Blank Space or a Letter in the Quantity Box for Item Number " + i + ". Please Re-enter a Number."); return; } if (tmpQty < 0) { alert("Please Do Not Order Negative Numbers of Food Items."); return; } if ((tmpQty * items[i].price) != (items[i].quantity * items[i].price) || (!nmtg && items[i].nomen != tmpNomen) || items[i].ineo != tmpIneo) { alert("Please Hit the Update Button and then Hit the Order Button Again."); return; } } openPreOrderWin1(id); } function openPreOrderWin1(id,id2) { var wdt = 475; var sh = parent.document; if (callcent == 1) { if (!ordersubmit()) { return; } } if (id == -1) { sh.forms[0].method = 'post'; sh.forms[0].target = '_parent'; sh.forms[0].submit(); return; } if (id) { wdt += 25; } var jh = screen.availHeight; jh = jh - (jh / 8); jh = Math.round(jh); if (OrdWin2 && !OrdWin2.closed) { OrdWin2.close(); } OrdWin2 = window.open("","preOrderWin","location=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,width=" + wdt + ",height=" + jh + ",screenX=20,screenY=0"); if (!id) { sh.forms[0].submit(); } } function openPreOrderWin2(id) { var sh = parent.document; if (sh.forms != null && sh.forms[0]) { if (!id || id == null) { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck='; } } else { if (id != 3) { if (franco == 1) { if (cker1 == 1) { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=' + bsite + '&csite=' + csite + '&franco=1&ck=1&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=' + bsite + '&csite=' + csite + '&franco=1&ck=1'; } } else { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=' + bsite + '&csite=' + csite + '&franco=1&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=' + bsite + '&csite=' + csite + '&franco=1&ck='; } } } else { if (cker1 == 1) { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck=1&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck=1'; } } else { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck='; } } } } } sh.forms[0].method = 'post'; sh.forms[0].target = '_parent'; sh.forms[0].submit(); } else { top.location.href = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001865&menu2=0&hubco=&menuturn=1&situs=romasmd&franco=1&csite=catering.romasmd.com&ck='; } } function updatemenuorder(id) { var sh = parent.document; var test = 0, tmpQty = 0, qtyObjCount = 0, tmpNomen = '', tmpIneo = ''; if (id && popupless == 1) { return true; } if (n1m > 0 && callcent == 1 && callcomcent2 == 1 && sitecmnt == 0) { callcomcent1 = sh.forms[0].comments.value; } for (var i=1;i<=n1m;i++) { tmpQty = 0; tmpNomen = ''; tmpIneo = ''; if (n1m == 1) { tmpQty = parseInt(sh.forms[0].qty.value); if (!nmtg) { tmpNomen = sh.forms[0].nomen.value; } tmpIneo = sh.forms[0].ineo.value; } else { qtyObjCount = 0; for (var j=1; j <= sh.forms[0].elements.length-3; j++) { if (sh.forms[0].elements[j-1].name != "qty") { continue; } else { qtyObjCount++; if (qtyObjCount == i) { tmpQty = parseInt(sh.forms[0].elements[j-1].value); if (!nmtg) { tmpNomen = sh.forms[0].elements[j-2].value; } tmpIneo = sh.forms[0].elements[j+1].value; break; } } } } if (items[i].quantity == tmpQty && (nmtg || items[i].nomen == tmpNomen) && items[i].ineo == tmpIneo) { continue; } test++; if (isNaN(tmpQty)) { tmpQty = 0; } else if (tmpQty < 0) { tmpQty = 0; } items[i].quantity = tmpQty; if (!nmtg && items[i].nomen != tmpNomen) { items[i].nomen = tmpNomen; } if (items[i].ineo != tmpIneo) { items[i].ineo = tmpIneo; } if (id) { return true; } } if (test) { sveord(); update(); } } function decreaseitem(itemno) { for (i=1;i<=n1m;i++) { if (itemno == items[i].itemno) { if (items[i].quantity > 0) { items[i].quantity--; } else { items[i].quantity = 0; } } } displaymenuorder(); } function Item(i,d,d2,dd,p,c,q) { this.itemno = i; this.desc = d; this.desc2 = d2; this.dsub = dd; this.price = p; this.code = c; this.quantity = q; } function mr_clean(desc) { var here, storage, caboose; var comma = '"'; if (desc.indexOf("^") >= 0) { for (var i = 0; i < desc.length; i++ ) { if (desc.indexOf("^") >= 0) { here = desc.indexOf("^"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + comma + caboose; } else { break; } } } if (desc.indexOf("`") >= 0) { for (var i = 0; i < desc.length; i++ ) { if (desc.indexOf("`") >= 0) { here = desc.indexOf("`"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + "'" + caboose; } else { break; } } } return desc; } function additem(itemno,d1,d2,dsub,price,code,nomen,ineo,slctqty) { var here, storage, caboose, desc, t1s = 0, comma = '"'; if (d1 >= 0) { updatemenuorder(1); } var nwitm = 0; if (d1 >= 0) { desc = fds[d1][d2]; } else { desc = d2; } var desc2 = desc; desc = mr_clean(desc); if (desc2.indexOf("'") >= 0) { for (var i = 0; i < desc2.length; i++ ) { if (desc2.indexOf("'") >= 0) { here = desc2.indexOf("'"); storage = desc2.substring(0,here); here += 1; caboose = desc2.substring(here,desc2.length); desc2 = "" + storage + "`" + caboose; } else { break; } } } var foundIt = false; var quantity; if (!op) { p1n = 0; } if (!p1n) { for (var i=1;i<=n1m;i++) { if (slctqty && slctqty > 0) { break; } if (desc == items[i].desc && itemno == items[i].itemno && (!nmtg && ((!nomen && (!items[i].nomen || items[i].nomen == null || items[i].nomen == 'Name')) || nomen == items[i].nomen)) && ((!ineo && (!items[i].ineo || items[i].ineo == null || items[i].ineo == 'Comment')) || ineo == items[i].ineo)) { if (items[i].quantity >= 0) { items[i].quantity++; } else { items[i].quantity = 0; } foundIt = true; break; } } if (!foundIt) { if (!slctqty || slctqty == 0) { quantity = 1; } else { quantity = slctqty; } nwitm++; items[++n1m] = new Item(itemno,desc,desc2,dsub,price,code,quantity); t1s = n1m; if (op) { items[n1m].basedesc = oP.basedesc; items[n1m].baseprice = oP.baseprice; items[n1m].tracker = oP.tracker; items[n1m].sz = oP.sz; items[n1m].ider = oP.ider; items[n1m].ayray = arrayplay(); if (winqty) { items[n1m].quantity = winqty; } } } } else { items[p1n].desc = desc; items[p1n].desc2 = desc2; items[p1n].dsub = dsub; items[p1n].price = price; items[p1n].tracker = oP.tracker; items[p1n].ayray = arrayplay(); if (winqty) { items[p1n].quantity = winqty; } t1s = p1n; } if (nwitm) { if (!nmtg && !op) { items[n1m].nomen = 'Name'; } else { items[n1m].nomen = nomen; } if ( !op) { items[n1m].ineo = 'Comment'; } else { items[n1m].ineo = ineo; } } else { if (!foundIt) { if (!nomen || nomen == 'Name') { nomen = ''; } items[t1s].nomen = nomen; } if (!foundIt) { if (!ineo || ineo == 'Comment') { ineo = ''; } items[t1s].ineo = ineo; } } op = ''; winqty = 0; prearray = p1n = ''; displaymenuorder(); sveord(); } //top to bottom function jslim(sz,code2) { //dq1 = new Array( arlens in here); //dq2 = new Array( r0/c0 in here); //dq3 = new Array( ck0 in here); //dq4 = new Array( r0r in here); //dq5 = new Array( r0p in here); //dq6 = new Array( shutoff + menu_number value }; //dq7 = new Array{ shutoff0 + tiresome value }; //dq8 = new Array( potato value ); //dq9 = new Array( names ); //dq10 = new Array ( halves ); //dq11 = new Array ( 'gj' values ); //dq12 = new Array { set values }; //dq13 = new Array ( subchk values }; //dq14 = new Array ( headers ); code2 = parseInt(code2); var f5 = f52 = f53 = pricon = check5 = fives = 0; var rgen = 0; var rmlt = 0; var rmlt2 = 0; var r9e = 0; var r8e = 0; var r5e = 0; var r6e = 0; var cbr5 = 0; var dq20null = ''; var cspn1, cspn5, cspna, cspnb, cspnc, cwdth, czr1, czr2, czr3, czr4, czr5, czr6, czr7, czr8, czr45, czr445, fiver45, fiver455, in5, in8, here, mox, mox1, mox2, thar, tspn1, tspn2, tspn5, tspn55, twra, twrb, twrc, twend, tline, sbm, sbm2, sz2, subfive, five1, multi8, multi9, newcspna, cspna2, newcspna2, cspnafull, cspnhalf, cspnar; cspnhalf = 0; cspnafull = 0; cspnar = 0; sz = "" + sz; if (sz.indexOf("9") >= 0) { rgen = rmlt = r9e = 1; } if (sz.indexOf("8") >= 0) { rgen = rmlt = r8e = 1; } if (sz.indexOf("6") >= 0) { rgen = r6e = 1; } if (sz.indexOf("5") >= 0) { rgen = r5e = 1; } // n1w += ""; if (rmlt == 0) { twend = sz.lastIndexOf("1"); if (sz.lastIndexOf("2") > twend) { twend = sz.lastIndexOf("2"); } if (sz.lastIndexOf("3") > twend) { twend = sz.lastIndexOf("3"); } if (sz.lastIndexOf("4") > twend) { twend = sz.lastIndexOf("4"); } } td1 = (sz.length != 1 ? '' : ''); jps = jps1 = jps3 = jpse = 0; var jout = pls2 = pls22 = pls4 = place = 0; //fives if (r6e == 0) { // n1w += ''; for (var i = 0; i < sz.length; i++) { czr1 = sz.charAt(i); czr4 = (sz.length > i - 1 ? sz.charAt(i-1) : -1); czr45 = (i > 1 && sz.length > i - 2 ? sz.charAt(i-2) : -1); if (rmlt == 1) { rmlt2 = 1; if (i == 0 || (i > 1 && czr4 >= 8)) { place = (i != 0 ? i : 1); sbm = sz.substring(place,sz.length); sz2 = 0; if (r9e == 1) { sz2 = sbm.indexOf("9"); } else if (r8e == 1) { sz2 = sbm.indexOf("8"); } if (sz2 >= 0) { sbm = sbm.substring(0,sz2); } if (sbm.indexOf("5") >= 0) { subfive = 1; } else { subfive = 0; } } else { sbm = sz.substring(i,sz.length); sz2 = 0; if (r9e == 1) { sz2 = sbm.indexOf("9"); } else if (r8e == 1) { sz2 = sbm.indexOf("8"); } if (sz2 >= 0) { sbm = sbm.substring(0,sz2); if (r9e == 1) { if (sbm.indexOf("9") == -1) { rmlt2 = 0; } } else if (r8e == 1) { if (sbm.indexOf("8") == -1) { rmlt2 = 0; } } } else { rmlt2 = 0; } } } else { subfive = 1; } if (subfive == 1) { if (czr1 != 1 && czr1 != 3) { continue; } czr2 = (sz.length > i + 1 ? sz.charAt(i+1) : -1); czr3 = (sz.length > i + 2 ? sz.charAt(i+2) : -1); mox2 = 0; if (rmlt == 1) { czr5 = (sz.length > i + 3 ? sz.charAt(i+3) : -1); czr8 = (i > 1 ? sz.charAt(i-2) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { mox2 = 1; twend = i; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? i + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); } } if (czr4 == 8 || czr8 == 8) { fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; // fives = f5 = 0; czr6 = 0; for (var j = i+1; j < sz.length; j++) { czr7 = sz.charAt(j); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 2; } else if (czr7 == 2 || czr7 == 4) { czr6 += 1; } } if (cbr5 == 1) { n1w += ";" } else { n1w += ""; } jps3++; } else if (czr4 == 9 || czr8 == 9) { if (cbr5 == 1) { n1w += ''; } fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; } } if (czr4 == 5 || (czr4 == 7 && czr45 == 5)) { if (i > 2) { tspn55 = sz.substring(i-3,i); if (tspn55.indexOf("555") == -1) { fives = (fives == 1 ? 0 : 1); } } else { fives = (fives == 1 ? 0 : 1); } } tspn5 = ''; cspn5 = sz.substring(i); if (cspn5.indexOf("5") >= 0) { if (rmlt == 0 || rmlt2 == 0) { tspn5 = 1; //new 04/28 if (rmlt == 1) { multi8 = cspn5.indexOf("8"); multi9 = cspn5.indexOf("9"); if (multi8 > -1) { tspn5 = (five1 < multi8 ? 1 : 0); if (tspn5 == 0 && fives == 0) { f5 = 0; } } else if (multi9 > -1) { tspn5 = (five1 < multi9 ? 1 : 0); if (tspn5 == 0 && fives == 0) { f5 = 0; } } } } else { five1 = cspn5.indexOf("5"); multi8 = cspn5.indexOf("8"); multi9 = cspn5.indexOf("9"); if (multi8 > -1) { tspn5 = (five1 < multi8 ? 1 : 0); } else { tspn5 = (five1 < multi9 ? 1 : 0); } } } else if (fives == 0) { f5 = 0; } if (f5 == 0 && (czr4 == 5 || (czr4 == 7 && czr45 == 5))) { f5 = 1; f53++; } twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if ((czr4 != 5 && f5 == 0) || (!tspn5 && fives == 0)) { cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
" + dq14[jps3] + "
" + dq14[jps3] + "
"; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],'',dq13[jps],'',1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } check5 = 1; } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); thar = cspn1; check5 = 0; } else { thar = czr1; } //topbot if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; //topbot if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } } //topbot // if (czr4 == 5 && f5 == 1) { // if (tspn2 && f52 == 0) { // f52 = 1; // n1w += ""; // } // f5 = 2; // if (!tspn2) { // if (f53 >= 2 && f52 == 1) { // n1w += ''; // f52 = 2; // } // n1w += "
"; // } else { // if (f53 <= 2) { n1w += ''; } // n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } //topbot // if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { // n1w += "
"; // } // } else if (tspn2 && f5 == 2) { // f5 = 3; // n1w += ""; n1w += "
"; // } else if (!tspn1 && check5 == 0) { // n1w += ""; } else { //topbot n1w += "
"; // } else if (f53 >= 2 && f52 == 2 && f5 == 2) { // n1w += '
'; // } //tobbotend cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
"; //tobot if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnafull = newcspna = (cspna == 2 ? 6 : 4); newcspna2 = (cspna == 2 ? 5 : 3); cspnar = 1; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = cspna + 1; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { cspnafull = 0; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],twrd,dq13[jps],'',1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; // cspnhalf = 0; // } // // // if (tspn2) { n1w += ''; } // // if (f5 >= 2) { // if (czr2 == 5) { // if (!tspn2) { // n1w += ''; // if (f53 >= 2 && f52 == 2) { f53 = f52 = 0; n1w += ''; } // f5 = 0; // } else { // n1w += ""; // if (f5 == 3) { // if (f53 == 2 && f52 == 1 && tspn55 == 1) { tspn2 = ''; n1w += ""; } else { n1w += ""; } // f5 = 0; // } // if (tspn2 && f53 == 2) { n1w += ""; } // } // } else if (czr3 == 5 && (czr2 == 2 || czr2 == 4) && !tspn2) { // n1w += ''; // f5 = 0; // } else if (!tspn1 && check5 == 0) { // n1w += ''; // } else if (f53 >= 2 && f52 == 2 && f5 >= 2) { // n1w += ''; // } else { // n1w += ''; // } // } //topbotend } //sevens } else { if (czr4 != 5 && f5 == 0) { cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { cspnafull = 2; n1w += ""; } else { cspnafull = 3; n1w += ""; } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } check5 = 1; } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); check5 = 0; } else { thar = cspn1; } //topbot if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; //topbot if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } } //topbot // if (czr4 == 5 && f5 == 1) { // if (tspn2 && f52 == 0) { // f52 = 1; // n1w += ""; // } // f5 = 2; // if (!tspn2) { // if (f53 >= 2 && f52 == 1) { // n1w += ''; // f52 = 2; // } // n1w += "
"; // } else { // if (f53 <= 2) { n1w += ''; } // n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } //topbot // if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { // n1w += "
"; // } // } else if (tspn2 && f5 == 2) { // f5 = 3; // n1w += ""; n1w += "
"; // } else if (!tspn1 && check5 == 0) { // n1w += ""; } else { //topbot n1w += "
"; // } else if (f53 >= 2 && f52 == 2 && f5 == 2) { // n1w += '
'; // } // cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
"; //tobot if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { cspnafull = cspna + 1; n1w += ""; } else { cspnafull = cspna + 1; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; // cspnhalf = 0; // } // if (tspn2) { n1w += ''; } // // // if (f5 >= 2) { // if (czr2 == 5) { // if (!tspn2) { // n1w += ''; // if (f53 >= 2 && f52 == 2) { f53 = f52 = 0; n1w += ''; } // f5 = 0; // } else { // n1w += ""; // if (f5 == 3) { // if (f53 == 2 && f52 == 1 && tspn55 == 1) { tspn2 = ''; n1w += ""; } else { n1w += ""; } // f5 = 0; // } // if (tspn2 && f53 == 2) { n1w += ""; } // } // } else if (czr3 == 5 && (czr2 == 2 || czr2 == 4) && !tspn2) { // n1w += ''; // f5 = 0; // } else if (!tspn1 && check5 == 0) { // n1w += ''; // } else if (f53 >= 2 && f52 == 2 && f5 >= 2) { // n1w += ''; // } else { // n1w += ''; // // } // } } } jps++; jps1++; if (mox2) { i = twend; //new 04/28 n1w += "
"; // n1w += "
"; n1w += ""; cbr5 = 1; } } else { in8 = (r8e != 1 ? 0 : 1); in5 = 0; if (i == 0) { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sbm2.indexOf("5") == -1) { i = sz.length; } else { in5 = 1; } } } else { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sz2 > 0 && sbm2.indexOf("5") == -1) { i = sz.length; } else if (sz2 <= 0 && sbm && sbm.indexOf("5") == -1) { id5 = 0; } else { in5 = 1; } // if ((sz2 > 0 && sbm2.indexOf("5") == -1) || (sz2 <= 0 && sbm.indexOf("5") == -1)) { // i = sz.length; // } else { // in5 = 1; // } } else { i = sz.length; } } jout = jslimmer2(sbm,1,in8,in5,code2); if (in5 == 1) { // i = sz2 + 1; if (jout != 0) { //new 04/28 n1w += "

"; // n1w += "
"; n1w += ""; cbr5 = 1; } i += jout; } else { i += jout; } } } n1w += '
'; //sixes } else { // n1w += ''; for (var i = 0; i < sz.length; i++) { czr1 = sz.charAt(i); czr4 = (sz.length > i - 1 ? sz.charAt(i-1) : -1); czr45 = (sz.length > i - 2 ? sz.charAt(i-2) : -1); if (rmlt == 1) { if (i == 0 || (i > 1 && czr4 >= 8)) { place = (i != 0 ? i : 1); sz2 = 0; sbm = sz.substring(place,sz.length); if (r9e == 1) { sz2 = sbm.indexOf("9"); } else if (r8e == 1) { sz2 = sbm.indexOf("8"); } if (sz2 >= 0) { sbm = sbm.substring(0,sz2); } if (sbm.indexOf("5") >= 0) { subfive = 1; } else { subfive = 0; } } } else { subfive = 1; } if (subfive == 1) { if (czr1 != 1 && czr1 != 3) { continue; } czr2 = (sz.length > i + 1 ? sz.charAt(i+1) : -1); czr3 = (sz.length > i + 2 ? sz.charAt(i+2) : -1); mox2 = 0; if (rmlt == 1) { czr5 = (sz.length > i + 3 ? sz.charAt(i+3) : -1); czr8 = (i > 1 ? sz.charAt(i-2) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { mox2 = 1; twend = i; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? i + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); } } if (czr4 == 8 || czr8 == 8) { fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; czr6 = 0; for (var j = i+1; j < sz.length; j++) { czr7 = sz.charAt(j); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 2; } else if (czr7 == 2 || czr7 == 4) { czr6 += 1; } } if (cbr5 == 1) { n1w += "" + dq14[jps3] + ""; } else { n1w += "" + dq14[jps3] + ""; } jps3++; } else if (czr4 == 9 || czr8 == 9) { if (cbr5 == 1) { n1w += ''; } fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; } } if (czr4 == 5 || (czr4 == 6 && czr45 == 5)) { if (i > 2) { tspn55 = sz.substring(i-3,i); if (tspn55.indexOf("555") == -1) { fives = (fives == 1 ? 0 : 1); } } else { fives = (fives == 1 ? 0 : 1); } } tspn5 = ''; cspn5 = sz.substring(i); if (cspn5.indexOf("5") >= 0) { if (rmlt == 0) { tspn5 = 1; } else { five1 = cspn5.indexOf("5"); multi8 = cspn5.indexOf("8"); multi9 = cspn5.indexOf("9"); if (multi8 > -1) { tspn5 = (five1 < multi8 ? 1 : 0); } else { tspn5 = (five1 < multi9 ? 1 : 0); } } } else if (f53 != 1) { f5 = 0; } if (f5 == 0 && (czr4 == 5 || (czr4 == 6 && czr45 == 5))) { f5 = 1; f53++; } twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if ((czr4 != 5 && f5 == 0) || (!tspn5 && fives == 0)) { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (dq1[jps]) { jpse = jps; } //withsubs if (!dq11[jps]) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],'',dq13[jps],twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate3(jps,dq3[jps],j,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,'',dq15[jps],dq18[jps],'','',''); } // else { n1w += "" + twra + "" + twrb; } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; var cspn111; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); thar = cspn1; } else { thar = czr1; } if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 2; cspnb = 3; } } cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; //topbot if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnafull = newcspna = (cspna == 2 ? 6 : 4); newcspna2 = (cspna == 2 ? 5 : 3); cspnar = 1; n1w += ""; // + twrb; } else if (dq9[jps1] != '
') { cspnafull = cspna + 1; if (cspnhalf == 0) { n1w += ""; // + twrb; } else { if (dq10[jps1] == 0) { n1w += ""; // + twrb; // n1w += ""; // + twrb; } else { n1w += ""; // + twrb; // n1w += ""; // + twrb; } } } else if (dq9[jps1] == '
') { cspnar = 2; } } else { cspnafull = 0; n1w += ""; // " + twrb; } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + "
" + dq9[jps1] + "
" + dq9[jps1] + "
" + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (!dq11[jps]) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],twrd,dq13[jps],twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate3(jps,dq3[jps],j,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,1,dq15[jps],dq18[jps],'','',''); } } } n1w += "" + twrb; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } //sevens } else { if (czr4 != 5 && f5 == 0) { //topbot n1w += ""; n1w += ""; n1w += "
"; if (czr2 != 2 && czr2 != 4) { cspnafull = 2; n1w += ""; } else { cspnafull = 3; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); } else { thar = cspn1; } //topbot if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; //topbot if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } } // if ((czr4 == 5 || (czr4 == 6 && czr45 == 5)) && f5 == 1) { // if (tspn2 && f52 == 0) { // f52 = 1; // n1w += ""; // } // f5 = 2; // if (!tspn2) { // if (f53 >= 2 && f52 == 1) { // n1w += ''; // f52 = 2; // } // n1w += ""; // cspnhalf = 0; // } // if (tspn2) { n1w += '
"; // } else if (dq10[jps] != -3.5) { // if (f53 <= 2) { n1w += ''; } // n1w += "
"; // } else if (dq10[jps] == 0 && dq10[jps+1] && dq10[jps+1] == -1.5) { // n1w += ""; // } // } else if (tspn2 && f5 == 2) { // f5 = 3; // n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } // if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { // n1w += "
"; // } else { // if (dq10[jps] < 0 || (dq10[jps] == 0 && dq10[jps+1] && dq10[jps+1] == -1.5)) { // n1w += ""; n1w += "
"; // } else { // if (!tspn1 && check5 == 0) { // n1w += ""; } else { //topbot n1w += "
"; // } else if (f53 >= 2 && f52 == 2 && f5 == 2) { // n1w += '
'; // } // } // } cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
"; //topbot if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { cspnafull = cspna + 1; n1w += ""; // + twrb; } else { cspnafull = 0; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

'; } // if (f5 >= 2) { // if (czr2 == 5) { // if (!tspn2) { // n1w += ''; // if (f53 >= 2 && f52 == 2) { f53 = f52 = 0; n1w += ''; } // f5 = 0; // } else { // n1w += ""; // if (dq10[jps] != -3.5) { // if (f5 == 3) { // if (f53 == 2 && f52 == 1 && tspn55 == 1) { tspn2 = ''; n1w += ""; } else { n1w += ""; } // f5 = 0; // } // if (tspn2 && f53 == 2) { n1w += ""; } // } // } // if (dq10[jps] == -3.5 && dq10[jps+1] != null && (dq10[jps+1] == 0 || dq10[jps+1] == -8)) { // n1w += ""; // if (dq10[jps+1] == -8) { // n1w += ''; // } // } // // } else if (czr3 == 5 && (czr2 == 2 || czr2 == 4) && !tspn2) { // n1w += ''; // f5 = 0; // } else if (czr3 == 5 && (czr2 == 2 || czr2 == 4) && !tspn2) { // n1w += ''; // f5 = 0; // } else if (!tspn1 && check5 == 0) { // n1w += ''; // } else if (f53 >= 2 && f52 == 2 && f5 >= 2) { // n1w += ''; // } else { // n1w += ''; // // } // } } } jps++; jps1++; if (mox2) { i = twend; //new 04/28 n1w += "
"; // n1w += "
"; n1w += ""; cbr5 = 1; // break; } } else { in8 = (r8e != 1 ? 0 : 1); in5 = 0; if (i == 0) { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sbm2.indexOf("5") == -1) { i = sz.length; } else { in5 = 1; } } } else { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sz2 > 0 && sbm2.indexOf("5") == -1) { i = sz.length; } else if (sz2 <= 0 && sbm && sbm.indexOf("5") == -1) { id5 = 0; } else { in5 = 1; } // if ((sz2 > 0 && sbm2.indexOf("5") == -1) || (sz2 <= 0 && sbm.indexOf("5") == -1)) { // i = sz.length; // } else { // in5 = 1; // } } else { i = sz.length; } } jout = jslimmer2(sbm,1,in8,in5,code2); if (in5 == 1) { // i = sz2 + 1; if (jout != 0) { //new 04/28 n1w += "

"; // n1w += "
"; n1w += ""; cbr5 = 1; } i += jout; } else { i += jout; } } } } } function jslimmer2(sz,inout,in8,in5,code2) { var f5 = f52 = f53 = pricon = 0; var rgen = 0; var rmlt = 0; var r9e = 0; var r8e = 0; var r5e = 0; var r6e = 0; var dq20null = ''; var cspn1, cspna, cspnb, cspnc, cwdth, czr1, czr2, czr3, czr4, czr5, czr6, czr7, here, mox, mox1, mox2, thar, tspn1, tspn2, twra, twrb, twrc, twend, tline, cspnhalf, cspnafull, cspnar; cspnhalf = 0; cspnafull = 0; cspnar = 0; if (in5 == null) { in5 = 0; } sz = "" + sz; if (sz.indexOf("9") >= 0) { rgen = rmlt = r9e = 1; } if (sz.indexOf("8") >= 0) { rgen = rmlt = r8e = 1; } if (sz.indexOf("6") >= 0) { rgen = r6e = 1; } if (sz.indexOf("5") >= 0) { rgen = r5e = 1; } if (rmlt == 0) { twend = sz.lastIndexOf("1"); if (sz.lastIndexOf("2") > twend) { twend = sz.lastIndexOf("2"); } if (sz.lastIndexOf("3") > twend) { twend = sz.lastIndexOf("3"); } if (sz.lastIndexOf("4") > twend) { twend = sz.lastIndexOf("4"); } } td1 = (sz.length != 1 ? '' : ''); var jps10 = pls2 = pls4 = jstart = jps1 = jps; var czr1a = jps11 = 0; if (inout == null || !inout) { inout = 0; } if (inout == 1) { for (var j = 0; j < sz.length; j++) { czr1a = sz.charAt(j); if (czr1a != 1 && czr1a != 3) { continue; } jps10++; jps11++; } } var jout = loops = looper = pls22 = pls44 = pls3 = offnine = 0; if (r6e == 0) { for (var i = jstart; i < dq1.length; i++) { if (!dq1[i]) { continue; } tline = ''; offnine = 0; if (in5 == 1 && pls44 == jps11) { break; } // if (in5 == 1 && jps >= sz.length) { break; } for (var j = loops; j < sz.length; j++) { czr1 = sz.charAt(j); if ((rmlt == 1 && czr1 >= 8) || in8 == 1) { if (offnine == 1) { break; } if (offnine == 0) { offnine = 1 ; } if (czr1 == 8 || in8 == 1) { czr6 = 0; for (var k = j+1; k < sz.length; k++) { czr7 = sz.charAt(k); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 2; } else if (czr7 == 2 || czr7 == 4) { czr6 += 1; } } n1w += ""; jps3++; if (j == 0) { in8 = 0; } } } } // n1w += ''; for (var j = loops; j < sz.length; j++) { jout = j; czr1 = sz.charAt(j); if (czr1 != 1 && czr1 != 3) { continue; } pls3++; czr2 = (sz.length > j + 1 ? sz.charAt(j+1) : -1); czr3 = (sz.length > j + 2 ? sz.charAt(j+2) : -1); czr4 = (sz.length > j - 1 ? sz.charAt(j-1) : -1); mox2 = 0; if (rmlt == 1) { twend = -1; czr5 = (sz.length > j + 3 ? sz.charAt(j+3) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { looper = j + 1; mox2 = 1; twend = j; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { looper = j + 2; mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? j + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { looper = j + 3; mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); } } } twrd = (pls22 == 0 ? 1 : 0); twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } cspnafull = 0; if (inout == 1 && !dq2[jps]) { break; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
" + dq14[jps3] + "
"; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } // n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { n1w += "
  " + dq9[jps1] + " 
"; if (cspnar != 1) { n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate1(jps,dq3[jps],k,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate1(jps,dq3[jps],k,dq2[jps],'',dq13[jps],'',1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,dq13[jps],'','',jps); } } } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { n1w += "

"; } } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
"; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } //sevens } else { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { cspnafull = 2; n1w += ""; } else { cspnafull = 3; n1w += ""; } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (czr4 != 7) { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate2(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } else { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate4(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } jps++; jps1++; pls22++; if (mox2 == 1) { //new 04/28 n1w += "
"; // n1w += "
"; n1w += ""; loops = looper; mox2 = 0; if (inout == 1) { jout = looper + 1; return(jout); } break; } } pls44 = pls22; } if (inout == 1) { jps = jps10; } //sixes } else { for (var i = jstart; i < dq1.length; i++) { if (!dq1[i]) { continue; } tline = ''; offnine = 0; if (in5 == 1 && pls44 == jps11) { break; } for (var j = loops; j < sz.length; j++) { czr1 = sz.charAt(j); if ((rmlt == 1 && czr1 >= 8) || in8 == 1) { if (offnine == 1) { break; } if (offnine == 0) { offnine = 1 ; } if (czr1 == 8 || in8 == 1) { czr6 = 0; for (var k = j+1; k < sz.length; k++) { czr7 = sz.charAt(k); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 1; } else if (czr7 == 2 || czr7 == 4) { } } n1w += ""; jps3++; if (j == 0) { in8 = 0; } } } } n1w += ''; for (var j = loops; j < sz.length; j++) { jout = j; czr1 = sz.charAt(j); if (czr1 != 1 && czr1 != 3) { continue; } czr2 = (sz.length > j + 1 ? sz.charAt(j+1) : -1); czr3 = (sz.length > j + 2 ? sz.charAt(j+2) : -1); czr4 = (sz.length > j - 1 ? sz.charAt(j-1) : -1); mox2 = 0; if (rmlt == 1) { twend = -1; czr5 = (sz.length > j + 3 ? sz.charAt(j+3) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { looper = j + 1; mox2 = 1; twend = j; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { looper = j + 2; mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? j + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { looper = j + 3; mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); } } } twrd = (pls22 == 0 ? 1 : 0); twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } cspnafull = 0; if (inout == 1 && !dq2[jps]) { break; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
" + dq14[jps3] + "
"; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (!dq11[jps]) { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate1(jps,dq3[jps],k,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate1(jps,dq3[jps],k,dq2[jps],'',dq13[jps],'',1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,dq13[jps],'','',jps); } } } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate3(jps,dq3[jps],k,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,1,dq15[jps],dq18[jps],'','',''); } } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } //sevens } else { //topbot n1w += ""; n1w += ""; n1w += "
"; cspnafull = 0; if (czr2 != 2 && czr2 != 4) { cspnafull = 1; n1w += ""; } else { cspnafull = 2; n1w += ""; } if (cspnafull > 0) { n1w += ""; } //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
"; } if (czr4 != 7) { if (!dq11[jps]) { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate2(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate3(jps,dq3[jps],k,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,twrd,dq15[jps],dq18[jps],'','',''); } } } } } else { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate4(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],td1,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],td1,twrb,1,dq15[jps],dq18[jps],'','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; } jps++; jps1++; pls22++; if (mox2 == 1) { n1w += "
"; n1w += ""; loops = looper; mox2 = 0; if (inout == 1) { jout = looper + 1; return(jout); } break; } } n1w += ''; pls44 = pls22; } if (inout == 1) { jps = jps10; } } if (inout == 1) { return(jout); } } function a1() { w1h = 490; n_0 = ld1; ck0 = ""; c_h0 = wu1; c0 = extras500_0; c0p = extras500_0p; w1d = 335; icol_a = 1; icol_b = 3; dq1 = new Array(extras500_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array(c0p,''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a2() { w1h = 490; n_0 = ld2; q0 = "c0"; qa0 = 4; qamin0 = 4; qanumon0 = 1; ck0 = ""; c_h0 = wu2; c0 = extras512_0; v0 = c0; w1d = 331; icol_a = 1; icol_b = 3; dq1 = new Array(extras512_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(1,0); dq19 = new Array('',''); } function a3() { w1h = 490; n_0 = ld1; ck0 = ""; c_h0 = wu1; c0 = extras500_0; c0p = extras500_0p; w1d = 335; icol_a = 1; icol_b = 3; dq1 = new Array(extras500_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array(c0p,''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a4() { w1h = 490; n_0 = ld3; q0 = "c0"; qa0 = 8; qamin0 = 8; qanumon0 = 1; ck0 = ""; c_h0 = wu2; c0 = extras512_0; v0 = c0; w1d = 331; icol_a = 1; icol_b = 3; dq1 = new Array(extras512_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(1,0); dq19 = new Array('',''); } function a5() { w1h = 490; n_0 = ld1; ck0 = ""; c_h0 = wu1; c0 = extras500_0; c0p = extras500_0p; w1d = 335; icol_a = 1; icol_b = 3; dq1 = new Array(extras500_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array(c0p,''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a6() { w1h = 490; n_0 = ld4; q0 = "c0"; qa0 = 12; qamin0 = 12; qanumon0 = 1; ck0 = ""; c_h0 = wu2; c0 = extras512_0; v0 = c0; w1d = 331; icol_a = 1; icol_b = 3; dq1 = new Array(extras512_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(1,0); dq19 = new Array('',''); } function a7() { w1h = 490; n_0 = ld1; ck0 = ""; c_h0 = wu1; c0 = extras500_0; c0p = extras500_0p; w1d = 335; icol_a = 1; icol_b = 3; dq1 = new Array(extras500_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array(c0p,''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a8() { w1h = 490; n_0 = ld5; q0 = "c0"; qa0 = 20; qamin0 = 20; qanumon0 = 1; ck0 = ""; c_h0 = wu2; c0 = extras512_0; v0 = c0; w1d = 331; icol_a = 1; icol_b = 3; dq1 = new Array(extras512_0,''); dq2 = new Array(c0,''); dq3 = new Array(ck0,''); dq4 = new Array('',''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,0); dq18 = new Array(1,0); dq19 = new Array('',''); } function a9() { w1h = 490; n_0 = ld6; ck0 = cx1; r_h0 = wu3; r0 = radio100_0; w1d = 300; icol_a = 1; icol_b = 3; dq1 = new Array(radio100_0); dq2 = new Array(r0,''); dq3 = new Array(ck0,''); dq4 = new Array(r0r,''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('',''); dq16 = new Array('0',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a10() { w1h = 490; n_0 = ld7; ck0 = cx1; r_h0 = wu4; r0 = radio101_0; ar_len001 = radio101_0; n_1 = ld8; ck1 = cx1; r_h1 = wu5; r1 = radio89_0; ar_len011 = radio89_0; w1d = 331; icol_a = 2; icol_b = 4; dq1 = new Array(radio101_0,radio89_0); dq2 = new Array(r0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array(r0r,r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('',''); dq16 = new Array('0','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a11() { w1h = 490; n_0 = ld9; ck0 = cx1; r_h0 = wu6; r0 = radio111_0; w1d = 300; icol_a = 1; icol_b = 3; dq1 = new Array(radio111_0,''); dq2 = new Array(r0,''); dq3 = new Array(ck0,''); dq4 = new Array(r0r,''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('',''); dq16 = new Array('0',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a12() { w1h = 490; n_0 = ld10; r0r = 1; ck0 = cx1; r_h0 = wu7; r0 = salad114_0; w1d = 300; icol_a = 1; icol_b = 3; dq1 = new Array(salad114_0,''); dq2 = new Array(r0,''); dq3 = new Array(ck0,''); dq4 = new Array(r0r,''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('',''); dq16 = new Array('0',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a13() { w1h = 490; n_0 = ld10; r0r = 1; ck0 = cx1; r_h0 = wu7; r0 = salad114_0; w1d = 300; icol_a = 1; icol_b = 3; dq1 = new Array(salad114_0,''); dq2 = new Array(r0,''); dq3 = new Array(ck0,''); dq4 = new Array(r0r,''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('7',''); dq16 = new Array('0',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a14() { w1h = 490; n_0 = ld10; r0r = 1; ck0 = cx1; r_h0 = wu7; r0 = salad114_0; w1d = 300; icol_a = 1; icol_b = 3; dq1 = new Array(salad114_0,''); dq2 = new Array(r0,''); dq3 = new Array(ck0,''); dq4 = new Array(r0r,''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('',''); dq16 = new Array('0',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a15() { w1h = 490; n_0 = ld10; r0r = 1; ck0 = cx1; r_h0 = wu7; r0 = salad114_0; w1d = 300; icol_a = 1; icol_b = 3; dq1 = new Array(salad114_0,''); dq2 = new Array(r0,''); dq3 = new Array(ck0,''); dq4 = new Array(r0r,''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('',''); dq16 = new Array('0',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a16() { w1h = 490; n_0 = ld10; r0r = 1; ck0 = cx1; r_h0 = wu7; r0 = salad114_0; w1d = 300; icol_a = 1; icol_b = 3; dq1 = new Array(salad114_0,''); dq2 = new Array(r0,''); dq3 = new Array(ck0,''); dq4 = new Array(r0r,''); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,''); dq10 = new Array(0,''); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('',''); dq15 = new Array('',''); dq16 = new Array('0',''); dq17 = new Array(1,0); dq18 = new Array(0); dq19 = new Array('',''); } function a17() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a18() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a19() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a20() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a21() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a22() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a23() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a24() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a25() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a26() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a27() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a28() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a29() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function a30() { w1h = 490; n_0 = ld11; ck0 = ""; c_h0 = wu8; c0 = extras112_0; n_1 = ld12; ck1 = cx1; r_h1 = wu9; r1 = radio113_0; w1d = 375; icol_a = 2; icol_b = 4; dq1 = new Array(extras112_0,''); dq2 = new Array(c0,r1); dq3 = new Array(ck0,ck1); dq4 = new Array('',r1r); dq5 = new Array('',''); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0',''); dq15 = new Array('',''); dq16 = new Array('','0'); dq17 = new Array(1,1); dq18 = new Array(); dq19 = new Array('',''); } function wier(ider) { window[ider](); } function offsider() { q0 = 0; dq15 = 0; dq3 = 0; ar_len001 = 0; dq14 = 0; dq12 = 0; dq4 = 0; dq10 = 0; ar_len011 = 0; r1 = 0; dq1 = 0; dq2 = 0; ar_len0 = 0; tbl21 = 0; dq7 = 0; vv0 = 0; v0 = 0; tbl10 = 0; r0 = 0; dq16 = 0; dq13 = 0; dq5 = 0; qq0 = 0; ck0 = 0; r0r = 0; n_1 = 0; dq9 = 0; c0 = 0; dq11 = 0; dq6 = 0; r1r = 0; n_0 = 0; c0p = 0; tbl11 = 0; tbl20 = 0; dq8 = 0; ck1 = 0; } function SuperItem(i,d,dd,p,c,sized,ider) { this.itemno = i; this.desc = d; this.basedesc = d; this.dsub = dd; this.price = p; this.baseprice = p; this.code = c; this.tracker = new Array(); this.sz = sized; this.ider = ider; } function radiate1(znum,zcheck,zeye,ztype,zrad,zadd,zend,zback,defset,zcsstag,zmdesc) { var zbegin = (!znum || zback ? "" : ''); var plus = 0; if (prearray) { plus = znum; zcheck = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '' : ' CHECKED'); } if (!zrad[zeye]) { return; } if ((!prearray || prearray == null) && defset != null && defset) { zcheck = ''; var defshow = ''; var defshow2 = ''; var defstring = ''; for (var j = 0; j < defset.length; j++) { defshow = defset.charAt(j); if (defshow == ",") { defstring = ""; continue; } else { defstring = defstring + defshow; if (j != defset.length - 1) { defshow2 = defset.charAt(j+1); if (defshow2 == ",") { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } else { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } // deftring = ""; // defshow = defset.charAt(j); // if (defshow == ",") { // continue; // } else { // if (zeye == defshow - 1) { // zcheck = ' CHECKED'; // break; // } // } } } if (!ztype) { n1w += "" + zbegin + ""; } else { if (zeye < zrad.length - ztype) { n1w += "" + zbegin + ""; } else { n1w += "" + zbegin + ""; } } n1w += "" + zadd + zend; } function checkerate1(znum,zcheck,zeye,zrad,zadd,zshort,zend,zback,defset,znumon,subset,zcsstag,zmdesc) { var zbegin = (!znum || zback ? "" : ''); var plus = 0; var ckz = zcheck; var znumon2 = (!znumon || znumon == null ? '0' : znumon); if (!znumon || znumon == 0) { if (prearray) { plus = znum; ckz = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '' : ' CHECKED'); } if (!zrad[zeye]) { return; } if ((!prearray || prearray == null) && defset != null && defset) { ckz = ''; var defshow = ''; var defshow2 = ''; var defstring = ''; for (var j = 0; j < defset.length; j++) { defshow = defset.charAt(j); if (defshow == ",") { defstring = ""; continue; } else { defstring = defstring + defshow; if (j != defset.length - 1) { defshow2 = defset.charAt(j+1); if (defshow2 == ",") { if (zeye == defstring - 1) { ckz = ' CHECKED'; break; } } } else { if (zeye == defstring - 1) { ckz = ' CHECKED'; break; } } } } // var defshow = ''; // var defstring = ''; // for (var j = 0; j < defset.length; j++) { // deftring = ""; // defshow = defset.charAt(j); // if (defshow == ",") { // continue; // } else { // if (zeye == defshow - 1) { // ckz = ' CHECKED'; // break; // } // } // } } if (zshort == 0) { n1w += "" + zbegin + ""; n1w += "" + zadd + zend; } else if (zshort == 1) { n1w += "" + zbegin + ""; n1w += ""; n1w += "" + zadd + zend; } else if (zshort == 1) { n1w += "" + zbegin + ""; n1w += "" + zend; } else { n1w += "" + zend; } } else { if (!doubleprices || doubleprices == 0 || !zshort || zshort != 1) { if (zrad[zeye] != 0 && (!zpshow || zpshow == null)) { n1w += "" + cent(zrad[zeye]) + " " + zend; } else { n1w += " " + zend; } } else { if (dq13[jps-1] == 2) { dpchg = dq5[jps-1][zeye]; } else { dpchg = dq5[jps-2][zeye]; } if (zrad[zeye] != 0 && (!zpshow || zpshow == null)) { n1w += "" + cent(dpchg) + " " + zend; } else { n1w += " " + zend; } } } } function upadd(id,id2) { if (!id) { OW.document.order.qtyy.value = OW.document.order.qtyy.value; } else { OW.document.order.qtyy.value = OW.document.order.qtyy.value; } return 1; } var imgbkgr = ""; function showPizzaWin(itemno,d1,d2,price,code,qt,sz,ider,nomen,ineo) { var desc, owinqty = 1; var qwinmtch = 0; var dsub = ''; var nug = navigator.userAgent; op = ''; ropez = 0; nomon = ''; ineon = ""; if (d1 >= 0 || d1 == -2) { if (d1 != -2) { desc = fds[d1][d2]; dsub = fds[d1][4]; } else { desc = d2; dsub = itemno; } nomen = 'Name'; ineo = 'Comment'; nomon = 1; ineon = 2; } else { owinqty = items[p1n].quantity; desc = d2; //new dsub = items[p1n].dsub; // dsub = items[p1n].dsub; nomon = 0; ineon = 0; } n1w = ''; var here, storage, caboose, plus; if (!prearray) { p1n = 0; } var comma = '"'; if (desc.indexOf("^") >= 0) { for ( var i = 0; i < desc.length; i++ ) { if (desc.indexOf("^") >= 0) { here = desc.indexOf("^"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + comma + caboose; } else { break; } } } if (desc.indexOf("`") >= 0) { for ( var i = 0; i < desc.length; i++ ) { if (desc.indexOf("`") >= 0) { here = desc.indexOf("`"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + "'" + caboose; } else { break; } } } if (dsub && dsub != '') { here = 0; if (dsub.indexOf("^") >= 0) { for ( var j = 0; j < dsub.length; j++ ) { if (dsub.indexOf("^") >= 0) { here = dsub.indexOf("^"); storage = dsub.substring(0,here); here += 1; caboose = dsub.substring(here,dsub.length); dsub = "" + storage + comma + caboose; } else { break; } } } if (dsub.indexOf("`") >= 0) { for ( var j = 0; j < dsub.length; j++ ) { if (dsub.indexOf("`") >= 0) { here = dsub.indexOf("`"); storage = dsub.substring(0,here); here += 1; caboose = dsub.substring(here,dsub.length); dsub = "" + storage + "'" + caboose; } else { break; } } } } icol_a = 0; icol_b = 0; subprice = price; w1d = 0; w1h = 0; mimic = ''; needle = 0; namehasher(); offsider(); var flcrt = 0; if (full_scrn == 1 && (sz.indexOf("9") >= 0 || sz.indexOf("8") >= 0)) { flcrt = 1; } wier('a'+ider); jh = screen.availHeight; jw = screen.availWidth; if (w1h >= jh - 10 || flcrt == 1) { if (full_scrn == 0) { w1h = jh - (jh / 8.5); w1h = Math.round(w1h); } else { w1h = jh; } } if (w1d >= jw - 10) { if (full_scrn == 0) { w1d = jw - (jw / 14); w1d = Math.round(w1d); } else { w1d = jw; } } var sw = 50; if (w1d > screen.availWidth - 100) { sw = screen.availWidth - w1d - 25; if (sw < 0) { sw = 0; } } // OW = window.open("","newwin","resizable=yes,scrollbars=yes,width=" + w1d + ",height=" + w1h + ",screenX=" + sw + ",screenY=10"); oP = new SuperItem(itemno,desc,dsub,price,code,sz,ider); oP.basedesc = mr_clean(oP.basedesc); var swtchx = swtchx2 = ''; if (dq17 && dq17.length > 0) { for (var i = 0; i < dq17.length; i++) { if ((!dq17[i] || dq17[i] == 0) || prearray) { swtchx += "" + i + ","; } } swtchx2 = swtchx.substring(0,swtchx.length-1); } else if (prearray) { for (var i = 0; i < dq2.length; i++) { swtchx += "" + i + ","; } swtchx2 = swtchx.substring(0,swtchx.length-1); } n1w += ''; // n1w += ""; n1w += "" + desc + ""; n1w += "\n"; n1w += "/***********************************************\n"; n1w += "* Switch Content script- (c) Dynamic Drive (www.dynamicdrive.com)\n"; n1w += "* This notice must stay intact for legal use.\n"; n1w += "* Visit http://www.dynamicdrive.com/ for full source code\n"; n1w += "***********************************************/\n"; n1w += ""; n1w += ""; n1w += ''; if (franco == 0) { n1w += '' + ""; } else { n1w += '' + ""; } n1w += "
" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "
" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "  " + zadd + zend; } else { n1w += "" + zbegin; n1w += "" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "  " + zadd + zend; } } else { if (prearray) { plus = znum; ckz = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '0' : prearray[plus][zeye]); } if (!ckz || ckz == null) { ckz = '0'; } if (!zrad[zeye]) { return; } if (zshort == 0) { n1w += "" + zbegin + "" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "  " + zadd + zend; } else { n1w += "" + zbegin; n1w += "" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "  " + zadd + zend; } } } var doubleprices = 0; var dpchg = 0; function radcheck1(zrad,zeye,zend,zshort,zpshow,zcsstag,jps) { if (zrad[zeye] == undefined) { return; } if (!zshort || zshort == 0) { if (zrad[zeye] != 0 && (!zpshow || zpshow == null)) { n1w += "" + cent(zrad[zeye]) + "  
"; if (callcent == 1) { if (site_wnmr == 1) { itemno = ''; } } var widecol = icol_a + 2; n1w += ""; n1w += "
"; var fxsb = ""; var ico1 = "/icons/romasmd_add.gif"; var ico2 = "/icons/minus.gif"; var ico3 = ""; var up1 = "/icons/arrow.gif"; var up2 = "/icons/arrow2.gif"; var sxt1 = ""; var sxb1 = ""; var sxt = ""; var sxb = ""; var sxc = ""; var mstr = new Array(4,1,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0); var sxs = new Array(new Array("Pizza"," - 4-Large Pizzas (8 to 10 Person), 8-Large Pizzas (16 to 20 Person), 12-Large Pizzas (25 to 30 Person), 20-Large Pizzas (45 to 50 Person)","GF1"),new Array("Finger Foods","","GF2"),new Array("Jumbo Wings","","GF3"),new Array("Authentic Pasta","","GF4"),new Array("Salad Bowls","","GF5"),new Array("Sandwich or Wrap Trays","","GF6"),new Array("Desserts","","GF7"),new Array("Beverages","","GF8")); var hds = new Array(""); var bg = "
" + desc + "
" + cent(price) + "
"; n1w += "
"; n1w += ""; if (dsub) { n1w += dsub; } n1w += "
"; datelist = ''; if (calmod) { n1w += ""; } n1w += ""; oP.price = subprice; jslim(sz,code); n1w += "

"; n1w += "
Name
"; if (nomen == 'Name') { nomen = ''; } if (!nomen) { nomen = ''; nomon = 0; } n1w += "
"; n1w += "
"; } n1w += "Clear   Cancel
"; // n1w += "
"; var nuz5 = navigator.userAgent; n1w += "
"; if ((popupless == 0 && (nuz5.indexOf("MSIE") == -1 || nuz5.indexOf("MSIE 9") != -1 || nuz5.indexOf("MSIE 1") != -1)) || (popupless == 1 && nuz5.indexOf("MSIE") != -1) ) { n1w += "\n"; n1w += "var swgrpe=new switchcontent('switchgroup1', 'div');\n"; n1w += "swgrpe.setStatus(' ', ' ');\n"; n1w += "swgrpe.setColor('darkred', 'black');\n"; n1w += "swgrpe.collapsePrevious(false);\n"; n1w += "swgrpe.defaultExpanded(" + swtchx2 + ")\n"; n1w += "swgrpe.init();\n"; n1w += ""; n1w += ""; } var thecss = new Array(); if (parent.document.styleSheets && parent.document.styleSheets[0]) { if (parent.document.styleSheets[0].cssRules) { thecss = parent.document.styleSheets[0].cssRules; } else { thecss = parent.document.styleSheets[0].rules; } for (var i = 0; i < thecss.length; i++) { if (thecss[i].selectorText && thecss[i].selectorText.toLowerCase() == '.olcg') { thecss[i].style.cssText="background-Color:#ED1B24; color:#ffffff; text-align: center;"; break; } } } parent.overlib(parent.OLiframeContent('/icons/menuaol.html',450,540,'csspop',1,'auto'),parent.WIDTH,450,parent.TEXTPADDING,0,parent.BORDER,2,parent.STICKY,parent.DRAGGABLE,parent.CLOSECLICK,parent.CAPTIONPADDING,4,parent.CAPTION,desc,parent.CGCLASS,'olcg',parent.NOJUSTY,parent.NOJUSTX,parent.RELY,50,parent.MIDX,0,parent.BGCLASS,'round',parent.CLOSEFONTCLASS,'overclose',parent.CAPTIONFONTCLASS,'overclose2',CLOSETEXT,'\'Close\''); var ifrmr = parent.document.getElementById("csspop"); var ifrmdoc = ifrmr.contentDocument; if (ifrmdoc == undefined || ifrmdoc == null) { ifrmdoc = ifrmr.contentWindow.document; } ifrmdoc.open(); ifrmdoc.write(n1w); ifrmdoc.close(); OW = ifrmr.contentWindow; return; } function closer() { } function preshowPizzaWin(id) { prearray = items[id].tracker; p1n = id; updatemenuorder(1); parent.showPizzaWin(items[id].itemno,-1,items[id].basedesc,items[id].baseprice,items[id].code,1,items[id].sz,items[id].ider,items[id].nomen,items[id].ineo); } function checkertoo(veni,vie,vidi,vex,vici,vimin,vnumon) { var uno = 0, dos = 0; var sh = OW.document.order.elements; var elm = '', jsnumon = 0; var domlen = sh.length; for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == veni + "_" + uno) { if (!vnumon || vnumon == 0) { if (elm.checked == true) { dos++; } } else { if (elm.value && elm.value >= 0) { jsnumon = elm.value - 0; dos += jsnumon; } } if (uno == vie.length - 1) { break; } uno++; } } uno = 0; if (vidi && vex) { for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == vidi + "_" + uno) { if (!vnumon || vnumon == 0) { if (elm.checked == true) { dos++; } } else { if (elm.value && elm.value >= 0) { jsnumon = elm.value - 0; dos += jsnumon; } } if (uno == vex.length - 1) { break; } uno++; } } } if (vimin != null && vimin > 0) { if (dos < vimin) { if (OW != null) { OW.alert("You need to pick at least " + vimin + " subitem(s)!"); } else if (AOW2 != null) { AOW2.alert("You need to pick at least " + vimin + " subitem(s)!"); } else { alert("You need to pick at least " + vimin + " subitem(s)!"); } // alert("You need to pick at least " + vimin + " subitem(s)!"); return 1; } } if (dos > vici) { if (OW != null) { OW.alert("You have picked " + (dos - vici) + " too many items!"); } else if (AOW2 != null) { AOW2.alert("You have picked " + (dos - vici) + " too many items!"); } else { alert("You have picked " + (dos - vici) + " too many items!"); } // alert("You have picked " + (dos - vici) + " too many items!"); return 1; } else { return 0; } } function extras_side(sos) { var tst = 0; var plus = 0, two = 0; var sa0, sa, s0s; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; if (!sos) { sa = 'r0'; sa0 = r0; s0s = r0r; } else if (sos == 1) { sa = 'r1'; sa0 = r1; s0s = r1r; } else if (sos == 2) { sa = 'r2'; sa0 = r2; s0s = r2r; } for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == sa || elm.name == sa + "_" + plus) { if (!tst) { if (plus == sa0.length - s0s - 1) { if (elm.checked == true) { tst = 1; } } } else { elm.checked = false; } plus++; if (sa0.length == plus) { break; } } } } function t_t(id,aa,a0,a_h,a0p,a0a) { var plus = 0, two = 0, mtchd = 0; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; oP.tracker[id] = new Array(); for (var i = 0; i < a0.length; i++) { oP.tracker[id][i] = 0; } for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == aa) { if (elm.checked == true) { if (a_h.indexOf("With:") >= 0 && !needle) { if (mimic) { mimic = ''; } op += a_h; needle = true; } else if (a_h.indexOf("With:") < 0) { if (needle) { needle = false; } if (a_h == mimic) { a_h = ''; } op += a_h; if (a_h) { mimic = a_h; } a_h = ''; } mtchd++; op += a0[plus] + "; "; // op += a0[plus] + "; "; oP.tracker[id][plus] = 1; if (a0p) { oP.price += a0p[plus]; } if (!a0a) { break; } } plus++; } else if (elm.name == aa + "_" + plus) { if (a0a) { two++; if (elm.checked == true) { if (mtchd == 0) { if (a_h.indexOf("With:") >= 0 && !needle) { if (mimic) { mimic = ''; } op += a_h; needle = true; } else if (a_h.indexOf("With:") < 0) { if (needle) { needle = false; } if (a_h == mimic) { a_h = ''; } op += a_h; if (a_h) { mimic = a_h; } a_h = ''; } mtchd++; } op += a0[plus] + "; "; // op += a0[plus] + "; "; oP.tracker[id][plus] = 1; if (a0p && a0p[plus] > 0) { oP.price += a0p[plus]; } } if (two == a0a) { break; } } plus++; } if (a0.length == plus) { break; } // if (a0.length == plus) { break; } } } function t_c(id,bb,b0,bk0,b_h,b0p) { var plus = 0; var test; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; oP.tracker[id] = new Array(); for (var i = 0; i < b0.length; i++) { oP.tracker[id][i] = 0; } for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == bb + plus) { test = true; if (bk0) { test = false; } if (elm.type == "checkbox") { if (elm.checked == test) { if (b_h.indexOf("With:") >= 0 && !needle) { if (mimic) { mimic = ''; } op += b_h; needle = true; } else if (b_h.indexOf("With:") < 0) { if (needle) { needle = false; } if (b_h == mimic) { b_h = ''; } op += b_h; if (b_h) { mimic = b_h }; b_h = ''; } op += b0[plus] + "; "; // op += b0[plus] + "; "; if (test == true ) { oP.tracker[id][plus] = 1; } if (b0p) { oP.price += b0p[plus]; } // if (b0p) { oP.price += b0p[plus]; } } else if (bk0 && test == false ) { oP.tracker[id][plus] = 1; } plus++; if (b0.length == plus) { break; } // if (b0.length == plus) { break; } } else { if (elm.value > 0 && test == true) { if (b_h.indexOf("With:") >= 0 && !needle) { if (mimic) { mimic = ''; } op += b_h; needle = true; } else if (b_h.indexOf("With:") < 0) { if (needle) { needle = false; } if (b_h == mimic) { b_h = ''; } op += b_h; if (b_h) { mimic = b_h }; b_h = ''; } if (elm.value <= 1) { op += b0[plus] + "; "; } else { op += b0[plus] + " [" + elm.value + "]; "; } // if (elm.value <= 1) { // op += b0[plus] + "; "; // } else { // op += b0[plus] + " [" + elm.value + "]; "; // } if (test == true ) { oP.tracker[id][plus] = elm.value; } if (b0p) { oP.price += (b0p[plus] * elm.value); } //numa // if (b0p) { oP.price += (b0p[plus] * elm.value); } } else if (bk0 && test == false ) { oP.tracker[id][plus] = 1; } plus++; if (b0.length == plus) { break; } // if (b0.length == plus) { break; } } } } } function addPizzaToOrder(id) { var here, caboose, storage, tiechk, jimoff; //a op = oP.desc; if (!op) { op = oP.desc; } if (subprice != null && subprice == 0 && oP.price > 0) { oP.price = subprice; } if (q0) { if (checkertoo(q0,v0,qq0,vv0,qa0,qamin0,qanumon0)) { OW.focus(); return; } } if (q0) { if(checkertoo(q0,v0,qq0,vv0,qa0,qamin0,qanumon0)) { OW.focus(); return; } } if (q1) { if(checkertoo(q1,v1,qq1,vv1,qa1,qamin1,qanumon1)) { OW.focus(); return; } } if (r0) { t_t(0,"r0",r0,r_h0,r0p,r0r); } if (c0) { t_c(0,"c0_",c0,ck0,c_h0,c0p); } if (r1) { t_t(1,"r1",r1,r_h1,r1p,r1r); } for (var i = 0; i < op.length; i++ ) { if (op.indexOf(";
") >= 0) { here = op.indexOf(";
"); storage = op.substring(0,here); here += 1; caboose = op.substring(here,op.length); op = "" + storage + caboose; } else { break; } } if (op.indexOf("; ", op.length-2) >= 0) { op = op.substring(0,op.length-2); } if (!id) { winqty = OW.document.order.qtyy.value; } else { winqty = OW.document.order.qtyy.value; } if (nmtg || !OW.document.order.nomen.value || OW.document.order.nomen.value == 'Name') { oP.nomen = ''; } else { oP.nomen = OW.document.order.nomen.value; } if (OW.document.order.ineo == null || !OW.document.order.ineo.value || OW.document.order.ineo.value == 'Comment') { oP.ineo = ''; } else { oP.ineo = OW.document.order.ineo.value; } additem(oP.itemno,-1,op,oP.dsub,oP.price,oP.code,oP.nomen,oP.ineo); parent.cClick(); } function cent(amount) { var end, subamt; amount = amount - 0; amount = Math.round(amount*100)/100; var str = amount + ""; var decimalPoint = '.'; var c; end = str.indexOf ( decimalPoint); if (end != -1) { var tmp1 = amount * 100; tmp1 = Math.round(tmp1); tmp1 = tmp1 + ""; end = tmp1.indexOf(decimalPoint); if (end != -1) { tmp1 = tmp1.substring(0,end); tmp1 = tmp1 -0; } amount = tmp1 / 100; } subamt = "" + amount; if (amount < 1) { c = subamt.charAt(0); if (c == '.') { amount = "" + '0' + amount; } } return (amount == Math.floor(amount)) ? amount + '.00' : ( (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount); } function arrayplay() { var play = '', playful = ''; for (var i = 0; i < oP.tracker.length; i++) { playful += "-2,"; play = oP.tracker[i].join(); playful += play; if (i < oP.tracker.length - 1) { playful += ","; } } return playful; } franco = 1; bsite = "romasmd"; csite = "catering.romasmd.com"; cthru = 1; newdivstyle = 1; extracthru = 1; urlsitus = "
 Regular Menu "; var inhome = 0; var dynmifrm = 0; function displaymenuorder(id,pp1,id4,id5,id6,id7) { if (id4 && id4 == 1) { p1n = 0; prearray = ''; } totalcost = 0; var sh = ''; if (n1m > 0 && callcent == 1 && callcomcent2 == 1 && sitecmnt == 0) { sh = parent.document; callcomcent1 = sh.forms[0].comments.value; } var n2w = ''; if (newlook == 0 && rfrming == 0) { n2w += ''; n2w += ''; n2w += ""; } var nu2 = navigator.userAgent; n2w += "
"; if (n1m == 0 || (id6 != null && id6 == 1)) { n2w += ""; n2w += ""; n2w += "
"; //a n2w += "$10.00 MIN. DELIVERY AMT.
"; //b //c //d n2w += "$1.50 DELIVERY CHARGE.
"; //e n2w += "" + weaccept1 + ".
"; if (newlook == 0 && rfrming == 0) { n2w += "
"; parent.document.open(); parent.document.write(n2w); parent.document.close(); } else { document.getElementById('rfrme').innerHTML = n2w; } return true; } n2w += ""; var dclwdth = 60, dclwdth2 = 4; var tded = ''; if (!nmtg) { dclwdth = 50, dclwdth2 = 5, tded = ''; n2w += ""; } else { n2w += ""; } for (var i = 1; i <= n1m; i++) { n2w += ""; if (!nmtg) { if (items[i].nomen == null) { items[i].nomen = ''; } n2w += ""; } n2w += ""; n2w += ""; if (items[i].basedesc == null) { n2w += ""; n2w += "\n"; } else { n2w += ""; n2w += "\n"; } n2w += ""; n2w += ""; n2w += "" + tded + ""; totalcost += (cent(items[i].price) * cent(items[i].quantity)); n2w += "\n"; n2w += "\n"; n2w += "\n"; n2w += ""; } if (callcent == 1) { delchrg = 0; if (parent.dchg > 0) { delchrg = 0; var sh4 = parent.document.forms[0].elements; var sh5 = parent.document.forms[0]; var partest = 0; for (var j = 0; j < sh4.length; j++) { if (sh5.elements[j].name == 'info1') { if (sh5.elements[j].checked == true && sh5.elements[j].value == 'D') { partest = 1; } break; } } if (partest == 1) { delchrg = parent.dchg; n2w += ""; } } } n2w += ""; n2w += ""; n2w += "
NameQty.No.DescriptionPrice
Qty.No.DescriptionPrice
" + i + "." + items[i].desc + "" + items[i].desc + "" + cent( (items[i].price * items[i].quantity) ) + "
Remove
Delivery Charge:" + cent(delchrg) + "
Total Cost (w/ taxes):" + cent((totalcost * taxvar) + delchrg) + "
"; if (callcent == 1 && sitecmnt == 0) { n2w += ""; } n2w += "
"; n2w += ""; n2w += ""; n2w += ""; n2w += "
"; n2w += ""; n2w += ""; n2w += "
"; n2w += ""; n2w += ""; n2w += "\n"; n2w += "$10.00 MIN. DELIVERY AMT.
"; n2w += "$1.50 DELIVERY CHARGE.
"; n2w += "" + weaccept1 + ".
"; n2w += ""; if (newlook == 0 && rfrming == 0) { n2w += ""; parent.document.open(); parent.document.write(n2w); parent.document.close(); } else { n2w += ""; document.getElementById('rfrme').innerHTML = n2w; openForm(); } return true; } function chameleon(k) { var sh = parent.document; if (k) { if (sh.forms[0].omegad.value == true) { sh.forms[0].alpha.checked = false; } } else { if (sh.forms[0].alpha.value == true) { sh.forms[0].omegad.checked = false; } } return true; } function deleteitem(id) { if (id + 1 == items.length) { items.length = id; } else { for (var i=id;i<=n1m;i++) { if (i != n1m) { items[i] = ''; items[i] = items[i+1]; } else { items.length = n1m; } } } n1m--; sveord(); update(); } function update() { var n2w = ''; var nu2 = navigator.userAgent; if (newlook == 0 && rfrming == 0) { n2w += ''; n2w += ""; if (franco == 0) { if (extracthru == 0) { n2w += ''; } else { if (nu2.indexOf("MSIE") != -1 && nu2.indexOf("Opera") == -1) { n2w += ''; } else { n2w += ''; } } } else { if (cthru == 0) { n2w += ''; } else { if (nu2.indexOf("MSIE") != -1 && nu2.indexOf("Opera") == -1) { n2w += ''; } else { n2w += ''; } } } } n2w += "

"; n2w += "
Updating Your Order
"; if (newlook == 0 && rfrming == 0) { n2w += ""; parent.document.open(); parent.document.write(n2w); parent.document.close(); } else { document.getElementById('rfrme').innerHTML = n2w; } setTimeout('displaymenuorder()',500); } function clearorder() { n1m = 0; hours = 0; prearray = p1n = ''; items = new Array(); sveord(); // displaymenuorder(); displaymenuorder(); return true; } function popUp(url) { sealWin=window.open(url,"win",'toolbar=0,location =0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=630,height=470'); self.name = "sslWin"; } var fds = new Array(new Array("1","1","","4 Large Pizzas","","","","1a","4 Large Pizzas - Cheese","44.99","60160.071515","44.99 ","Cheese",",'34'",",1,'',''","","1b","4 Large Pizzas - Gourmet","64.99","60163.071515","64.99 ","Gourmet",",'30'",",2,'',''",""),new Array("1","2","","8 Large Pizzas","","","","2a","8 Large Pizzas - Cheese","85.99","60164.071515"," 85.99 ","Cheese",",'34'",",3,'',''","","2b","8 Large Pizzas - Gourmet","127.99","60167.071515","127.99 ","Gourmet",",'30'",",4,'',''",""),new Array("1","3","","12 Large Pizzas","","","","3a","12 Large Pizzas - Cheese","125.99","60168.071515","125.99 ","Cheese",",'34'",",5,'',''","","3b","12 Large Pizzas - Gourmet","188.99","60171.071515","188.99 ","Gourmet",",'30'",",6,'',''",""),new Array("1","4","","20 Large Pizzas","","","","4a","20 Large Pizzas - Cheese","199.99","60172.071515","199.99 ","Cheese",",'34'",",7,'',''","","4b","20 Large Pizzas - Gourmet","304.99","60175.071515","304.99 ","Gourmet",",'30'",",8,'',''",""),new Array("1","5","","Chicken Tenders Platter","Served with honey mustard or BBQ Sauce","","","5a","Chicken Tenders Platter - 25 Pcs","32.99","60006.062615"," 32.99 ","25 Pcs",",'515'",",9,'',''","","5b","Chicken Tenders Platter - 50 Pcs","63.99","60007.062615"," 63.99 ","50 Pcs",",'515'",",9,'',''","","5c","Chicken Tenders Platter - 75 Pcs","84.99","60008.062615"," 84.99 ","75 Pcs",",'515'",",9,'',''","","5d","Chicken Tenders Platter - 100 Pcs","109.99","60009.062615","109.99 ","100 Pcs",",'515'",",9,'',''",""),new Array("0","6","","Garlic Knots","","","","6a","Garlic Knots - 25 Pcs","12.99","10176.071515","12.99 ","25 Pcs","6b","Garlic Knots - 50 Pcs","24.99","10177.071515","24.99 ","50 Pcs","6c","Garlic Knots - 75 Pcs","39.99","10178.071515","39.99 ","75 Pcs","6d","Garlic Knots - 100 Pcs","59.99","10179.071515","59.99 ","100 Pcs"),new Array("0","7","","Meatball Parm Sliders","","","","7a","Meatball Parm Sliders - 25 Pcs","29.99","10180.071515","29.99 ","25 Pcs","7b","Meatball Parm Sliders - 50 Pcs","59.99","10181.071515","59.99 ","50 Pcs","7c","Meatball Parm Sliders - 75 Pcs","79.99","10182.071515","79.99 ","75 Pcs","7d","Meatball Parm Sliders - 100 Pcs","99.99","10183.071515","99.99 ","100 Pcs"),new Array("0","8","","Chicken Parmesan Sliders","","","","8a","Chicken Parmesan Sliders - 25 Pcs","29.99","10192.022217","29.99 ","25 Pcs","8b","Chicken Parmesan Sliders - 50 Pcs","59.99","10193.022217","59.99 ","50 Pcs","8c","Chicken Parmesan Sliders - 75 Pcs","79.99","10194.022217","79.99 ","75 Pcs","8d","Chicken Parmesan Sliders - 100 Pcs","99.99","10195.022217","99.99 ","100 Pcs"),new Array("0","9","","Mozzarella Sticks","","","","9a","Mozzarella Sticks - 25 Pcs","26.99","10196.022217","26.99 ","25 Pcs","9b","Mozzarella Sticks - 50 Pcs","51.99","10197.022217","51.99 ","50 Pcs","9c","Mozzarella Sticks - 75 Pcs","77.99","10198.022217","77.99 ","75 Pcs","9d","Mozzarella Sticks - 100 Pcs","99.99","10199.022217","99.99 ","100 Pcs"),new Array("0","10","","Jalapeno Poppers","","","","10a","Jalapeno Poppers - 25 Pcs","26.99","10184.071515","26.99 ","25 Pcs","10b","Jalapeno Poppers - 50 Pcs","51.99","10185.071515","51.99 ","50 Pcs","10c","Jalapeno Poppers - 75 Pcs","77.99","10186.071515","77.99 ","75 Pcs","10d","Jalapeno Poppers - 100 Pcs","99.99","10187.071515","99.99 ","100 Pcs"),new Array("1","11","","Jumbo Wings","","","","11a","Jumbo Wings - 25 Pcs","22.99","60026.062615","22.99 ","25 Pcs",",'5115'",",10,'',''","","11b","Jumbo Wings - 50 Pcs","45.99","60027.062615","45.99 ","50 Pcs",",'5115'",",10,'',''","","11c","Jumbo Wings - 100 Pcs","89.99","60028.062615","89.99 ","100 Pcs",",'5115'",",10,'',''",""),new Array("1","12","","Spaghetti Pasta","Meat Sauce, Meatball or Sausage","","","12a","Spaghetti Pasta - Half","59.99","60030.062615"," 59.99 ","Half",",'1'",",11,'',''","","12b","Spaghetti Pasta - Full","119.99","60031.062615","119.99 ","Full",",'1'",",11,'',''",""),new Array("0","13","","Spaghetti w/ Marinara","","","","13a","Spaghetti w/ Marinara - Half","49.99","10032.062615","49.99 ","Half","13b","Spaghetti w/ Marinara - Full","94.99","10033.062615","94.99 ","Full"),new Array("0","14","","Penne Bolognese","","","","14a","Penne Bolognese - Half","69.99","10034.062615","69.99 ","Half","14b","Penne Bolognese - Full","129.99","10035.062615","129.99 ","Full"),new Array("0","15","","Chicken Broccoli","","","","15a","Chicken Broccoli - Half","69.99","10036.062615","69.99 ","Half","15b","Chicken Broccoli - Full","129.99","10037.062615","129.99 ","Full"),new Array("0","16","","Baked Ziti","","","","16a","Baked Ziti - Half","59.99","10040.062615","59.99 ","Half","16b","Baked Ziti - Full","119.99","10041.062615","119.99 ","Full"),new Array("0","17","","Lasagna","","","","17a","Lasagna - Half","59.99","10042.062615","59.99 ","Half","17b","Lasagna - Full","119.99","10043.062615","119.99 ","Full"),new Array("0","18","","Chicken Diavola","","","","18a","Chicken Diavola - Half","69.99","10200.022217","69.99 ","Half","18b","Chicken Diavola - Full","129.99","10201.022217","129.99 ","Full"),new Array("0","19","","Chicken Alfredo","","","","19a","Chicken Alfredo - Half","69.99","10202.022217","69.99 ","Half","19b","Chicken Alfredo - Full","129.99","10203.022217","129.99 ","Full"),new Array("0","20","","Shrimp Diavola","","","","20a","Shrimp Diavola - Half","69.99","10204.022217","69.99 ","Half","20b","Shrimp Diavola - Full","129.99","10205.022217","129.99 ","Full"),new Array("0","21","","Pene Pasta 3-Colore","","","","21a","Pene Pasta 3-Colore - Half","69.99","10206.022217","69.99 ","Half","21b","Pene Pasta 3-Colore - Full","129.99","10207.022217","129.99 ","Full"),new Array("0","22","","Seafood Pasta Combo","","","","22a","Seafood Pasta Combo - Half","99.99","10208.022217","99.99 ","Half","22b","Seafood Pasta Combo - Full","159.99","10209.022217","159.99 ","Full"),new Array("0","23","","Chesapeake Crab","","","","23a","Chesapeake Crab - Half","99.99","10210.022217","99.99 ","Half","23b","Chesapeake Crab - Full","159.99","10211.022217","159.99 ","Full"),new Array("1","24","","Garden Salad","","","","24a","Garden Salad - 10 Person","19.99","60046.062615","19.99 ","10 Person",",'1'",",12,'',''","","24b","Garden Salad - 20 Person","39.99","60047.062615","39.99 ","20 Person",",'1'",",12,'',''","","24c","Garden Salad - 30 Person","59.99","60048.062615","59.99 ","30 Person",",'1'",",12,'',''","","24d","Garden Salad - 40 Person","74.99","60049.062615","74.99 ","40 Person",",'1'",",12,'',''",""),new Array("1","25","","Caesar Salad Salad","","","","25a","Caesar Salad Salad - 10 Person","24.99","60050.062615","24.99 ","10 Person",",'1'",",13,'',''","","25b","Caesar Salad Salad - 20 Person","39.99","60051.062615","39.99 ","20 Person",",'1'",",13,'',''","","25c","Caesar Salad Salad - 30 Person","59.99","60052.062615","59.99 ","30 Person",",'1'",",13,'',''","","25d","Caesar Salad Salad - 40 Person","74.99","60053.062615","74.99 ","40 Person",",'1'",",13,'',''",""),new Array("1","26","","Grilled Chicken Salad","","","","26a","Grilled Chicken Salad - 10 Person","39.99","60054.062615"," 39.99 ","10 Person",",'1'",",14,'',''","","26b","Grilled Chicken Salad - 20 Person","69.99","60055.062615"," 69.99 ","20 Person",",'1'",",14,'',''","","26c","Grilled Chicken Salad - 30 Person","89.99","60056.062615"," 89.99 ","30 Person",",'1'",",14,'',''","","26d","Grilled Chicken Salad - 40 Person","109.99","60057.062615","109.99 ","40 Person",",'1'",",14,'',''",""),new Array("1","27","","Gourmet Salad","","","","27a","Gourmet Salad - 10 Person","39.99","60058.062615"," 39.99 ","10 Person",",'1'",",15,'',''","","27b","Gourmet Salad - 20 Person","69.99","60059.062615"," 69.99 ","20 Person",",'1'",",15,'',''","","27c","Gourmet Salad - 30 Person","89.99","60060.062615"," 89.99 ","30 Person",",'1'",",15,'',''","","27d","Gourmet Salad - 40 Person","109.99","60061.062615","109.99 ","40 Person",",'1'",",15,'',''",""),new Array("1","28","","Greek Salad","","","","28a","Greek Salad - 10 Person","39.99","60062.062615"," 39.99 ","10 Person",",'1'",",16,'',''","","28b","Greek Salad - 20 Person","69.99","60063.062615"," 69.99 ","20 Person",",'1'",",16,'',''","","28c","Greek Salad - 30 Person","89.99","60064.062615"," 89.99 ","30 Person",",'1'",",16,'',''","","28d","Greek Salad - 40 Person","109.99","60065.062615","109.99 ","40 Person",",'1'",",16,'',''",""),new Array("1","29","","Turkey & Cheese Sandwich","w/ Small Bag of Chips","","","29a","Turkey & Cheese Sandwich - 10 Person","80.00","60066.062615"," 80.00 ","10 Person",",'31'",",17,'',''","","29b","Turkey & Cheese Sandwich - 20 Person","160.00","60067.062615","160.00 ","20 Person",",'31'",",17,'',''","","29c","Turkey & Cheese Sandwich - 30 Person","240.00","60068.062615","240.00 ","30 Person",",'31'",",17,'',''","","29d","Turkey & Cheese Sandwich - 40 Person","320.00","60069.062615","320.00 ","40 Person",",'31'",",17,'',''",""),new Array("1","30","","Tuna Salad Sandwich","w/ Small Bag of Chips","","","30a","Tuna Salad Sandwich - 10 Person","80.00","60070.062615"," 80.00 ","10 Person",",'31'",",18,'',''","","30b","Tuna Salad Sandwich - 20 Person","160.00","60071.062615","160.00 ","20 Person",",'31'",",18,'',''","","30c","Tuna Salad Sandwich - 30 Person","240.00","60072.062615","240.00 ","30 Person",",'31'",",18,'',''","","30d","Tuna Salad Sandwich - 40 Person","320.00","60073.062615","320.00 ","40 Person",",'31'",",18,'',''",""),new Array("1","31","","Deli Ham & Cheese Sandwich","w/ Small Bag of Chips","","","31a","Deli Ham & Cheese Sandwich - 10 Person","80.00","60074.062615"," 80.00 ","10 Person",",'31'",",19,'',''","","31b","Deli Ham & Cheese Sandwich - 20 Person","160.00","60075.062615","160.00 ","20 Person",",'31'",",19,'',''","","31c","Deli Ham & Cheese Sandwich - 30 Person","240.00","60076.062615","240.00 ","30 Person",",'31'",",19,'',''","","31d","Deli Ham & Cheese Sandwich - 40 Person","320.00","60077.062615","320.00 ","40 Person",",'31'",",19,'',''",""),new Array("1","32","","Italian Cold Cut Sandwich","w/ Small Bag of Chips","","","32a","Italian Cold Cut Sandwich - 10 Person","80.00","60078.062615"," 80.00 ","10 Person",",'31'",",20,'',''","","32b","Italian Cold Cut Sandwich - 20 Person","160.00","60079.062615","160.00 ","20 Person",",'31'",",20,'',''","","32c","Italian Cold Cut Sandwich - 30 Person","240.00","60080.062615","240.00 ","30 Person",",'31'",",20,'',''","","32d","Italian Cold Cut Sandwich - 40 Person","320.00","60081.062615","320.00 ","40 Person",",'31'",",20,'',''",""),new Array("1","33","","American Cold Cut Sandwich","w/ Small Bag of Chips","","","33a","American Cold Cut Sandwich - 10 Person","80.00","60082.062615"," 80.00 ","10 Person",",'31'",",21,'',''","","33b","American Cold Cut Sandwich - 20 Person","160.00","60083.062615","160.00 ","20 Person",",'31'",",21,'',''","","33c","American Cold Cut Sandwich - 30 Person","240.00","60084.062615","240.00 ","30 Person",",'31'",",21,'',''","","33d","American Cold Cut Sandwich - 40 Person","320.00","60085.062615","320.00 ","40 Person",",'31'",",21,'',''",""),new Array("1","34","","Roast Beef Sandwich","w/ Small Bag of Chips","","","34a","Roast Beef Sandwich - 10 Person","80.00","60086.062615"," 80.00 ","10 Person",",'31'",",22,'',''","","34b","Roast Beef Sandwich - 20 Person","160.00","60087.062615","160.00 ","20 Person",",'31'",",22,'',''","","34c","Roast Beef Sandwich - 30 Person","240.00","60088.062615","240.00 ","30 Person",",'31'",",22,'',''","","34d","Roast Beef Sandwich - 40 Person","320.00","60089.062615","320.00 ","40 Person",",'31'",",22,'',''",""),new Array("1","35","","Turkey & Ham w/ Cheese Sandwich","w/ Small Bag of Chips","","","35a","Turkey & Ham w/ Cheese Sandwich - 10 Person","80.00","60090.062615"," 80.00 ","10 Person",",'31'",",23,'',''","","35b","Turkey & Ham w/ Cheese Sandwich - 20 Person","160.00","60091.062615","160.00 ","20 Person",",'31'",",23,'',''","","35c","Turkey & Ham w/ Cheese Sandwich - 30 Person","240.00","60092.062615","240.00 ","30 Person",",'31'",",23,'',''","","35d","Turkey & Ham w/ Cheese Sandwich - 40 Person","320.00","60093.062615","320.00 ","40 Person",",'31'",",23,'',''",""),new Array("1","36","","Turkey & Cheese Wrap","w/ Small Bag of Chips","","","36a","Turkey & Cheese Wrap - 10 Person","80.00","60094.062615"," 80.00 ","10 Person",",'31'",",24,'',''","","36b","Turkey & Cheese Wrap - 20 Person","160.00","60095.062615","160.00 ","20 Person",",'31'",",24,'',''","","36c","Turkey & Cheese Wrap - 30 Person","240.00","60096.062615","240.00 ","30 Person",",'31'",",24,'',''","","36d","Turkey & Cheese Wrap - 40 Person","320.00","60097.062615","320.00 ","40 Person",",'31'",",24,'',''",""),new Array("1","37","","Tuna Salad Wrap","w/ Small Bag of Chips","","","37a","Tuna Salad Wrap - 10 Person","80.00","60098.062615"," 80.00 ","10 Person",",'31'",",25,'',''","","37b","Tuna Salad Wrap - 20 Person","160.00","60099.062615","160.00 ","20 Person",",'31'",",25,'',''","","37c","Tuna Salad Wrap - 30 Person","240.00","60100.062615","240.00 ","30 Person",",'31'",",25,'',''","","37d","Tuna Salad Wrap - 40 Person","320.00","60101.062615","320.00 ","40 Person",",'31'",",25,'',''",""),new Array("1","38","","Deli Ham & Cheese Wrap","w/ Small Bag of Chips","","","38a","Deli Ham & Cheese Wrap - 10 Person","80.00","60102.062615"," 80.00 ","10 Person",",'31'",",26,'',''","","38b","Deli Ham & Cheese Wrap - 20 Person","160.00","60103.062615","160.00 ","20 Person",",'31'",",26,'',''","","38c","Deli Ham & Cheese Wrap - 30 Person","240.00","60104.062615","240.00 ","30 Person",",'31'",",26,'',''","","38d","Deli Ham & Cheese Wrap - 40 Person","320.00","60105.062615","320.00 ","40 Person",",'31'",",26,'',''",""),new Array("1","39","","Italian Cold Cut Wrap","w/ Small Bag of Chips","","","39a","Italian Cold Cut Wrap - 10 Person","80.00","60106.062615"," 80.00 ","10 Person",",'31'",",27,'',''","","39b","Italian Cold Cut Wrap - 20 Person","160.00","60107.062615","160.00 ","20 Person",",'31'",",27,'',''","","39c","Italian Cold Cut Wrap - 30 Person","240.00","60108.062615","240.00 ","30 Person",",'31'",",27,'',''","","39d","Italian Cold Cut Wrap - 40 Person","320.00","60109.062615","320.00 ","40 Person",",'31'",",27,'',''",""),new Array("1","40","","American Cold Cut Wrap","w/ Small Bag of Chips","","","40a","American Cold Cut Wrap - 10 Person","80.00","60110.062615"," 80.00 ","10 Person",",'31'",",28,'',''","","40b","American Cold Cut Wrap - 20 Person","160.00","60111.062615","160.00 ","20 Person",",'31'",",28,'',''","","40c","American Cold Cut Wrap - 30 Person","240.00","60112.062615","240.00 ","30 Person",",'31'",",28,'',''","","40d","American Cold Cut Wrap - 40 Person","320.00","60113.062615","320.00 ","40 Person",",'31'",",28,'',''",""),new Array("1","41","","Roast Beef Wrap","w/ Small Bag of Chips","","","41a","Roast Beef Wrap - 10 Person","80.00","60114.062615"," 80.00 ","10 Person",",'31'",",29,'',''","","41b","Roast Beef Wrap - 20 Person","160.00","60115.062615","160.00 ","20 Person",",'31'",",29,'',''","","41c","Roast Beef Wrap - 30 Person","240.00","60116.062615","240.00 ","30 Person",",'31'",",29,'',''","","41d","Roast Beef Wrap - 40 Person","320.00","60117.062615","320.00 ","40 Person",",'31'",",29,'',''",""),new Array("1","42","","Turkey & Ham w/ Cheese Wrap","w/ Small Bag of Chips","","","42a","Turkey & Ham w/ Cheese Wrap - 10 Person","80.00","60118.062615"," 80.00 ","10 Person",",'31'",",30,'',''","","42b","Turkey & Ham w/ Cheese Wrap - 20 Person","160.00","60119.062615","160.00 ","20 Person",",'31'",",30,'',''","","42c","Turkey & Ham w/ Cheese Wrap - 30 Person","240.00","60120.062615","240.00 ","30 Person",",'31'",",30,'',''","","42d","Turkey & Ham w/ Cheese Wrap - 40 Person","320.00","60121.062615","320.00 ","40 Person",",'31'",",30,'',''",""),new Array("0","43","","Cheese Cake","","","","43a","Cheese Cake - 16 Person","39.99","10142.062615","39.99 ","16 Person","43b","Cheese Cake - 32 Person","79.99","10143.062615","79.99 ","32 Person","43c","Cheese Cake - 48 Person","99.99","10144.062615","99.99 ","48 Person"),new Array("0","44","","Chocolate Cake","","","","44a","Chocolate Cake - 16 Person","39.99","10145.062615","39.99 ","16 Person","44b","Chocolate Cake - 32 Person","79.99","10146.062615","79.99 ","32 Person","44c","Chocolate Cake - 48 Person","99.99","10147.062615","99.99 ","48 Person"),new Array("0","45","","Carrot Cake","","","","45a","Carrot Cake - 16 Person","39.99","10148.062615","39.99 ","16 Person","45b","Carrot Cake - 32 Person","79.99","10149.062615","79.99 ","32 Person","45c","Carrot Cake - 48 Person","99.99","10150.062615","99.99 ","48 Person"),new Array("0","46","","Baklava Cake","","","","46a","Baklava Cake - 16 Person","39.99","10151.062615","39.99 ","16 Person","46b","Baklava Cake - 32 Person","79.99","10152.062615","79.99 ","32 Person","46c","Baklava Cake - 48 Person","99.99","10153.062615","99.99 ","48 Person"),new Array("0","47","","Tiramisu Cake","","","","47a","Tiramisu Cake - 16 Person","39.99","10154.062615","39.99 ","16 Person","47b","Tiramisu Cake - 32 Person","79.99","10155.062615","79.99 ","32 Person","47c","Tiramisu Cake - 48 Person","99.99","10156.062615","99.99 ","48 Person"),new Array("0","48","","12 Oz Can","","","","48","12 Oz Can - Each","1.00","10157.062615","1.00 ","Each"),new Array("0","49","","Bottle of Water","","","","49","Bottle of Water - Each","1.00","10158.062615","1.00 ","Each"),new Array("0","50","","2 Liter Soda","","","","50","2 Liter Soda - Each","2.35","10159.062615","2.35 ","Each")); var fxst = "


"; var nd = "
"; var spw = spw2 = spw3 = spw4 = icomod = ''; var p1 = p2 = p3 = p5 = 0; function spwfunc(id,slctqty) { if (id != Math.floor(id)) { id = Math.floor(id); } if (id == 60160) { showPizzaWin('1a.','0','8',44.99,'60160.071515',1,'34',1,'',''); } else if (id == 60163) { showPizzaWin('1b.','0','17',64.99,'60163.071515',1,'30',2,'',''); } else if (id == 60164) { showPizzaWin('2a.','1','8',85.99,'60164.071515',1,'34',3,'',''); } else if (id == 60167) { showPizzaWin('2b.','1','17',127.99,'60167.071515',1,'30',4,'',''); } else if (id == 60168) { showPizzaWin('3a.','2','8',125.99,'60168.071515',1,'34',5,'',''); } else if (id == 60171) { showPizzaWin('3b.','2','17',188.99,'60171.071515',1,'30',6,'',''); } else if (id == 60172) { showPizzaWin('4a.','3','8',199.99,'60172.071515',1,'34',7,'',''); } else if (id == 60175) { showPizzaWin('4b.','3','17',304.99,'60175.071515',1,'30',8,'',''); } else if (id == 60006) { showPizzaWin('5a.','4','8',32.99,'60006.062615',1,'515',9,'',''); } else if (id == 60007) { showPizzaWin('5b.','4','17',63.99,'60007.062615',1,'515',9,'',''); } else if (id == 60008) { showPizzaWin('5c.','4','26',84.99,'60008.062615',1,'515',9,'',''); } else if (id == 60009) { showPizzaWin('5d.','4','35',109.99,'60009.062615',1,'515',9,'',''); } else if (id == 10176) { additem('6a.','5','8','',12.99,'10176.071515','','',slctqty); } else if (id == 10177) { additem('6b.','5','14','',24.99,'10177.071515','','',slctqty); } else if (id == 10178) { additem('6c.','5','20','',39.99,'10178.071515','','',slctqty); } else if (id == 10179) { additem('6d.','5','26','',59.99,'10179.071515','','',slctqty); } else if (id == 10180) { additem('7a.','6','8','',29.99,'10180.071515','','',slctqty); } else if (id == 10181) { additem('7b.','6','14','',59.99,'10181.071515','','',slctqty); } else if (id == 10182) { additem('7c.','6','20','',79.99,'10182.071515','','',slctqty); } else if (id == 10183) { additem('7d.','6','26','',99.99,'10183.071515','','',slctqty); } else if (id == 10192) { additem('8a.','7','8','',29.99,'10192.022217','','',slctqty); } else if (id == 10193) { additem('8b.','7','14','',59.99,'10193.022217','','',slctqty); } else if (id == 10194) { additem('8c.','7','20','',79.99,'10194.022217','','',slctqty); } else if (id == 10195) { additem('8d.','7','26','',99.99,'10195.022217','','',slctqty); } else if (id == 10196) { additem('9a.','8','8','',26.99,'10196.022217','','',slctqty); } else if (id == 10197) { additem('9b.','8','14','',51.99,'10197.022217','','',slctqty); } else if (id == 10198) { additem('9c.','8','20','',77.99,'10198.022217','','',slctqty); } else if (id == 10199) { additem('9d.','8','26','',99.99,'10199.022217','','',slctqty); } else if (id == 10184) { additem('10a.','9','8','',26.99,'10184.071515','','',slctqty); } else if (id == 10185) { additem('10b.','9','14','',51.99,'10185.071515','','',slctqty); } else if (id == 10186) { additem('10c.','9','20','',77.99,'10186.071515','','',slctqty); } else if (id == 10187) { additem('10d.','9','26','',99.99,'10187.071515','','',slctqty); } else if (id == 60026) { showPizzaWin('11a.','10','8',22.99,'60026.062615',1,'5115',10,'',''); } else if (id == 60027) { showPizzaWin('11b.','10','17',45.99,'60027.062615',1,'5115',10,'',''); } else if (id == 60028) { showPizzaWin('11c.','10','26',89.99,'60028.062615',1,'5115',10,'',''); } else if (id == 60030) { showPizzaWin('12a.','11','8',59.99,'60030.062615',1,'1',11,'',''); } else if (id == 60031) { showPizzaWin('12b.','11','17',119.99,'60031.062615',1,'1',11,'',''); } else if (id == 10032) { additem('13a.','12','8','',49.99,'10032.062615','','',slctqty); } else if (id == 10033) { additem('13b.','12','14','',94.99,'10033.062615','','',slctqty); } else if (id == 10034) { additem('14a.','13','8','',69.99,'10034.062615','','',slctqty); } else if (id == 10035) { additem('14b.','13','14','',129.99,'10035.062615','','',slctqty); } else if (id == 10036) { additem('15a.','14','8','',69.99,'10036.062615','','',slctqty); } else if (id == 10037) { additem('15b.','14','14','',129.99,'10037.062615','','',slctqty); } else if (id == 10040) { additem('16a.','15','8','',59.99,'10040.062615','','',slctqty); } else if (id == 10041) { additem('16b.','15','14','',119.99,'10041.062615','','',slctqty); } else if (id == 10042) { additem('17a.','16','8','',59.99,'10042.062615','','',slctqty); } else if (id == 10043) { additem('17b.','16','14','',119.99,'10043.062615','','',slctqty); } else if (id == 10200) { additem('18a.','17','8','',69.99,'10200.022217','','',slctqty); } else if (id == 10201) { additem('18b.','17','14','',129.99,'10201.022217','','',slctqty); } else if (id == 10202) { additem('19a.','18','8','',69.99,'10202.022217','','',slctqty); } else if (id == 10203) { additem('19b.','18','14','',129.99,'10203.022217','','',slctqty); } else if (id == 10204) { additem('20a.','19','8','',69.99,'10204.022217','','',slctqty); } else if (id == 10205) { additem('20b.','19','14','',129.99,'10205.022217','','',slctqty); } else if (id == 10206) { additem('21a.','20','8','',69.99,'10206.022217','','',slctqty); } else if (id == 10207) { additem('21b.','20','14','',129.99,'10207.022217','','',slctqty); } else if (id == 10208) { additem('22a.','21','8','',99.99,'10208.022217','','',slctqty); } else if (id == 10209) { additem('22b.','21','14','',159.99,'10209.022217','','',slctqty); } else if (id == 10210) { additem('23a.','22','8','',99.99,'10210.022217','','',slctqty); } else if (id == 10211) { additem('23b.','22','14','',159.99,'10211.022217','','',slctqty); } else if (id == 60046) { showPizzaWin('24a.','23','8',19.99,'60046.062615',1,'1',12,'',''); } else if (id == 60047) { showPizzaWin('24b.','23','17',39.99,'60047.062615',1,'1',12,'',''); } else if (id == 60048) { showPizzaWin('24c.','23','26',59.99,'60048.062615',1,'1',12,'',''); } else if (id == 60049) { showPizzaWin('24d.','23','35',74.99,'60049.062615',1,'1',12,'',''); } else if (id == 60050) { showPizzaWin('25a.','24','8',24.99,'60050.062615',1,'1',13,'',''); } else if (id == 60051) { showPizzaWin('25b.','24','17',39.99,'60051.062615',1,'1',13,'',''); } else if (id == 60052) { showPizzaWin('25c.','24','26',59.99,'60052.062615',1,'1',13,'',''); } else if (id == 60053) { showPizzaWin('25d.','24','35',74.99,'60053.062615',1,'1',13,'',''); } else if (id == 60054) { showPizzaWin('26a.','25','8',39.99,'60054.062615',1,'1',14,'',''); } else if (id == 60055) { showPizzaWin('26b.','25','17',69.99,'60055.062615',1,'1',14,'',''); } else if (id == 60056) { showPizzaWin('26c.','25','26',89.99,'60056.062615',1,'1',14,'',''); } else if (id == 60057) { showPizzaWin('26d.','25','35',109.99,'60057.062615',1,'1',14,'',''); } else if (id == 60058) { showPizzaWin('27a.','26','8',39.99,'60058.062615',1,'1',15,'',''); } else if (id == 60059) { showPizzaWin('27b.','26','17',69.99,'60059.062615',1,'1',15,'',''); } else if (id == 60060) { showPizzaWin('27c.','26','26',89.99,'60060.062615',1,'1',15,'',''); } else if (id == 60061) { showPizzaWin('27d.','26','35',109.99,'60061.062615',1,'1',15,'',''); } else if (id == 60062) { showPizzaWin('28a.','27','8',39.99,'60062.062615',1,'1',16,'',''); } else if (id == 60063) { showPizzaWin('28b.','27','17',69.99,'60063.062615',1,'1',16,'',''); } else if (id == 60064) { showPizzaWin('28c.','27','26',89.99,'60064.062615',1,'1',16,'',''); } else if (id == 60065) { showPizzaWin('28d.','27','35',109.99,'60065.062615',1,'1',16,'',''); } else if (id == 60066) { showPizzaWin('29a.','28','8',80.00,'60066.062615',1,'31',17,'',''); } else if (id == 60067) { showPizzaWin('29b.','28','17',160.00,'60067.062615',1,'31',17,'',''); } else if (id == 60068) { showPizzaWin('29c.','28','26',240.00,'60068.062615',1,'31',17,'',''); } else if (id == 60069) { showPizzaWin('29d.','28','35',320.00,'60069.062615',1,'31',17,'',''); } else if (id == 60070) { showPizzaWin('30a.','29','8',80.00,'60070.062615',1,'31',18,'',''); } else if (id == 60071) { showPizzaWin('30b.','29','17',160.00,'60071.062615',1,'31',18,'',''); } else if (id == 60072) { showPizzaWin('30c.','29','26',240.00,'60072.062615',1,'31',18,'',''); } else if (id == 60073) { showPizzaWin('30d.','29','35',320.00,'60073.062615',1,'31',18,'',''); } else if (id == 60074) { showPizzaWin('31a.','30','8',80.00,'60074.062615',1,'31',19,'',''); } else if (id == 60075) { showPizzaWin('31b.','30','17',160.00,'60075.062615',1,'31',19,'',''); } else if (id == 60076) { showPizzaWin('31c.','30','26',240.00,'60076.062615',1,'31',19,'',''); } else if (id == 60077) { showPizzaWin('31d.','30','35',320.00,'60077.062615',1,'31',19,'',''); } else if (id == 60078) { showPizzaWin('32a.','31','8',80.00,'60078.062615',1,'31',20,'',''); } else if (id == 60079) { showPizzaWin('32b.','31','17',160.00,'60079.062615',1,'31',20,'',''); } else if (id == 60080) { showPizzaWin('32c.','31','26',240.00,'60080.062615',1,'31',20,'',''); } else if (id == 60081) { showPizzaWin('32d.','31','35',320.00,'60081.062615',1,'31',20,'',''); } else if (id == 60082) { showPizzaWin('33a.','32','8',80.00,'60082.062615',1,'31',21,'',''); } else if (id == 60083) { showPizzaWin('33b.','32','17',160.00,'60083.062615',1,'31',21,'',''); } else if (id == 60084) { showPizzaWin('33c.','32','26',240.00,'60084.062615',1,'31',21,'',''); } else if (id == 60085) { showPizzaWin('33d.','32','35',320.00,'60085.062615',1,'31',21,'',''); } else if (id == 60086) { showPizzaWin('34a.','33','8',80.00,'60086.062615',1,'31',22,'',''); } else if (id == 60087) { showPizzaWin('34b.','33','17',160.00,'60087.062615',1,'31',22,'',''); } else if (id == 60088) { showPizzaWin('34c.','33','26',240.00,'60088.062615',1,'31',22,'',''); } else if (id == 60089) { showPizzaWin('34d.','33','35',320.00,'60089.062615',1,'31',22,'',''); } else if (id == 60090) { showPizzaWin('35a.','34','8',80.00,'60090.062615',1,'31',23,'',''); } else if (id == 60091) { showPizzaWin('35b.','34','17',160.00,'60091.062615',1,'31',23,'',''); } else if (id == 60092) { showPizzaWin('35c.','34','26',240.00,'60092.062615',1,'31',23,'',''); } else if (id == 60093) { showPizzaWin('35d.','34','35',320.00,'60093.062615',1,'31',23,'',''); } else if (id == 60094) { showPizzaWin('36a.','35','8',80.00,'60094.062615',1,'31',24,'',''); } else if (id == 60095) { showPizzaWin('36b.','35','17',160.00,'60095.062615',1,'31',24,'',''); } else if (id == 60096) { showPizzaWin('36c.','35','26',240.00,'60096.062615',1,'31',24,'',''); } else if (id == 60097) { showPizzaWin('36d.','35','35',320.00,'60097.062615',1,'31',24,'',''); } else if (id == 60098) { showPizzaWin('37a.','36','8',80.00,'60098.062615',1,'31',25,'',''); } else if (id == 60099) { showPizzaWin('37b.','36','17',160.00,'60099.062615',1,'31',25,'',''); } else if (id == 60100) { showPizzaWin('37c.','36','26',240.00,'60100.062615',1,'31',25,'',''); } else if (id == 60101) { showPizzaWin('37d.','36','35',320.00,'60101.062615',1,'31',25,'',''); } else if (id == 60102) { showPizzaWin('38a.','37','8',80.00,'60102.062615',1,'31',26,'',''); } else if (id == 60103) { showPizzaWin('38b.','37','17',160.00,'60103.062615',1,'31',26,'',''); } else if (id == 60104) { showPizzaWin('38c.','37','26',240.00,'60104.062615',1,'31',26,'',''); } else if (id == 60105) { showPizzaWin('38d.','37','35',320.00,'60105.062615',1,'31',26,'',''); } else if (id == 60106) { showPizzaWin('39a.','38','8',80.00,'60106.062615',1,'31',27,'',''); } else if (id == 60107) { showPizzaWin('39b.','38','17',160.00,'60107.062615',1,'31',27,'',''); } else if (id == 60108) { showPizzaWin('39c.','38','26',240.00,'60108.062615',1,'31',27,'',''); } else if (id == 60109) { showPizzaWin('39d.','38','35',320.00,'60109.062615',1,'31',27,'',''); } else if (id == 60110) { showPizzaWin('40a.','39','8',80.00,'60110.062615',1,'31',28,'',''); } else if (id == 60111) { showPizzaWin('40b.','39','17',160.00,'60111.062615',1,'31',28,'',''); } else if (id == 60112) { showPizzaWin('40c.','39','26',240.00,'60112.062615',1,'31',28,'',''); } else if (id == 60113) { showPizzaWin('40d.','39','35',320.00,'60113.062615',1,'31',28,'',''); } else if (id == 60114) { showPizzaWin('41a.','40','8',80.00,'60114.062615',1,'31',29,'',''); } else if (id == 60115) { showPizzaWin('41b.','40','17',160.00,'60115.062615',1,'31',29,'',''); } else if (id == 60116) { showPizzaWin('41c.','40','26',240.00,'60116.062615',1,'31',29,'',''); } else if (id == 60117) { showPizzaWin('41d.','40','35',320.00,'60117.062615',1,'31',29,'',''); } else if (id == 60118) { showPizzaWin('42a.','41','8',80.00,'60118.062615',1,'31',30,'',''); } else if (id == 60119) { showPizzaWin('42b.','41','17',160.00,'60119.062615',1,'31',30,'',''); } else if (id == 60120) { showPizzaWin('42c.','41','26',240.00,'60120.062615',1,'31',30,'',''); } else if (id == 60121) { showPizzaWin('42d.','41','35',320.00,'60121.062615',1,'31',30,'',''); } else if (id == 10142) { additem('43a.','42','8','',39.99,'10142.062615','','',slctqty); } else if (id == 10143) { additem('43b.','42','14','',79.99,'10143.062615','','',slctqty); } else if (id == 10144) { additem('43c.','42','20','',99.99,'10144.062615','','',slctqty); } else if (id == 10145) { additem('44a.','43','8','',39.99,'10145.062615','','',slctqty); } else if (id == 10146) { additem('44b.','43','14','',79.99,'10146.062615','','',slctqty); } else if (id == 10147) { additem('44c.','43','20','',99.99,'10147.062615','','',slctqty); } else if (id == 10148) { additem('45a.','44','8','',39.99,'10148.062615','','',slctqty); } else if (id == 10149) { additem('45b.','44','14','',79.99,'10149.062615','','',slctqty); } else if (id == 10150) { additem('45c.','44','20','',99.99,'10150.062615','','',slctqty); } else if (id == 10151) { additem('46a.','45','8','',39.99,'10151.062615','','',slctqty); } else if (id == 10152) { additem('46b.','45','14','',79.99,'10152.062615','','',slctqty); } else if (id == 10153) { additem('46c.','45','20','',99.99,'10153.062615','','',slctqty); } else if (id == 10154) { additem('47a.','46','8','',39.99,'10154.062615','','',slctqty); } else if (id == 10155) { additem('47b.','46','14','',79.99,'10155.062615','','',slctqty); } else if (id == 10156) { additem('47c.','46','20','',99.99,'10156.062615','','',slctqty); } else if (id == 10157) { additem('48.','47','8','',1.00,'10157.062615','','',slctqty); } else if (id == 10158) { additem('49.','48','8','',1.00,'10158.062615','','',slctqty); } else if (id == 10159) { additem('50.','49','8','',2.35,'10159.062615','','',slctqty); } } function spwfuncq(id,slctqty) { if (id != Math.floor(id)) { id = Math.floor(id); } } function chgprices(id,id2,id3,id4) { var chgprice = "", chgitm = "", chgdsc = "", chgsub = ""; if (id == 60160) { if (!id2 && !id3 && !id4) { chgprice = "" + 44.99; } else if (id4) { chgsub = "" + "Cheese"; } else if (id2) { chgitm = "" + "4 Large Pizzas"; } else if (id3) { } } else if (id == 60163) { if (!id2 && !id3 && !id4) { chgprice = "" + 64.99; } else if (id4) { chgsub = "" + "Gourmet"; } else if (id2) { chgitm = "" + "4 Large Pizzas"; } else if (id3) { } } else if (id == 60164) { if (!id2 && !id3 && !id4) { chgprice = "" + 85.99; } else if (id4) { chgsub = "" + "Cheese"; } else if (id2) { chgitm = "" + "8 Large Pizzas"; } else if (id3) { } } else if (id == 60167) { if (!id2 && !id3 && !id4) { chgprice = "" + 127.99; } else if (id4) { chgsub = "" + "Gourmet"; } else if (id2) { chgitm = "" + "8 Large Pizzas"; } else if (id3) { } } else if (id == 60168) { if (!id2 && !id3 && !id4) { chgprice = "" + 125.99; } else if (id4) { chgsub = "" + "Cheese"; } else if (id2) { chgitm = "" + "12 Large Pizzas"; } else if (id3) { } } else if (id == 60171) { if (!id2 && !id3 && !id4) { chgprice = "" + 188.99; } else if (id4) { chgsub = "" + "Gourmet"; } else if (id2) { chgitm = "" + "12 Large Pizzas"; } else if (id3) { } } else if (id == 60172) { if (!id2 && !id3 && !id4) { chgprice = "" + 199.99; } else if (id4) { chgsub = "" + "Cheese"; } else if (id2) { chgitm = "" + "20 Large Pizzas"; } else if (id3) { } } else if (id == 60175) { if (!id2 && !id3 && !id4) { chgprice = "" + 304.99; } else if (id4) { chgsub = "" + "Gourmet"; } else if (id2) { chgitm = "" + "20 Large Pizzas"; } else if (id3) { } } else if (id == 60006) { if (!id2 && !id3 && !id4) { chgprice = "" + 32.99; } else if (id4) { chgsub = "" + "25 Pcs"; } else if (id2) { chgitm = "" + "Chicken Tenders Platter"; } else if (id3) { chgdsc = "" + "Served with honey mustard or BBQ Sauce"; } } else if (id == 60007) { if (!id2 && !id3 && !id4) { chgprice = "" + 63.99; } else if (id4) { chgsub = "" + "50 Pcs"; } else if (id2) { chgitm = "" + "Chicken Tenders Platter"; } else if (id3) { chgdsc = "" + "Served with honey mustard or BBQ Sauce"; } } else if (id == 60008) { if (!id2 && !id3 && !id4) { chgprice = "" + 84.99; } else if (id4) { chgsub = "" + "75 Pcs"; } else if (id2) { chgitm = "" + "Chicken Tenders Platter"; } else if (id3) { chgdsc = "" + "Served with honey mustard or BBQ Sauce"; } } else if (id == 60009) { if (!id2 && !id3 && !id4) { chgprice = "" + 109.99; } else if (id4) { chgsub = "" + "100 Pcs"; } else if (id2) { chgitm = "" + "Chicken Tenders Platter"; } else if (id3) { chgdsc = "" + "Served with honey mustard or BBQ Sauce"; } } else if (id == 10176) { if (!id2 && !id3 && !id4) { chgprice = "" + 12.99; } else if (id4) { chgsub = "" + "25 Pcs"; } else if (id2) { chgitm = "" + "Garlic Knots"; } else if (id3) { } } else if (id == 10177) { if (!id2 && !id3 && !id4) { chgprice = "" + 24.99; } else if (id4) { chgsub = "" + "50 Pcs"; } else if (id2) { chgitm = "" + "Garlic Knots"; } else if (id3) { } } else if (id == 10178) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "75 Pcs"; } else if (id2) { chgitm = "" + "Garlic Knots"; } else if (id3) { } } else if (id == 10179) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "100 Pcs"; } else if (id2) { chgitm = "" + "Garlic Knots"; } else if (id3) { } } else if (id == 10180) { if (!id2 && !id3 && !id4) { chgprice = "" + 29.99; } else if (id4) { chgsub = "" + "25 Pcs"; } else if (id2) { chgitm = "" + "Meatball Parm Sliders"; } else if (id3) { } } else if (id == 10181) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "50 Pcs"; } else if (id2) { chgitm = "" + "Meatball Parm Sliders"; } else if (id3) { } } else if (id == 10182) { if (!id2 && !id3 && !id4) { chgprice = "" + 79.99; } else if (id4) { chgsub = "" + "75 Pcs"; } else if (id2) { chgitm = "" + "Meatball Parm Sliders"; } else if (id3) { } } else if (id == 10183) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "100 Pcs"; } else if (id2) { chgitm = "" + "Meatball Parm Sliders"; } else if (id3) { } } else if (id == 10192) { if (!id2 && !id3 && !id4) { chgprice = "" + 29.99; } else if (id4) { chgsub = "" + "25 Pcs"; } else if (id2) { chgitm = "" + "Chicken Parmesan Sliders"; } else if (id3) { } } else if (id == 10193) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "50 Pcs"; } else if (id2) { chgitm = "" + "Chicken Parmesan Sliders"; } else if (id3) { } } else if (id == 10194) { if (!id2 && !id3 && !id4) { chgprice = "" + 79.99; } else if (id4) { chgsub = "" + "75 Pcs"; } else if (id2) { chgitm = "" + "Chicken Parmesan Sliders"; } else if (id3) { } } else if (id == 10195) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "100 Pcs"; } else if (id2) { chgitm = "" + "Chicken Parmesan Sliders"; } else if (id3) { } } else if (id == 10196) { if (!id2 && !id3 && !id4) { chgprice = "" + 26.99; } else if (id4) { chgsub = "" + "25 Pcs"; } else if (id2) { chgitm = "" + "Mozzarella Sticks"; } else if (id3) { } } else if (id == 10197) { if (!id2 && !id3 && !id4) { chgprice = "" + 51.99; } else if (id4) { chgsub = "" + "50 Pcs"; } else if (id2) { chgitm = "" + "Mozzarella Sticks"; } else if (id3) { } } else if (id == 10198) { if (!id2 && !id3 && !id4) { chgprice = "" + 77.99; } else if (id4) { chgsub = "" + "75 Pcs"; } else if (id2) { chgitm = "" + "Mozzarella Sticks"; } else if (id3) { } } else if (id == 10199) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "100 Pcs"; } else if (id2) { chgitm = "" + "Mozzarella Sticks"; } else if (id3) { } } else if (id == 10184) { if (!id2 && !id3 && !id4) { chgprice = "" + 26.99; } else if (id4) { chgsub = "" + "25 Pcs"; } else if (id2) { chgitm = "" + "Jalapeno Poppers"; } else if (id3) { } } else if (id == 10185) { if (!id2 && !id3 && !id4) { chgprice = "" + 51.99; } else if (id4) { chgsub = "" + "50 Pcs"; } else if (id2) { chgitm = "" + "Jalapeno Poppers"; } else if (id3) { } } else if (id == 10186) { if (!id2 && !id3 && !id4) { chgprice = "" + 77.99; } else if (id4) { chgsub = "" + "75 Pcs"; } else if (id2) { chgitm = "" + "Jalapeno Poppers"; } else if (id3) { } } else if (id == 10187) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "100 Pcs"; } else if (id2) { chgitm = "" + "Jalapeno Poppers"; } else if (id3) { } } else if (id == 60026) { if (!id2 && !id3 && !id4) { chgprice = "" + 22.99; } else if (id4) { chgsub = "" + "25 Pcs"; } else if (id2) { chgitm = "" + "Jumbo Wings"; } else if (id3) { } } else if (id == 60027) { if (!id2 && !id3 && !id4) { chgprice = "" + 45.99; } else if (id4) { chgsub = "" + "50 Pcs"; } else if (id2) { chgitm = "" + "Jumbo Wings"; } else if (id3) { } } else if (id == 60028) { if (!id2 && !id3 && !id4) { chgprice = "" + 89.99; } else if (id4) { chgsub = "" + "100 Pcs"; } else if (id2) { chgitm = "" + "Jumbo Wings"; } else if (id3) { } } else if (id == 60030) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Spaghetti Pasta"; } else if (id3) { chgdsc = "" + "Meat Sauce, Meatball or Sausage"; } } else if (id == 60031) { if (!id2 && !id3 && !id4) { chgprice = "" + 119.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Spaghetti Pasta"; } else if (id3) { chgdsc = "" + "Meat Sauce, Meatball or Sausage"; } } else if (id == 10032) { if (!id2 && !id3 && !id4) { chgprice = "" + 49.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Spaghetti w/ Marinara"; } else if (id3) { } } else if (id == 10033) { if (!id2 && !id3 && !id4) { chgprice = "" + 94.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Spaghetti w/ Marinara"; } else if (id3) { } } else if (id == 10034) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Penne Bolognese"; } else if (id3) { } } else if (id == 10035) { if (!id2 && !id3 && !id4) { chgprice = "" + 129.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Penne Bolognese"; } else if (id3) { } } else if (id == 10036) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Chicken Broccoli"; } else if (id3) { } } else if (id == 10037) { if (!id2 && !id3 && !id4) { chgprice = "" + 129.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Chicken Broccoli"; } else if (id3) { } } else if (id == 10040) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Baked Ziti"; } else if (id3) { } } else if (id == 10041) { if (!id2 && !id3 && !id4) { chgprice = "" + 119.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Baked Ziti"; } else if (id3) { } } else if (id == 10042) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Lasagna"; } else if (id3) { } } else if (id == 10043) { if (!id2 && !id3 && !id4) { chgprice = "" + 119.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Lasagna"; } else if (id3) { } } else if (id == 10200) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Chicken Diavola"; } else if (id3) { } } else if (id == 10201) { if (!id2 && !id3 && !id4) { chgprice = "" + 129.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Chicken Diavola"; } else if (id3) { } } else if (id == 10202) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Chicken Alfredo"; } else if (id3) { } } else if (id == 10203) { if (!id2 && !id3 && !id4) { chgprice = "" + 129.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Chicken Alfredo"; } else if (id3) { } } else if (id == 10204) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Shrimp Diavola"; } else if (id3) { } } else if (id == 10205) { if (!id2 && !id3 && !id4) { chgprice = "" + 129.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Shrimp Diavola"; } else if (id3) { } } else if (id == 10206) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Pene Pasta 3-Colore"; } else if (id3) { } } else if (id == 10207) { if (!id2 && !id3 && !id4) { chgprice = "" + 129.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Pene Pasta 3-Colore"; } else if (id3) { } } else if (id == 10208) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Seafood Pasta Combo"; } else if (id3) { } } else if (id == 10209) { if (!id2 && !id3 && !id4) { chgprice = "" + 159.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Seafood Pasta Combo"; } else if (id3) { } } else if (id == 10210) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "Half"; } else if (id2) { chgitm = "" + "Chesapeake Crab"; } else if (id3) { } } else if (id == 10211) { if (!id2 && !id3 && !id4) { chgprice = "" + 159.99; } else if (id4) { chgsub = "" + "Full"; } else if (id2) { chgitm = "" + "Chesapeake Crab"; } else if (id3) { } } else if (id == 60046) { if (!id2 && !id3 && !id4) { chgprice = "" + 19.99; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Garden Salad"; } else if (id3) { } } else if (id == 60047) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Garden Salad"; } else if (id3) { } } else if (id == 60048) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Garden Salad"; } else if (id3) { } } else if (id == 60049) { if (!id2 && !id3 && !id4) { chgprice = "" + 74.99; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Garden Salad"; } else if (id3) { } } else if (id == 60050) { if (!id2 && !id3 && !id4) { chgprice = "" + 24.99; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Caesar Salad Salad"; } else if (id3) { } } else if (id == 60051) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Caesar Salad Salad"; } else if (id3) { } } else if (id == 60052) { if (!id2 && !id3 && !id4) { chgprice = "" + 59.99; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Caesar Salad Salad"; } else if (id3) { } } else if (id == 60053) { if (!id2 && !id3 && !id4) { chgprice = "" + 74.99; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Caesar Salad Salad"; } else if (id3) { } } else if (id == 60054) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Grilled Chicken Salad"; } else if (id3) { } } else if (id == 60055) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Grilled Chicken Salad"; } else if (id3) { } } else if (id == 60056) { if (!id2 && !id3 && !id4) { chgprice = "" + 89.99; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Grilled Chicken Salad"; } else if (id3) { } } else if (id == 60057) { if (!id2 && !id3 && !id4) { chgprice = "" + 109.99; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Grilled Chicken Salad"; } else if (id3) { } } else if (id == 60058) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Gourmet Salad"; } else if (id3) { } } else if (id == 60059) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Gourmet Salad"; } else if (id3) { } } else if (id == 60060) { if (!id2 && !id3 && !id4) { chgprice = "" + 89.99; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Gourmet Salad"; } else if (id3) { } } else if (id == 60061) { if (!id2 && !id3 && !id4) { chgprice = "" + 109.99; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Gourmet Salad"; } else if (id3) { } } else if (id == 60062) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Greek Salad"; } else if (id3) { } } else if (id == 60063) { if (!id2 && !id3 && !id4) { chgprice = "" + 69.99; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Greek Salad"; } else if (id3) { } } else if (id == 60064) { if (!id2 && !id3 && !id4) { chgprice = "" + 89.99; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Greek Salad"; } else if (id3) { } } else if (id == 60065) { if (!id2 && !id3 && !id4) { chgprice = "" + 109.99; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Greek Salad"; } else if (id3) { } } else if (id == 60066) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60067) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60068) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60069) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60070) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60071) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60072) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60073) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60074) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60075) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60076) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60077) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60078) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60079) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60080) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60081) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60082) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60083) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60084) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60085) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60086) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Roast Beef Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60087) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Roast Beef Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60088) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Roast Beef Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60089) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Roast Beef Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60090) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60091) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60092) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60093) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Sandwich"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60094) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60095) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60096) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60097) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Turkey & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60098) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60099) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60100) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60101) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Tuna Salad Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60102) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60103) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60104) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60105) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Deli Ham & Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60106) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60107) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60108) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60109) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Italian Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60110) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60111) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60112) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60113) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "American Cold Cut Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60114) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Roast Beef Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60115) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Roast Beef Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60116) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Roast Beef Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60117) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Roast Beef Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60118) { if (!id2 && !id3 && !id4) { chgprice = "" + 80.00; } else if (id4) { chgsub = "" + "10 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60119) { if (!id2 && !id3 && !id4) { chgprice = "" + 160.00; } else if (id4) { chgsub = "" + "20 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60120) { if (!id2 && !id3 && !id4) { chgprice = "" + 240.00; } else if (id4) { chgsub = "" + "30 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 60121) { if (!id2 && !id3 && !id4) { chgprice = "" + 320.00; } else if (id4) { chgsub = "" + "40 Person"; } else if (id2) { chgitm = "" + "Turkey & Ham w/ Cheese Wrap"; } else if (id3) { chgdsc = "" + "w/ Small Bag of Chips"; } } else if (id == 10142) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "16 Person"; } else if (id2) { chgitm = "" + "Cheese Cake"; } else if (id3) { } } else if (id == 10143) { if (!id2 && !id3 && !id4) { chgprice = "" + 79.99; } else if (id4) { chgsub = "" + "32 Person"; } else if (id2) { chgitm = "" + "Cheese Cake"; } else if (id3) { } } else if (id == 10144) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "48 Person"; } else if (id2) { chgitm = "" + "Cheese Cake"; } else if (id3) { } } else if (id == 10145) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "16 Person"; } else if (id2) { chgitm = "" + "Chocolate Cake"; } else if (id3) { } } else if (id == 10146) { if (!id2 && !id3 && !id4) { chgprice = "" + 79.99; } else if (id4) { chgsub = "" + "32 Person"; } else if (id2) { chgitm = "" + "Chocolate Cake"; } else if (id3) { } } else if (id == 10147) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "48 Person"; } else if (id2) { chgitm = "" + "Chocolate Cake"; } else if (id3) { } } else if (id == 10148) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "16 Person"; } else if (id2) { chgitm = "" + "Carrot Cake"; } else if (id3) { } } else if (id == 10149) { if (!id2 && !id3 && !id4) { chgprice = "" + 79.99; } else if (id4) { chgsub = "" + "32 Person"; } else if (id2) { chgitm = "" + "Carrot Cake"; } else if (id3) { } } else if (id == 10150) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "48 Person"; } else if (id2) { chgitm = "" + "Carrot Cake"; } else if (id3) { } } else if (id == 10151) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "16 Person"; } else if (id2) { chgitm = "" + "Baklava Cake"; } else if (id3) { } } else if (id == 10152) { if (!id2 && !id3 && !id4) { chgprice = "" + 79.99; } else if (id4) { chgsub = "" + "32 Person"; } else if (id2) { chgitm = "" + "Baklava Cake"; } else if (id3) { } } else if (id == 10153) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "48 Person"; } else if (id2) { chgitm = "" + "Baklava Cake"; } else if (id3) { } } else if (id == 10154) { if (!id2 && !id3 && !id4) { chgprice = "" + 39.99; } else if (id4) { chgsub = "" + "16 Person"; } else if (id2) { chgitm = "" + "Tiramisu Cake"; } else if (id3) { } } else if (id == 10155) { if (!id2 && !id3 && !id4) { chgprice = "" + 79.99; } else if (id4) { chgsub = "" + "32 Person"; } else if (id2) { chgitm = "" + "Tiramisu Cake"; } else if (id3) { } } else if (id == 10156) { if (!id2 && !id3 && !id4) { chgprice = "" + 99.99; } else if (id4) { chgsub = "" + "48 Person"; } else if (id2) { chgitm = "" + "Tiramisu Cake"; } else if (id3) { } } else if (id == 10157) { if (!id2 && !id3 && !id4) { chgprice = "" + 1.00; } else if (id4) { chgsub = "" + "Each"; } else if (id2) { chgitm = "" + "12 Oz Can"; } else if (id3) { } } else if (id == 10158) { if (!id2 && !id3 && !id4) { chgprice = "" + 1.00; } else if (id4) { chgsub = "" + "Each"; } else if (id2) { chgitm = "" + "Bottle of Water"; } else if (id3) { } } else if (id == 10159) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.35; } else if (id4) { chgsub = "" + "Each"; } else if (id2) { chgitm = "" + "2 Liter Soda"; } else if (id3) { } } if (chgprice) { chgprice = cent(chgprice); return chgprice; } else if (chgitm) { return chgitm; } else if (chgdsc) { return chgdsc; } else if (chgsub) { return chgsub; } } function chgfrmprices(id2) { var subprce = '', subprce2 = '', newprice = '', getvar = ''; var nuq = navigator.userAgent; var ifrmed2 = ''; if (nuq.indexOf("MSIE 9") == -1 && nuq.indexOf("MSIE 1") == -1) { ifrmed2 = parent.document.getElementsByTagName("span"), i = ifrmed2.length; } else { ifrmed2 = parent.document.querySelectorAll("span"), i = ifrmed2.length; } var anext = i; while(i--) { if (ifrmed2[i].id && ifrmed2[i].id.indexOf('i_')!= -1) { subprce = ifrmed2[i].id; subprce2 = subprce.substr(2); newprice = chgprices(subprce2); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } } if (id2) { i = anext; while(i--) { if (ifrmed2[i].id) { if (ifrmed2[i].id.indexOf('a_')!= -1) { subitm = ifrmed2[i].id; subitm2 = subitm.substr(2); newprice = chgprices(subitm2,1); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } else if (ifrmed2[i].id.indexOf('b_')!= -1) { subitm = ifrmed2[i].id; subitm2 = subitm.substr(2); newprice = chgprices(subitm2,'',1); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } else if (ifrmed2[i].id.indexOf('c_')!= -1) { subitm = ifrmed2[i].id; subitm2 = subitm.substr(2); newprice = chgprices(subitm2,'','',1); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } } } } } p1 = p2 = p3 = p5 = 0; // if (id == null) { id = 0; } // if (id == 0) { var pj1 = -1, pj2 = 1, sctn = 0; var sectitlsw = divsecst = 0, subyfx = priceyfx = loopend0 = loopend1 = loopend2 = ''; for (var i = 0; i < mstr.length; i++) { if (mstr[i] == 0) { if (fds[p1][0] == 0 || fds[p1][0] == 1) { if (fds[p1][4] == undefined || fds[p1][4] == null) { fds[p1][4] = ''; } if (fds[p1][0] == 0) { for (var j = 7; j < fds[p1].length; j++) { p5 = j+1; if (fds[p1][j+5]) { subyfx = " - " + fds[p1][j+5]; } else { subyfx = ''; } n3w += ("
  • " + fds[p1][3] + " " + subyfx + "
    " + fds[p1][j+2] + "
    " + fds[p1][4] + "
  • "); if (fds[p1].length == j + 5 + 1) { break; }; j += 5; } } else { for (var j = 7; j < fds[p1].length; j++) { p5 = j+1; if (fds[p1][j+5]) { subyfx = " - " + fds[p1][j+5]; } else { subyfx = ''; } n3w += ("
  • " + fds[p1][3] + " " + subyfx + "
    " + fds[p1][j+2] + "
    " + fds[p1][4] + "
  • "); if (fds[p1].length == j + 8 + 1) { break; }; j += 8; } } } p1++; pj2++; } else if (mstr[i] < 4) { if (i != 0) { n3w += (""); } if (mstr[i] == 1) { n3w += ("
    " + sxs[p2][0] + "
    " + sxs[p2][1] + "
      "); } p2++; } else { p3++; } } n3w += (nd); n3w += (""); function morph(id,id2,id3,id4,id5) { document.getElementById('lfrme').innerHTML = n3w; } function csspull() { n6w = (".olcg { height:25px; vertical-align:top;} .gentext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; line-height: 16px; color: #000000; } .gentitle { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; line-height: 16px; color: #21314A; } .topn { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 16px; color: #000000; } .topn2 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; line-height: 16px; color: #ffffff; } .topn3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; line-height: 16px; color: #ffffff; } .topn4 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; line-height: 16px; color: #ffffff; } .topn5 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; line-height: 16px; color: #ffffff; } .trhover:hover { background-color:#91a9cf; } .csstime { color:#333333; } .cssrest { font-family: Arial, Helvetica, sans-serif !important; color:#333333; font-size:14px; vertical } .ocssrest { color:#333333; } .cssresta { font-family: Arial, Helvetica, sans-serif !important; color:#333333; font-size:14px; /*font-weight: bold !important;*/ } .cssrestb { color:#333333; } .cssrestc { font-family: Arial, Helvetica, sans-serif !important; color:#333333; } .qcsstime { font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#333333; font-weight: normal; } .qcssrest { font-size:11px; font-family:Arial, Helvetica, sans-serif; color:#000000; font-weight: bold; } .qcssresta { font-size:11px; font-family:Arial, Helvetica, sans-serif; color:#000000; font-weight: bold; } .qcssrestb { font-size:11px; font-family:Arial, Helvetica, sans-serif; color:#000000; } .qcssrestc { font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#000000; font-weight: bold; } body { padding:0px; margin:0px; } .sec_bar{position: relative; margin-bottom: 20px; margin-left:10px; background-color:#ED1B24;color:#fff;height:25px;text-align:center;} .round { -moz-border-radius: 10px; -webkit-border-radius: 10px; -khmtl-border-radius: 10px; border-radius: 20px; background-color: #ED1B24; color: #ffffff; font-size:16px; font-weight:bold; height:600px; } #hrid { color:#000000; } .overclose { height:2px; color: #ED1B24; position:relative; left:-5px; top:2px; } .overclose:hover { height:2px; color: #ED1B24; position:relative; left:-5px; top:2px; } .overclose2 { color: #ED1B24; font-size:0px; height:0px; line-height:2px; } .poptitle { font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; line-height: 16px; color: #333; vertical-align:bottom; } .popmine { width: 100%; border-bottom: 1px dotted black; margin-bottom:12px; } .popmine2 { width: 100%; border-top: 1px dotted black; height:15px; } .popmine3 { width: 100%; border-top: 1px dotted black; height:10px; } .popmine4 { width: 100%; border-top: 1px dotted black; height:10px; } .csstrnom { padding-bottom:15px; } .pricetext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 14px; color: #21314a; vertical-align:bottom; } .poptext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 14px; color: #21314a; padding-bottom:10px; padding-top:10px; padding-right:2px; } .poptext2 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 14px; color: #55aaee; padding-bottom:10px; padding-top:10px; } form { padding-left:10px; padding-right:10px; } .cssnomspan { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 13px; color: #000000; vertical-align:bottom; } #qaddbtn { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #ffffff; border:1px solid #ED1B24; background:#ED1B24; -moz-border-radius: 4px; -webkit-border-radius: 4px; -khmtl-border-radius: 4px; border-radius: 3px; margin:0px; padding:0px; height:17px; width:40px; cursor:pointer; } .headcss { vertical-align:top; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color:#000000; line-height:16px; padding:0px; margin:0px; } .radchks { margin-right:15px; vertical-align:middle; } .trhover:hover { background-color:#ED1B24; } .cssnomenbox { -moz-border-radius: 8px; -webkit-border-radius: 8px; -khmtl-border-radius: 8px; border-radius: 8px; padding:3px; border:solid 1px black; height:10px; font-size:10px; background-color:#e7e7e8; width:200px; } .cssineobox { -moz-border-radius: 8px; -webkit-border-radius: 8px; -khmtl-border-radius: 8px; border-radius: 8px; padding:3px; border:solid 1px black; height:40px; font-size:10px; background-color:#e7e7e8; width:200px; } .csscancelbox { color:#000000; text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 13px; } .cssclearbox { color:#ecb51c; text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 13px; } span { font-size:14px; } .taxnone{ display:none; } .txtbxr { font-size: 12px; width: 20px; border-spacing:0px; margin:0px; margin-right:10px; padding:0px; vertical-align:middle; line-height: 12px; } #rfrme { position:relative; width: 315px; z-index:1; float: left; text-align: left; margin:0px 0px 0px 0px; padding:0px 0px 10px 5px; }"); var styleelm = document.createElement('style'); styleelm.type = 'text/css'; if (styleelm.styleSheet) { styleelm.styleSheet.cssText = n6w; } else { styleelm.appendChild(document.createTextNode(n6w)); } document.getElementsByTagName("head")[0].appendChild(styleelm); }