<%
'Set or get Cookie
Dim strGstanzln, strGUID, MyGuid, strDomain
strDomain = "http://www.gstanzln.com/"
strGstanzln = Request.Cookies("Visits")
	If strGstanzln > "0" Then
		strGstanzln = CInt(strGstanzln) + 1
		Response.Cookies("Visits") = strGstanzln
	Else
		strGstanzln = "1"
		Response.Cookies("Visits") = strGstanzln 
	End if
	
strGUID = Request.Cookies("GUID")
	If Len(strGUID) = 0 Then
		Set MyGuid = CreateObject("scriptlet.typelib")
		strGUID = MyGuid.guid
		Set MyGuid = nothing
		Response.Cookies("GUID") = strGUID
	End if
Response.Cookies("GUID").Expires = Date + 120	
Response.Cookies("Visits").Expires = Date + 120
strGstanzln=Request.Cookies("Visits")

strSQLSave = "INSERT INTO tbl_Cookies (Domain, IPAddress, NumberOfVisits, VisitorGUID)"
strSQLSave = strSQLSave & " VALUES ('" & strDomain & "', '" & Request.ServerVariables("REMOTE_ADDR") & "', " & CInt(strGstanzln) & ", '"
strSQLSave = strSQLSave & LEFT(strGUID, 38) & "');"
'Response.Write Len(strGUID) & ":<br>" 
'Response.Write Left(strGUID, 38)
'Response.write "<br>"
'Response.Write strSQLSave
'Response.Write "Besuche insgesamt: " & strGstanzln
dim conn, rs
set conn=server.createobject("adodb.connection")
conn.open "Transaktionen"
set rs=conn.execute(strSQLSave)
'rs.close
set rs=nothing
conn.close
set conn=nothing
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="de">
<link rel="stylesheet" type="text/css" href="mherger.css">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="Keywords" content="Gstanzln, Gstanzl, Datenbank, Vierzeiler, WAP, Gaßlsprüch, Wienerlied, Wienerlieder">
<meta name="Description" content="Beim Tanz und in geselliger Runde finden sie immer Anklang: die Vier-, manchmal Mehrzeiler, die oft lustig, manchmal aber auch nachdenklich von Sehnsüchten und Wünschen zeugen.">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Gstanzln.com auf Volkstanz.at</title>
</head>
<!--#include file="../cgi-bin/Form_Rendering.asp"-->
<body>

<div align="left">

  <table border="0" cellpadding="0" cellspacing="8" width="800">
    <tr>
      <td align="right" valign="top" width="700" colspan="5">
        <p align="left">
        <a href="index.asp" onmouseover="self.status='Gstanzln.com';return true">
        <img border="0" src="Pictures/Gstanzln_Logo.gif" width="320" height="80">
        </a>
        </p>
      </td>
    </tr>
    <tr>
      <td valign="top" width="120" rowspan="2">
        <!--webbot bot="Include" U-Include="Navigationbar.htm" TAG="BODY" startspan -->
<p class="GstanzlnMiddle">
<font size="2"><strong>Suchen</strong></font>
<form action="Keyword_Result.asp" method="GET">
      <p align="left" >
      <INPUT TYPE="Text" Name="Keyword" SIZE="3" class="GstanzlnMiddle"><INPUT TYPE="SUBMIT" value="OK" Name="OK" class="GstanzlnMiddle">
</form>      
      <p class="GstanzlnMiddle"><b><font size="2"><a href="index.asp" onmouseover="self.status='Gstanzln.com';return true">Home</a></font></b>
        </p>
      
	<p class="GstanzlnMiddle">
		<font size="2"><strong>Mario Herger</strong>
	<a href="http://www.amazon.de/exec/obidos/ASIN/3800071622/websiteofmario01" title="Darüber lacht Wien" target=_blank>Darüber lacht Wien</a><br>
	 <a href="http://www.amazon.de/exec/obidos/ASIN/3800071622/websiteofmario01" title="Darüber lacht Wien" target=_blank>
		<img border='0' src='http://www.marioherger.at/i/19/Darueber_lacht_Wien_small.jpg' height=99 width=67>		
	</a>
	<a href="http://www.marioherger.at/index.asp?flangu=DE-DE-&aflangu=DE-DE-&n1=7228&n2=7229&m=0&ObjID=7261&crit=&app=2&page=1">
		<p align='right'>Mehr..</p>
	</a></font></p>
      
      <p class="GstanzlnMiddle"><font size="2"><strong>Gstanzln</strong></font><font size="2"><br>
      <a href="Einleitung.html">Einleitung</a>
        <a href="Zwoelf_Gebote.html" c><br>
        12 Gebote<br>
      </a><a href="MIDI/MIDIs.html" onmouseover="self.status='Noten und Musik zu Gstanzln - Gstanzln.com';return true">Melodien</a><br>
      <a href="Literatur.html">Literatur<br>
      </a><a href="mailto:admin@gstanzln.com?subject=Gstanzl">Einsenden</a><br>
      <a href="Karten/Karte01.asp" onmouseover="self.status='Gstanzl-Postkarte erstellen - Gstanzln.com';return true">
      Postkarte<br>
      </a></font><font size="2"><a href="Themen/index.htm">Themen</a></font>
        </p>
<p class="GstanzlnMiddle"><font size="2"><strong>Gaßlbrauch<br>
</strong><a href="Gasslbrauch/Gasslgehen.html" onmouseover="self.status='Gaßlgehen - Gstanzln.com';return true">Gaßlgehen<br>
</a><a href="Gasslbrauch/Gasslspruech.asp" onmouseover="self.status='Gaßlsprüch - Gstanzln.com';return true">Gaßlsprüch</a><br>
<a href="Gasslbrauch/Gasslbraeuche.html" onmouseover="self.status='Gaßlbräuche - Gstanzln.com';return true">
Bräuche</a></font>

<p class="GstanzlnMiddle"><font size="2"><strong>Sonstiges<br>
</strong><a href="http://www.volkstanz.at/chat" onmouseover="self.status='Chat - Gstanzln.com';return true" target="_blank">Chat</a></font>

        <p class="GstanzlnMiddle"><font size="2"><strong><a href="http://www.volkstanz.at/" onmouseover="self.status='Volkstanz-&MIDI-Archive - Volkstanz.at';return true" target="_top">Volkstanz.at</a></strong></font>

<!--webbot bot="Include" endspan i-checksum="58245" -->
          </td>
          <td width="8" rowspan="2"></td>
          <td valign="top" width="240">
            <p class="GstanzlnMain"><font size="3">Beim <a href="http://www.volkstanz.at/" target="_top"> Tanz</a> und in geselliger
        Runde finden sie immer Anklang: Gstanzln, die Vierzeiler, manchmal auch
        Mehrzeiler, die oft lustig,
        manchmal aber auch nachdenklich und kritisch von Sehnsüchten und
        Wünschen zeugen.</font></p>
            <p class="GstanzlnMain"><font size="3"><b>Thema:</b><br>
            Steirische Ziehharmonika &amp; argentinisches Bandoneon&nbsp; - <a href="Themen/Aut_Arg01.html">Steirer
            &amp; Tango, Schottischer &amp; Milonga</a></font></p>
          </td>
          <td width="8" rowspan="2"></td>
          <td valign="top" width="240">
            <p align="center">
<% call GetPicture() %>            
            </p>
          </td>
          </tr>
          <tr>
            <td valign="top" width="180">
              <p><b>Suchen nach Titel</b></p>
              <form action="GstanzlnResult.asp" method="GET" size = "1" class="GstanzlnMiddle">
<%
call FillComboBox("SELECT ID_Title, Title FROM tbl_GstanzlTitle WHERE ID_Type = 1 ORDER BY Title", "ID_Title")
response.write "<P>"
%>
                <P align="left"><font size="2"><input type="SUBMIT" value="Suchen" size = "1" class="GstanzlnMiddle"> </p>        
                </form>
              </font>
              <p>&nbsp;
              </td>
              <td valign="top" width="240">
                <p align="left" class="GstanzlnMain"><b>Gstanzl des Tages</b></p>
<% call GetGstanzln() %>   
              </td>
            </tr>
    <tr>
              <td valign="top" width="100">
                <p align="left"></td>
              <td width="8"></td>
              <td valign="top" width="419" colspan="3">
                <p align="left" class="GstanzlnMiddle"><img border="0" src="http://www.volkstanz.at/images/Amazon_com/bk40.gif" width="30" height="32" alt="Bücher" align="middle">
                <b>Buch des Tages 
                </b><font size="3"><% Call GetAmazonObject("Books", "Gstanzln") %></font></p>
              </td>
    </tr>
    <tr>
              <td valign="top" width="100"></td>
              <td width="8"></td>
              <td valign="top" width="419" colspan="3">
                <p align="left" class="GstanzlnMiddle"><img border="0" src="http://www.volkstanz.at/images/Amazon_com/cd545.gif" width="35" height="27" alt="CDs" align="middle"><b>CD des Tages 
                </b><font size="3"><% Call GetAmazonObject("Records", "Gstanzln") %></font></p>
              </td>
    </tr>
            <tr>
              <td valign="top" width="100"></td>
              <td width="8"></td>
              <td valign="top" width="419" colspan="3">
                <p class="GstanzlnMiddle"><font size="3"><a href="http://www.gstanzln.com/WAP/Gstanzln.wml">WAP-Gstanzln</a>:
                <font COLOR="#000000">http://www.gstanzln.com/WAP/Gstanzln.wml</font></font></p>
              </td>
            </tr>
          </table>

          </div>
          <p align="center"><font size="1"><!--webbot bot="Timestamp" S-Type="EDITED"
S-Format="%d. %B %Y" startspan -->25. September 2006<!--webbot bot="Timestamp" endspan i-checksum="41029" -->
          </font></p>
          <!--webbot bot="Include" U-Include="Footer.htm" TAG="BODY" startspan -->

<p align="center"><a href="http://www.gstanzln.com/" target="_top"><sub>Gstanzln.com</sub></a><br>
<a href="mailto:mherger@mherger.com"><sub>mherger@mherger.com/sub></a></p>

<!--webbot bot="Include" endspan i-checksum="30353" -->

</body>
<% 
Function GetPicture()

' get random picture of the day
'intPicturesTotal = 28
'lngDate = Date
'myCriteria = CInt(intPicturesTotal * Rnd(-lngDate))
'If myCriteria = 0 then myCriteria = 1
'If myCriteria > intPicturesTotal then myCriteria = intPicturesTotal

strSQL="SELECT * FROM tbl_GstanzlTitle WHERE ID_Title = " & CDbl(RndValue(28, "D")) & ";"

   	'dim conn, rs
   	set conn=server.createobject("adodb.connection")
   	conn.open "Volkstanz"
   	set rs=conn.execute(strSQL)
	rs.MoveFirst
		Response.write "<img src='Pictures/" & rs("Title_Picture") & "' "
		Response.write "width='" & rs("Pic_Width")*1.5 & "' height='" & rs("Pic_Height")*1.5 & "' alt='" & rs("Title") & "'>"
	rs.close
	set rs=nothing
   conn.close
   set conn=nothing
End Function

Function GetGstanzln
' get random Gstanzl of the day
	intGstanzlTotal = 734
	lngDate = Date
	myCriteria = CInt(intGstanzlTotal * Rnd(-lngDate))

	If myCriteria = 0 then myCriteria = 1
	If myCriteria > intGstanzlTotal then myCriteria = intGstanzlTotal

	strSQL="SELECT * FROM tbl_GstanzlTextsNew"
	strSQL=strSQL & " WHERE ID_Gstanzl = " 
	strSQL=strSQL & myCriteria & " ORDER BY [ID_Title], [SortOrder_Total], [SortOrder_Verses];"

   	'dim conn, rs
   	set conn=server.createobject("adodb.connection")
   	conn.open "Volkstanz"
   	set rs=conn.execute(strSQL)
	rs.MoveFirst
		Response.write "<form action='Karten/Karte02.asp' method='POST' size = '1' class='GstanzlnMiddle'>" & vbCrLf
		Response.write "<Input Type=Hidden Name='GstanzlID' Value=" & myCriteria & ">" & vbCrLf
		Response.Write "<p class='GstanzlnMain'><font size='3'>" & vbCrLf
		Do while not rs.eof
			Response.Write rs("Text") & vbCrLf
			Response.Write "<br>" & vbCrLf
			rs.MoveNext
		Loop
	Response.Write "</font></p>" & vbCrLf
	Response.write "<P align='left'><font size='2'><input type='SUBMIT' value='Gstanzl verschicken' size = '1' class='GstanzlnMiddle'></p>" & vbCrLf
	Response.write "</form>" & vbCrLf
	rs.close
	set rs=nothing
   conn.close
   set conn=nothing
End Function
%>
</html>