%@LANGUAGE="JAVASCRIPT"%> <% var rsLastMinuteDeals = Server.CreateObject("ADODB.Recordset"); rsLastMinuteDeals.ActiveConnection = MM_ConnDeals_STRING; rsLastMinuteDeals.Source = "SELECT * FROM DealsSpecials WHERE deals_LastMinute = 1 AND removeFromWeb = 0"; rsLastMinuteDeals.CursorType = 0; rsLastMinuteDeals.CursorLocation = 2; rsLastMinuteDeals.LockType = 3; rsLastMinuteDeals.Open(); var rsLastMinuteDeals_numRows = 0; %> <% var rsLuxuryDeals = Server.CreateObject("ADODB.Recordset"); rsLuxuryDeals.ActiveConnection = MM_ConnDeals_STRING; rsLuxuryDeals.Source = "SELECT * FROM DealsSpecials WHERE deals_Luxury = 1 AND removeFromWeb = 0"; rsLuxuryDeals.CursorType = 0; rsLuxuryDeals.CursorLocation = 2; rsLuxuryDeals.LockType = 3; rsLuxuryDeals.Open(); var rsLuxuryDeals_numRows = 0; %> <% var rsEarlyBirds = Server.CreateObject("ADODB.Recordset"); rsEarlyBirds.ActiveConnection = MM_ConnDeals_STRING; rsEarlyBirds.Source = "SELECT * FROM DealsSpecials WHERE deals_EarlyBirds = 1 AND removeFromWeb = 0"; rsEarlyBirds.CursorType = 0; rsEarlyBirds.CursorLocation = 2; rsEarlyBirds.LockType = 3; rsEarlyBirds.Open(); var rsEarlyBirds_numRows = 0; %> <% var Repeat1__numRows = 10; var Repeat1__index = 0; rsLastMinuteDeals_numRows += Repeat1__numRows; %> <% var Repeat2__numRows = 10; var Repeat2__index = 0; rsLuxuryDeals_numRows += Repeat2__numRows; %> <% var Repeat3__numRows = 10; var Repeat3__index = 0; rsEarlyBirds_numRows += Repeat3__numRows; %> <% var MM_paramName = ""; %> <% // *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters // create the list of parameters which should not be maintained var MM_removeList = "&index="; if (MM_paramName != "") MM_removeList += "&" + MM_paramName.toLowerCase() + "="; var MM_keepURL="",MM_keepForm="",MM_keepBoth="",MM_keepNone=""; // add the URL parameters to the MM_keepURL string for (var items=new Enumerator(Request.QueryString); !items.atEnd(); items.moveNext()) { var nextItem = "&" + items.item().toLowerCase() + "="; if (MM_removeList.indexOf(nextItem) == -1) { MM_keepURL += "&" + items.item() + "=" + Server.URLencode(Request.QueryString(items.item())); } } // add the Form variables to the MM_keepForm string for (var items=new Enumerator(Request.Form); !items.atEnd(); items.moveNext()) { var nextItem = "&" + items.item().toLowerCase() + "="; if (MM_removeList.indexOf(nextItem) == -1) { MM_keepForm += "&" + items.item() + "=" + Server.URLencode(Request.Form(items.item())); } } // create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL + MM_keepForm; if (MM_keepBoth.length > 0) MM_keepBoth = MM_keepBoth.substring(1); if (MM_keepURL.length > 0) MM_keepURL = MM_keepURL.substring(1); if (MM_keepForm.length > 0) MM_keepForm = MM_keepForm.substring(1); %>