<% pagetype="insights" %>
<!--#include virtual="/adovbs.inc" -->
<%
	count = 0
	numPerPage = 10
	nextRecoNum = 1

	if request.querystring("page") = "" then
		page = 1
		session("passedValue")= request.QueryString
	else
		page = request.querystring("page")
	end if
	
    set conn = Server.CreateObject("ADODB.Connection")  
	set results = server.createObject("ADODB.Recordset")
		
	results.CursorLocation = adUseClient
%>
<!--#include virtual="/includes/databaseopen.asp"-->
<%


%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Ozzie Jurock's articles on real estate</title>
<meta name="description" content="Ozzie Jurock creates the tools and environment to help people succeed in Real Estate investment.">
<meta name="keywords" content="real estate investor,ozzie jurock,canadian real estate,bc properties,investment club,analysis,realestate,real-estate,unearned income,real estate investment group">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/style.css" rel="stylesheet" type="text/css">

</head>

<body>
<div align="center">
	<!--#include virtual="/header.inc" -->
<div class="topnav-inside"><!--#include virtual="/topnav.inc" --></div>
  <div class="content">
  	<!--#include virtual="/insights/nav.inc" -->          <div class="inside-content"> 
            <h2><img src="/images/titie-insights.gif" width="199" height="28"><br>
            </h2>
            <div class="title-dots"></div>
              <div class="story-list">
                <h3>The following are Ozzie's recent columns: </h3>
                <%
	query = "SELECT tblArticles.id, tblAuthor.firstname, fwname, tblAuthor.lastname, email,  tblArticles.id, headline1, summary, startdate FROM tblArticles inner join tblAuthor on tblArticles.authorid =tblAuthor.id WHERE (categoryid=73 or categoryid=74 or categoryid=75 or categoryid=76 or categoryid=77 or categoryid=78 or categoryid=79 or categoryid=1 or categoryid=1 )  and tblArticles.authorid = 1 ORDER BY startdate DESC"	
	results.open query, Conn, adOpenstatic, adLockReadonly, adCmdtext
	totalRecords = results.recordCount
%>
<%
		if not(results.EOF) then
			results.moveFirst
			results.pageSize = numPerPage
			totalpages = results.pageCount
			results.AbsolutePage = page
			'absoluteposition pointing at the current record
			nextRecoNum = results.Absoluteposition
		
			lastRecoOnPage = nextRecoNum + results.pageSize - 1
			if totalRecords <> -1 and totalRecords < lastRecoOnPage then
				lastRecoOnPage= totalRecords
			end if
%>    
	   <%
	   end if %><p>
<!--#include virtual="forwardback.inc" -->
   <p>
<%	
	do while not results.eof and nextRecoNum <= lastRecoOnPage
%>
  <h3><a href='article.asp?id=<%=results("id") %>'><%=TRIM(results("headline1")) %></a></h3>
                <p><span class="date"><%=FORMATDATETIME(results("startdate"),1) %></span><br>
                  <%=TRIM(results("summary")) %></p>
<% 		
	count = count + 1
	results.movenext
	nextRecoNum = nextRecoNum + 1
	loop
%>			
<p>
<!--#include virtual="forwardback.inc" -->
     </div
>
</div>
  </div>
	  <!--#include virtual="/footer.inc" -->
</div>
</body>
</html>
	<% conn.close
			set conn=nothing %>