 var sindx,eindx,low,high,thisday,thishour;
var LnCnt,CurrentItem,EditMode,EditItem;
var CurrentElement,CurrentOption,CurrentLine;
var WholePtr,FractionPtr,Qty,TaxCode;
var oitem=new Array();
var gtotal=new Array();

var headpage='<HTML><HEAD><LINK href="http://www.fxmenu.com/General/css1.css" rel="stylesheet" type="text/css"></HEAD>'+
'<BODY bgcolor="#CEE7FF" topmargin="0" leftmargin="0"><CENTER><H4>'+Sname+
'&nbsp;&nbsp;&nbsp;&nbsp;'+Sphone+'&nbsp;&nbsp;&nbsp;&nbsp;Fax: '+Sfax+'<BR>'+
Sadr+'&nbsp;&nbsp;&nbsp;&nbsp;'+'Email: <A href="mailto:'+Oemail+'">'+Oemail+'</A>'+
'</H4></CENTER></BODY></HTML>';

var geninfo1='<HTML><HEAD><LINK href="http://www.fxmenu.com/General/css2.css" rel="stylesheet" type="text/css">'+
'</HEAD><BODY><CENTER><FONT color=blue><B>General Information</B></FONT><HR>'+
'<B>'+ScatInfo[1]+'<BR>'+ScatInfo[2]+'</B><BR><BR>';

var geninfo2='<HTML><HEAD><LINK href="http://www.fxmenu.com/General/css2.css" rel="stylesheet" type="text/css">'+
'</HEAD><BODY><CENTER>';

var orderform='<FORM method="post" action="http://www.philly-direct.com/Restaurants/order.cgi?restaurant="+Fname+"&action=Modify&recno=7">';


var headstring='<HTML><HEAD><LINK href="http://www.fxmenu.com/General/css1.css" rel="stylesheet" type="text/css"></HEAD>';
var bodystring='<BODY bgcolor="#CEE7FF">';
var blankpage='<HTML><HEAD></HEAD><BODY bgcolor="#CEE7FF"></BODY></HTML>';
var itemform='<FORM NAME="mform" enctype="textplain">';
var addbotton='<span class="bt"><a class="bt" href="#" onclick="parent.hidden.DisplayOrder();return false;">Add to Purchase</a></span>';
var revbotton='<span class="bt"><a class="bt" href="#" onclick="parent.hidden.ReviewOrder();return false;">Review Order</a></span>';
var modbotton='<span class="bt"><a class="bt" href="#" onclick="parent.hidden.DisplayOrder();return false;">Modify Purchase</a></span>';
var orderform='<FORM NAME="oform" enctype="textplain">';
var continuebotton='<span class="bt"><a class="bt" href="#" onclick="parent.hidden.ContinueOrder();return false;">Continue Ordering</a></span>';
var cancelbotton='<span class="bt"><a class="bt" href="#" onclick="parent.hidden.CancelOrder();return false;">Cancel Order</a></span>';
var completebotton='<span class="bt"><a class="bt" href="#" onclick="parent.hidden.CompleteOrder();return false;">Complete Order</a></span>';
var bottonset='<table border=0><tr><td>'+continuebotton+'</td><td>'+cancelbotton+'</td><td>'+completebotton+'</td>';
var deletebotton1='<span class="bt2"><a class="bt2" href="#" onclick="parent.hidden.DeleteItem(';
var deletebotton2=');return false;">Delete</a></span>';
var changebotton1='<span class="bt2"><a class="bt2" href="#" onclick="parent.hidden.ChangeItem(';
var changebotton2=');return false;">Change</a></span>';

var dayname=new Array();
dayname[1]='Sunday';
dayname[2]='Monday';
dayname[3]='Tuesday';
dayname[4]='Wednesday';
dayname[5]='Thursday';
dayname[6]='Friday';
dayname[7]='Saturday';

var civilhol=new Array();
civilhol[0]=28;
civilhol[1]=[0,1,'New Year`s Day'];
civilhol[2]=[0,16,'Martin Luther King, Jr./Civil Rights Day'];
civilhol[3]=[1,2,'Groundhog Day'];
civilhol[4]=[1,14,'Valentine`s Day'];
civilhol[5]=[1,20,'Presidents` Day'];
civilhol[6]=[2,1,'Ash Wednesday'];
civilhol[7]=[2,17,'St. Patrick`s Day'];
civilhol[8]=[3,9,'Palm Sunday'];
civilhol[9]=[3,14,'Good Friday'];
civilhol[10]=[3,16,'Easter'];
civilhol[11]=[3,28,'Arbor Day'];
civilhol[12]=[4,8,'V-E Day'];
civilhol[13]=[4,14,'Mother`s Day'];
civilhol[14]=[4,29,'Memorial Day'];
civilhol[15]=[5,6,'D-Day Day'];
civilhol[16]=[5,14,'Flag Day'];
civilhol[17]=[5,18,'Father`s Day'];
civilhol[18]=[6,4,'Independence Day'];
civilhol[19]=[7,1,'American Family Day'];
civilhol[20]=[8,2,'VJ Day'];
civilhol[21]=[8,4,'Labor Day'];
civilhol[22]=[8,17,'Constitution Commemoration Day'];
civilhol[23]=[9,9,'Columbus Day'];
civilhol[24]=[9,31,'Halloween'];
civilhol[25]=[10,7,'Election Day'];
civilhol[26]=[10,11,'Veterans Day'];
civilhol[27]=[10,23,'Thanksgiving Day'];
civilhol[28]=[11,25,'Christmas Day'];

var jewishol=new Array();
jewishol[0]=55;
jewishol[1]=[11,4,'Light 1 Hanukkah candle'];
jewishol[2]=[11,5,'Light 2 Hanukkah candles'];
jewishol[3]=[11,6,'Light 3 Hanukkah candles'];
jewishol[4]=[11,7,'Light 4 Hanukkah candles'];
jewishol[5]=[11,8,'Light 5 Hanukkah candles'];
jewishol[6]=[11,9,'Light 6 Hanukkah candles'];
jewishol[7]=[11,10,'Light 7 Hanukkah candles'];
jewishol[8]=[11,11,'Light 8 Hanukkah candles'];
jewishol[9]=[11,12,'Eigth Day of Hanukkah'];
jewishol[10]=[11,18,'Erev Fast 10th of Teves'];
jewishol[11]=[11,19,'Fast 10th of Teves'];
jewishol[12]=[0,22,'Tu Bishvat'];
jewishol[13]=[2,19,'Erev Fast of Esther'];
jewishol[14]=[2,20,'Fast of Esther'];
jewishol[15]=[2,21,'Purim'];
jewishol[16]=[2,22,'Shushan Purim'];
jewishol[17]=[3,19,'Eruv Passover, First Seder'];
jewishol[18]=[3,20,'Passover 1, Second Seder'];
jewishol[19]=[3,21,'Passover 2'];
jewishol[20]=[3,22,'Chol Hamoed Passover 1'];
jewishol[21]=[3,23,'Chol Hamoed Passover 2'];
jewishol[22]=[3,24,'Chol Hamoed Passover 3'];
jewishol[23]=[3,25,'Chol Hamoed Passover 4'];
jewishol[24]=[3,26,'Passover 7'];
jewishol[25]=[3,27,'Passover 8'];
jewishol[26]=[4,2,'Yom HaShoah'];
jewishol[27]=[4,9,'Yom HaZikaron'];
jewishol[28]=[4,10,'Yom HaAtzmaut'];
jewishol[29]=[4,23,'Lag Baomer'];
jewishol[30]=[4,26,'Yom Yerushalayim'];
jewishol[31]=[5,8,'Erev Shavuot'];
jewishol[32]=[5,9,'Shavuot 1'];
jewishol[33]=[5,10,'Shavuot 2'];
jewishol[34]=[6,19,'Erev Fast 17th of Tamuz'];
jewishol[35]=[6,20,'Fast 17th of Tamuz'];
jewishol[36]=[7,9,'Erev Fast 9th of Av'];
jewishol[37]=[7,10,'Fast 9th of Av'];
jewishol[38]=[7,0,'Tu B`Av'];
jewishol[39]=[8,12,'Erev Rosh Hashanah'];
jewishol[40]=[8,13,'Rosh Hashanah 1'];
jewishol[41]=[8,14,'Rosh Hashanah 2'];
jewishol[42]=[8,14,'Erev Fast of Gedaliah'];
jewishol[43]=[8,15,'Fast of Gedaliah'];
jewishol[44]=[8,21,'Kol Nidre at sundown'];
jewishol[45]=[8,22,'Yom Kippur'];
jewishol[46]=[8,26,'Erev Succos'];
jewishol[47]=[8,27,'Succos 1'];
jewishol[48]=[8,28,'Succos 2'];
jewishol[49]=[8,29,'Chol Hamoed Succos 1'];
jewishol[50]=[8,30,'Chol Hamoed Succos 2'];
jewishol[51]=[9,1,'Chol Hamoed Succos 3'];
jewishol[52]=[9,2,'Chol Hamoed Succos 4'];
jewishol[53]=[9,3,'Hoshana Rabah'];
jewishol[54]=[9,4,'Shemini Atzeret'];
jewishol[55]=[9,5,'Simhat Torah'];

