<%@LANGUAGE="VBSCRIPT"%> <% set news_letter_rs1 = Server.CreateObject("ADODB.Recordset") news_letter_rs1.ActiveConnection = "dsn=vamc_news;" news_letter_rs1.Source = "SELECT * FROM news_letter WHERE order_view = '1' ORDER BY ID DESC" news_letter_rs1.CursorType = 0 news_letter_rs1.CursorLocation = 2 news_letter_rs1.LockType = 3 news_letter_rs1.Open news_letter_rs1_numRows = 0 %><% set new_letter_rs2 = Server.CreateObject("ADODB.Recordset") new_letter_rs2.ActiveConnection = "dsn=vamc_news;" new_letter_rs2.Source = "SELECT * FROM news_letter WHERE order_view = '2' ORDER BY ID DESC" new_letter_rs2.CursorType = 0 new_letter_rs2.CursorLocation = 2 new_letter_rs2.LockType = 3 new_letter_rs2.Open new_letter_rs2_numRows = 0 %><% set news_letter_rs3 = Server.CreateObject("ADODB.Recordset") news_letter_rs3.ActiveConnection = "dsn=vamc_news;" news_letter_rs3.Source = "SELECT * FROM news_letter WHERE order_view = '3' ORDER BY ID DESC" news_letter_rs3.CursorType = 0 news_letter_rs3.CursorLocation = 2 news_letter_rs3.LockType = 3 news_letter_rs3.Open news_letter_rs3_numRows = 0 %><% set case_rs = Server.CreateObject("ADODB.Recordset") case_rs.ActiveConnection = "dsn=vamc_news;" case_rs.Source = "SELECT * FROM case_study ORDER BY ID DESC" case_rs.CursorType = 0 case_rs.CursorLocation = 2 case_rs.LockType = 3 case_rs.Open case_rs_numRows = 0 %> <% ' *** 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 MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each Item In Request.QueryString NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item)) End If Next ' add the Form variables to the MM_keepForm string For Each Item In Request.Form NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> VAMCOM Interactive