if (parseInt(navigator.appVersion)>3){ screenw = screen.width; screenh = screen.height; }else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()){ var jToolkit = java.awt.Toolkit.getDefaultToolkit(); var jTimer = java.util.Timer; var jTimerTask = java.util.TimerTask; var jScreenSize = jToolkit.getScreenSize(); screenw = jScreenSize.width; screenh = jScreenSize.height; } import java.util.Timer; import java.util.TimerTask; import java.awt.Toolkit; function pophelp(item){ var pophelp = ''; pophelp = window.open('help.php#' + item + '','pophelp','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=620,height=' + (screenh - 100) + ',left=0,top=0'); if (window.focus) {pophelp.focus()} } function poppolicy(){ var poppolicy = ''; poppolicy = window.open('sitepolicy.php','poppolicy','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=620,height=' + (screenh - 100) + ',left=0,top=0'); if (window.focus) {poppolicy.focus()} } function popterms(){ var popterms = ''; popterms = window.open('siteterms.php','siteterms','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=620,height=' + (screenh - 100) + ',left=0,top=0'); if (window.focus) {popterms.focus()} } function popcopyright(){ var popcopyright = ''; popcopyright = window.open('sitecopyright.php','popcopyright','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=620,height=' + (screenh - 100) + ',left=0,top=0'); if (window.focus) {popcopyright.focus()} } function popsafety(){ var popsafety = ''; popsafety = window.open('sitesafety.php','popsafety','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=620,height=' + (screenh - 100) + ',left=0,top=0'); if (window.focus) {popsafety.focus()} } function popapp(appid){ var popapp = ''; popapp = window.open('app.php?appid='+appid+'','popapp','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=700,height=450,left=0,top=0'); if (window.focus) {popapp.focus()} } function poppic(typ,img){ var poppic = ''; poppic = window.open('poppic.php?typ='+typ+'&img='+img+'','poppic','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=420,height=420,left=0,top=0'); if (window.focus) {poppic.focus()} } function popcol(fld){ var popcol = ''; popcol = window.open('color.php?fld='+fld+'','popcol','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=320,height=290,left=0,top=0'); if (window.focus) {popcol.focus()} } function popmysite(sid){ var popmysite = ''; popmysite = window.open('livesiteindex.php?sid='+sid+'','popmysite','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=770,height=' + (screenh - 100) + ',left=0,top=0'); if (window.focus) {popmysite.focus()} } // PHONE NUMBER EDITS function checkKey(objinput,event,maxlength,nextfield){ //KEYCODE (ON KEY UP CAUSES THESE KEYS TO FIRE) //9 = TAB //16 = SHIFT if (event.keyCode != 9 && event.keyCode != 16){ var ValidChars = "0123456789"; var Char = ""; var sText = objinput.value; var nText = ""; for (i = 0; i < objinput.value.length; i++){ Char = sText.charAt(i); if (ValidChars.indexOf(Char) >= 0){ nText = nText + Char; if (i + 1 >= maxlength){ objinput.form.elements[nextfield].focus(); objinput.form.elements[nextfield].select(); } } } if (nText != null){ objinput.value = nText; }else{ objinput.value = ""; } } } function setStyle(frm,value){ // SET FIELD OBJECT Obj = findObj(frm); if (Obj){ if (Obj.type == "text"){ Obj.value = value; } // SPLIT FRM BY PERIOD var arr_frm = frm.split("_"); if (arr_frm.length == 2){ var cssloc = arr_frm[0]; // CSS LOCATION var cssatr = arr_frm[1]; // CSS ATTRIBUTE //Obj = findObj(cssloc); // FIND OBJECT var e=document.getElementsByName(cssloc); // FIND OBJECT BY NAME; RETURNS ARRAY // FONT-FAMILY (SET ALL FIELDS TO THIS FONT-FAMILY) if (cssatr == "fontfamily"){ var e=document.getElementsByName('BODYTxt'); for(var i=0;i=0;i--){ if(TCN_selValueGroup[i]!=""){ for(j=0;j=0;k--){ if(TCN_selValueGroup[k]=="") TCN_selValueGroup[k]=TCN_arrayValues[j][(k*2)+1]; } } } } } } function TCN_loadMenu(daIndex){ var selectionMade=false; daArray=TCN_tempArray[daIndex]; TCN_comboGroup[daIndex].options.length=0; for(i=0;i 99){ showdiv('fcatadd'); hidediv('fcataddbadd'); showdiv('fcataddbupdate'); objAddText.innerHTML = "update or remove this food category"; objAddField.value = objCat3.options[objCat3.selectedIndex].text; }else{ hidediv('fcatadd'); hidediv('fcataddbadd'); hidediv('fcataddbupdate'); } } } } // BEVERAGE if (objCat1.options[objCat1.options.selectedIndex].value == 2){ hidediv('cat2'); hidediv('cat3'); if (typ == "mod"){ activate('tim1'); activate('tim2'); activate('tim3'); activate('tim4'); activate('tim5'); activate('tim6'); // BEVERAGE - ADD NEW ITEM if (objCat2.options[objCat2.options.selectedIndex].value == "addnew"){ showdiv('fcatadd'); showdiv('fcataddbadd'); hidediv('fcataddbupdate'); objAddText.innerHTML = "add a beverage category"; objAddField.value = ""; }else{ // BEVERAGE - UPDATE|REMOVE if (objCat2.options[objCat2.options.selectedIndex].value > 99){ showdiv('fcatadd'); hidediv('fcataddbadd'); showdiv('fcataddbupdate'); objAddText.innerHTML = "update or remove this beverage category"; objAddField.value = objCat2.options[objCat2.selectedIndex].text; }else{ hidediv('fcatadd'); hidediv('fcataddbadd'); hidediv('fcataddbupdate'); } } } } // BEER if (objCat1.options[objCat1.options.selectedIndex].value == 3){ showdiv('cat2'); showdiv('cat3'); if (typ == "mod"){ hidediv('fcatadd'); hidediv('fcataddbadd'); hidediv('fcataddbupdate'); deactivate('tim1'); deactivate('tim2'); deactivate('tim3'); deactivate('tim4'); deactivate('tim5'); deactivate('tim6'); } } // WINE if (objCat1.options[objCat1.options.selectedIndex].value == 4){ showdiv('cat2'); showdiv('cat3'); if (typ == "mod"){ deactivate('tim1'); deactivate('tim2'); deactivate('tim3'); deactivate('tim4'); deactivate('tim5'); deactivate('tim6'); // WINE - ADD NEW ITEM if (objCat3.options[objCat3.options.selectedIndex].value == "addnew"){ showdiv('fcatadd'); showdiv('fcataddbadd'); hidediv('fcataddbupdate'); objAddText.innerHTML = "add a wine category"; objAddField.value = ""; }else{ // WINE - UPDATE|REMOVE if (objCat3.options[objCat3.options.selectedIndex].value > 99){ showdiv('fcatadd'); hidediv('fcataddbadd'); showdiv('fcataddbupdate'); objAddText.innerHTML = "update or remove this wine category"; objAddField.value = objCat3.options[objCat3.selectedIndex].text; }else{ hidediv('fcatadd'); hidediv('fcataddbadd'); hidediv('fcataddbupdate'); } } } } } } } // FIND VALUE FROM KEY IN QUERYSTRING function getParameter ( queryString, parameterName ){ // Add "=" to the parameter name (i.e. parameterName=value) var parameterName = parameterName + "="; if ( queryString.length > 0 ) { // Find the beginning of the string begin = queryString.indexOf ( parameterName ); // If the parameter name is not found, skip it, otherwise return the value if ( begin != -1 ) { // Add the length (integer) to the beginning begin += parameterName.length; // Multiple parameters are separated by the "&" sign end = queryString.indexOf ( "&" , begin ); if ( end == -1 ) { end = queryString.length } // Return the string return unescape ( queryString.substring ( begin, end ) ); } // Return "null" if no parameter has been found return "null"; } } // FIND DOM OBJECT function findObj(n, d){ //v4.01 var p,i,x; if(!d){ d=document; } if((p=n.indexOf("?"))>0&&parent.frames.length){ d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all){ x=d.all[n]; } for (i=0;!x&&i>|0|Category 2 >>|0|Category 3 >>|0"); TCN_addContent('Food|1|Select a Category|0|Category 3 >>|'); TCN_addContent('Food|1|Appetizers|1|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Food|1|Appetizers|1|Add New Item|addnew'); } TCN_addContent('Food|1|Appetizers|1|Appetizer|1'); TCN_addContent('Food|1|Sides|2|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Food|1|Sides|2|Add New Item|addnew'); } TCN_addContent('Food|1|Sides|2|Side|1'); TCN_addContent('Food|1|Entrees|3|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Food|1|Entrees|3|Add New Item|addnew'); } TCN_addContent('Food|1|Entrees|3|Entree|1'); TCN_addContent('Food|1|Desserts|4|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Food|1|Desserts|4|Add New Item|addnew'); } TCN_addContent('Food|1|Desserts|4|Dessert|1'); TCN_addContent('Food|1|Kids Menu|5|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Food|1|Kids Menu|5|Add New Item|addnew'); } TCN_addContent('Food|1|Kids Menu|5|Kids Menu|1'); TCN_addContent('Beverage|2|n/a|0|n/a|0'); //TCN_addContent('Beverage|2|Select a Category|0|n/a|0'); //if (typ == "mod"){ // TCN_addContent('Beverage|2|Add New Item|addnew|n/a|0'); //} //TCN_addContent('Beverage|2|Beverage|1|n/a|0'); //TCN_addContent('Beverage|2|Water|2|n/a|0'); //TCN_addContent('Beverage|2|Milk|3|n/a|0'); //TCN_addContent('Beverage|2|Juice|4|n/a|0'); //TCN_addContent('Beverage|2|Soft Drinks|5|n/a|0'); //TCN_addContent('Beverage|2|Sports & Energy|6|n/a|0'); //TCN_addContent('Beverage|2|Tea|7|n/a|0'); //TCN_addContent('Beverage|2|Coffee|8|n/a|0'); //TCN_addContent('Beverage|2|Liquor|9|n/a|0'); //TCN_addContent('Beverage|2|Mixed Drinks|10|n/a|0'); TCN_addContent('Beer|3|Select a Category|0|Category 3 >>|0'); TCN_addContent('Beer|3|Bottled|1|Select a Category|0'); TCN_addContent('Beer|3|Bottled|1|Import|1'); TCN_addContent('Beer|3|Bottled|1|Domestic|2'); TCN_addContent('Beer|3|Bottled|1|Microbrew|3'); TCN_addContent('Beer|3|Draft|2|Select a Category|0'); TCN_addContent('Beer|3|Draft|2|Import|1'); TCN_addContent('Beer|3|Draft|2|Domestic|2'); TCN_addContent('Beer|3|Draft|2|Microbrew|3'); TCN_addContent('Wine|4|Select a Category|0|Category 3 >>|0'); TCN_addContent('Wine|4|Red|1|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Wine|4|Red|1|Add New Item|addnew'); } TCN_addContent('Wine|4|Red|1|Blend|1'); TCN_addContent('Wine|4|Red|1|Barbera|2'); TCN_addContent('Wine|4|Red|1|Bardolino|3'); TCN_addContent('Wine|4|Red|1|Barolo|4'); TCN_addContent('Wine|4|Red|1|Beaujolais|5'); TCN_addContent('Wine|4|Red|1|Bordeaux|6'); TCN_addContent('Wine|4|Red|1|Burgundy|7'); TCN_addContent('Wine|4|Red|1|Carmenere|8'); TCN_addContent('Wine|4|Red|1|Cabernet Sauvignon|9'); TCN_addContent('Wine|4|Red|1|Châteaunuf-du-Pape|10'); TCN_addContent('Wine|4|Red|1|Chianti|11'); TCN_addContent('Wine|4|Red|1|Côtes du Rhône|12'); TCN_addContent('Wine|4|Red|1|Gamay|13'); TCN_addContent('Wine|4|Red|1|Grenache/Garnacha|14'); TCN_addContent('Wine|4|Red|1|Malbec|15'); TCN_addContent('Wine|4|Red|1|Merlot|16'); TCN_addContent('Wine|4|Red|1|Nebbiolo|17'); TCN_addContent('Wine|4|Red|1|Petite Sirah|18'); TCN_addContent('Wine|4|Red|1|Pinot Noir|19'); TCN_addContent('Wine|4|Red|1|Port|20'); TCN_addContent('Wine|4|Red|1|Rioja|21'); TCN_addContent('Wine|4|Red|1|Sangiovese|22'); TCN_addContent('Wine|4|Red|1|Syrah/Shiraz|23'); TCN_addContent('Wine|4|Red|1|Tempranillo|24'); TCN_addContent('Wine|4|Red|1|Touriga Nacional|25'); TCN_addContent('Wine|4|Red|1|Valpolicella|26'); TCN_addContent('Wine|4|Red|1|Zinfandel|27'); TCN_addContent('Wine|4|White|2|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Wine|4|White|2|Add New Item|addnew'); } TCN_addContent('Wine|4|White|2|Blend|1'); TCN_addContent('Wine|4|White|2|Bordeaux|2'); TCN_addContent('Wine|4|White|2|Burgundy|3'); TCN_addContent('Wine|4|White|2|Cabernet Franc|4'); TCN_addContent('Wine|4|White|2|Chablis|5'); TCN_addContent('Wine|4|White|2|Chardonnay|6'); TCN_addContent('Wine|4|White|2|Chenin Blanc|7'); TCN_addContent('Wine|4|White|2|Colombard|8'); TCN_addContent('Wine|4|White|2|Fume Blanc|9'); TCN_addContent('Wine|4|White|2|Garganega|10'); TCN_addContent('Wine|4|White|2|Garganega-Suave|11'); TCN_addContent('Wine|4|White|2|Gewürztraminer|12'); TCN_addContent('Wine|4|White|2|Mosel|13'); TCN_addContent('Wine|4|White|2|Müller Thurgau|14'); TCN_addContent('Wine|4|White|2|Muscat|15'); TCN_addContent('Wine|4|White|2|Muscat Canelli|16'); TCN_addContent('Wine|4|White|2|Nuragus|17'); TCN_addContent('Wine|4|White|2|Pinot Blanc|18'); TCN_addContent('Wine|4|White|2|Pinot Gris/Pinot Grigio|19'); TCN_addContent('Wine|4|White|2|Pouilly-Fuissé|20'); TCN_addContent('Wine|4|White|2|Reisling|21'); TCN_addContent('Wine|4|White|2|Rhine/Rheingau|22'); TCN_addContent('Wine|4|White|2|Sancerre|23'); TCN_addContent('Wine|4|White|2|Sauternes|24'); TCN_addContent('Wine|4|White|2|Sauvignon Blanc|25'); TCN_addContent('Wine|4|White|2|Soave|26'); TCN_addContent('Wine|4|White|2|Torrontés|27'); TCN_addContent('Wine|4|White|2|Trebbiano|28'); TCN_addContent('Wine|4|White|2|Verdelho|29'); TCN_addContent('Wine|4|White|2|Viognier|30'); TCN_addContent('Wine|4|White|2|White Zinfandel|31'); TCN_addContent('Wine|4|Sparkling Wines|3|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Wine|4|Sparkling Wines|3|Add New Item|addnew'); } TCN_addContent('Wine|4|Sparkling Wines|3|Sparkling Wine|1'); TCN_addContent('Wine|4|Dessert Wines|4|Select a Category|0'); if (typ == "mod"){ TCN_addContent('Wine|4|Dessert Wines|4|Add New Item|addnew'); } TCN_addContent('Wine|4|Dessert Wines|4|Dessert Wine|1'); }