<% pagetype="insights" %>
<!--#include virtual="/adovbs.inc" -->
<%
'	response.write isnumeric(request.querystring("id"))
	if not isnumeric(request.querystring("id")) or request.querystring("id")=""  then
		response.redirect "./"
	end if
	
	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 articles - real estate investing</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">
<%
'	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  and tblarticles.id="&request.querystring("id")&" ORDER BY startdate DESC"	
	query = "SELECT categoryid, authorid, headline1, startdate, enddate, issue, quotation, archive, headline1, headline2, headline3, headline4, headline5, headline6, headline7, headline8, headline9, headline10, headline11, headline12, worddoc, weeklyplots, rates, audio, video, relatedlinktext1,relatedlinktext2,relatedlinktext3, relatedlink1, relatedlink2, relatedlink3, relatedarticle1, relatedarticle2, relatedarticle3, blurb1, blurb2, blurb3, blurb4, blurb5, blurb6, blurb7, blurb8, blurb9, blurb10, blurb11, blurb12, summary, weeklyplotsblurb, ratesblurb  FROM tblArticles where id=" & request.querystring("id") & " and categoryid not in (8,54,55,56,57,58,59,60)"
	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>
<%	
	do while not results.eof and nextRecoNum <= lastRecoOnPage
	
	set article1 = results("relatedarticle1")
	set article2 = results("relatedarticle2")
	set article3 = results("relatedarticle3")
	if article1 <> "" AND article1<>0 then
	query2 = "SELECT headline1 from tblArticles where id="& article1
	set result1 = conn.execute(query2)
	end if
	
	if article2 <> "" AND article2<>0 then
	query3 = "SELECT headline1 from tblArticles where id="& article2
	set result2 = conn.execute(query3)
	end if
	
	if article3 <> "" AND article3<>0 then
	query4 = "SELECT headline1 from tblArticles where id="& article3
	set result3 = conn.execute(query4)
	end if
%>
  <h3><%=TRIM(results("headline1")) %></h3>
                <p><span class="date"><%=FORMATDATETIME(results("startdate"),1) %></span><br>
                  <%=TRIM(results("blurb1")) %></p>
<br><br>
 <%if article1<>"" and article1<>0 then %>				  
 <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>Related Articles:</b></font>                    
 <ul>

                          
          <li><a href="http://www2.jurock.com/articles/columnist.asp?id=<%=article1 %>"><%=TRIM(result1("headline1")) %></a></li>
						
						<%if article2<>"" and article2<>0 then %>
                          
          <li><a href="http://www2.jurock.com/articles/columnist.asp?id=<%=article2 %>"><%=TRIM(result2("headline1")) %></a></li>
						<%end if %>
						<%if article3<>"" and article3<>0 then %>
                          
          <li><a href="http://www2.jurock.com/articles/columnist.asp?id=<%=article3 %>"><%=TRIM(result3("headline1")) %></a></li>
						<%end if %>
                </ul>
<%end if %>						
<%if results("relatedlink1")<>"" then %>
<font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>Related Links:</b></font>
                        <ul>

                          
          <li><a href='<%=results("relatedlink1") %>'> 
            <% if results("relatedlinktext1")<> "" then %>
            <% =results("relatedlinktext1") %>
            <% else %>
            <%=results("relatedlink1") %> 
            <% end if %>
            </a></li>

						<%if results("relatedlink2")<>"" then %>
                          
          <li><a href='<%=results("relatedlink2") %>'>
            <% if results("relatedlinktext2")<> "" then %>
            <% =results("relatedlinktext2") %>
            <% else %>
            <%=results("relatedlink2") %> 
            <% end if %>
            </a></li>
						<%end if %>
						<%if results("relatedlink3")<>"" then %>
                          
          <li><a href='<%=results("relatedlink3") %>'>
            <% if results("relatedlinktext3")<> "" then %>
            <% =results("relatedlinktext3") %>
            <% else %>
            <%=results("relatedlink3") %> 
            <% end if %>
            </a></li>
						<%end if %>
						<%end if %>						
                        </ul>
				  
				  
<% 		
	count = count + 1
	results.movenext
	nextRecoNum = nextRecoNum + 1
	loop
%>			
<p>
     </div
>
</div>
  </div>
	  <!--#include virtual="/footer.inc" -->
</div>
</body>
</html>
	<% conn.close
			set conn=nothing %>