<% 
Response.Expires = -1 'asp altijd opnieuw van de server laten komen
Response.Buffer = true  'asp in een keer laten zien
%>
<!--#include file=../INSTELLINGEN.inc-->
<!--#include file=../INCLUDES/INITIALISATIEv2.inc-->
<%
Dim contactformulier
dim titelcentrerenJN
dim tabelbreedteCONTACT
dim stuurcode, onderwerp
dim nieuwsitem, nieuwsitemCONTACT
dim cellpadding1

dim allstates, tempinput, maxcounter, thisstate, counter

dim titeltonenJN
dim zendbuttonTONEN
zendbuttonTONEN = "JA"

Session("CONTACTFORMULIER_tekst_retourmail") = ""

if Session("contactformulier") = "" then
   Session("contactformulier") = Session("CONTACTFORMULIER1")
   Session("verplichtevelden") = Session("CONTACTFORMULIER1_verplicht")
end if
%><!--#include file=../INCLUDES/LEES_CONTACTFORMULIER.inc--><%

nieuwsitem = ""
nieuwsitemCONTACT = ""
legeregel = "NEE"
if Session("paginaIDcontact") > 0 OR (Request.Querystring("paginaID") > " " AND (Request.Querystring("paginaID") + 0) > 0) then
   if Request.Querystring("paginaID") > 0 then Session("paginaIDcontact") = Request.Querystring("paginaID")
   Session("nieuwspaginaIDTF") = Session("paginaIDcontact") + 0
   DATABASE_OPEN
   %>
   <!--#include file=../INCLUDES/LEES_NIEUWS.inc-->
   <%
   inputveld = nieuwsitem & ""
   %><!--#include file=../INCLUDES/HTMLNAARHYPERLINKS.inc--><%
   nieuwsitemCONTACT = outputveld & ""
   DATABASE_CLOSE
end if

nieuwsitem = ""
nieuwsitemCONTACTbottom = ""
if Session("paginaIDbottomcontact") > 0 OR (Request.Querystring("paginaIDbottom") > " " AND (Request.Querystring("paginaIDbottom") + 0) > 0) then
   if Request.Querystring("paginaIDbottom") > 0 then Session("paginaIDbottomcontact") = Request.Querystring("paginaIDbottom")
   Session("nieuwspaginaIDTF") = Session("paginaIDbottomcontact") + 0
   DATABASE_OPEN
   %>
   <!--#include file=../INCLUDES/LEES_NIEUWS.inc-->
   <%
   inputveld = nieuwsitem & ""
   %><!--#include file=../INCLUDES/HTMLNAARHYPERLINKS.inc--><%
   nieuwsitemCONTACTbottom = outputveld & ""
   DATABASE_CLOSE
end if

if Session("contactformulier") > " " then
   waarde = "<input type=text name=afbeelding1_tmp size=10 value=''>&nbsp;"
   waarde = waarde & "<a href=""JavaScript:UPLOADEN('../nl/picturesZOEKEN.asp?requestID=" & Session("DAGTELLER") & "&alleenuploadBIJLAGE1=JA&administratieID=" & right((100+month(date())),2) & right((100+day(date())),2) & right((100+hour(now)),2) & right((100+minute(now)),2) & "')"" title='Uploaden van een bijlage'>"
   waarde = waarde & "Uploaden..."
   waarde = waarde & "</a>"
   Session("contactformulier") = Replace(Session("contactformulier"), "#BIJLAGE1", waarde)
end if
if Session("contactformulier") > " " then
   waarde = "<input type=text name=afbeelding2_tmp size=10 value=''>&nbsp;"
   waarde = waarde & "<a href=""JavaScript:UPLOADEN('../nl/picturesZOEKEN.asp?requestID=" & Session("DAGTELLER") & "&alleenuploadBIJLAGE2=JA&administratieID=" & right((100+month(date())),2) & right((100+day(date())),2) & right((100+hour(now)),2) & right((100+minute(now)),2) & "')"" title='Uploaden van een bijlage'>"
   waarde = waarde & "Uploaden..."
   waarde = waarde & "</a>"
   Session("contactformulier") = Replace(Session("contactformulier"), "#BIJLAGE2", waarde)
end if
if Session("contactformulier") > " " then
   waarde = "<input type=text name=afbeelding3_tmp size=10 value=''>&nbsp;"
   waarde = waarde & "<a href=""JavaScript:UPLOADEN('../nl/picturesZOEKEN.asp?requestID=" & Session("DAGTELLER") & "&alleenuploadBIJLAGE3=JA&administratieID=" & right((100+month(date())),2) & right((100+day(date())),2) & right((100+hour(now)),2) & right((100+minute(now)),2) & "')"" title='Uploaden van een bijlage'>"
   waarde = waarde & "Uploaden..."
   waarde = waarde & "</a>"
   Session("contactformulier") = Replace(Session("contactformulier"), "#BIJLAGE3", waarde)
end if
if Session("contactformulier") > " " then
   waarde = "<input type=text name=afbeelding4_tmp size=10 value=''>&nbsp;"
   waarde = waarde & "<a href=""JavaScript:UPLOADEN('../nl/picturesZOEKEN.asp?requestID=" & Session("DAGTELLER") & "&alleenuploadBIJLAGE4=JA&administratieID=" & right((100+month(date())),2) & right((100+day(date())),2) & right((100+hour(now)),2) & right((100+minute(now)),2) & "')"" title='Uploaden van een bijlage'>"
   waarde = waarde & "Uploaden..."
   waarde = waarde & "</a>"
   Session("contactformulier") = Replace(Session("contactformulier"), "#BIJLAGE4", waarde)
end if

contactformulier = Session("contactformulier")

titelcentrerenJN = "JA"
tabelbreedteCONTACT = 500
cellpadding1 = 0
titeltonenJN = "JA"

if Session("WEBSITEID") = "MOZAIEK" then
   titelcentrerenJN = "NEE"
   tabelbreedteCONTACT = 500
end if

if Session("WEBSITEID") = "VOXJUBILANS" then
   titelcentrerenJN = "NEE"
   tabelbreedteCONTACT = 700
   cellpadding1 = 0
end if

if Session("WEBSITEID") = "VITAMINEZEE" then
   titelcentrerenJN = "NEE"
   tabelbreedteCONTACT = 475
end if

if Session("WEBSITEID") = "BAARSSEN" then
   titelcentrerenJN = "NEE"
   tabelbreedteCONTACT = 380
   cellpadding1 = 0
end if

if Session("WEBSITEID") = "JONKERBETON" then
   titelcentrerenJN = "NEE"
   tabelbreedteCONTACT = 725
end if

if Session("WEBSITEID") = "VANDERWULP" then
   titelcentrerenJN = "JA"
   tabelbreedteCONTACT = 725
end if

if Session("WEBSITEID") = "UME" then
   titelcentrerenJN = "NEE"
   tabelbreedteCONTACT = 650
end if

if Request.Querystring("titelcentrerenJN") > " " then
   titelcentrerenJN = Request.Querystring("titelcentrerenJN")
   Session("titelcentrerenJNcontact") = titelcentrerenJN
end if
if Request.Querystring("tabelbreedte") > " " then
   tabelbreedteCONTACT = Request.Querystring("tabelbreedte")
   Session("tabelbreedtecontact") = tabelbreedteCONTACT
end if
if Request.Querystring("titel") = "NEE" then
   titeltonenJN = "NEE"
   Session("titelcontact") = "NEE"
end if
if Session("titelcentrerenJNcontact") > " " then titelcentrerenJN = Session("titelcentrerenJNcontact")
if Session("tabelbreedtecontact") > " " then tabelbreedteCONTACT = Session("tabelbreedtecontact")
if Session("titelcontact") > " " then titeltonenJN = Session("titelcontact")

if tabelbreedteCONTACT > 550 then cellpadding1 = 0
%>
<html>

<head>
<!--#include file=../INCLUDES/TOON_SPECIALS_HEADER.inc-->
<TITLE><% 
if Session("TITEL_SUBKEUZE") > " " then
   Response.write Session("TITEL_SUBKEUZE") & " - "
else
   if Session("TITEL_HOOFDKEUZE") > " " then
      Response.write Session("TITEL_HOOFDKEUZE") & " - "
   end if
end if
Response.write Session("SITE-NAAM") %></TITLE>
<link rel="shortcut icon" href="../SKIN/wipesoftlogo.ico" mce_href="../SKIN/wipesoftlogo.ico">
<link rel="stylesheet" type="text/css" href="../<% Response.write Session("#STIJLSHEET") %>">
<base target="_self">

<SCRIPT LANGUAGE="JavaScript">
<!--Maak script onzichtbaar voor niet compatible browsers
function UPLOADEN(url) {
window.open(url, "AFBEELDINGEN","toolbar=no,width=750,height=500,resizable=yes,status=no,scrollbars=no,menubar=no,top=50,left=25")
    }
// -->
</SCRIPT>

<script language="JavaScript">
<!--
function check(MailFormulier)
{
   if (MailFormulier.email.value == "")
   {
     alert("Please enter your e-mail address.");
     MailFormulier.email.focus();
     return (false);
   }
<%
tempinput = Session("verplichtevelden")
allstates = split(tempinput," ")
maxcounter = ubound(allstates)
FOR counter= 0 TO maxcounter
   thisstate=allstates(counter)
   myMail_ontvanger = thisstate
   Response.write "   if (MailFormulier." & thisstate & ".value == """")" & chr(10)
   Response.write "   {" & chr(10)
   Response.write "      alert(""Gegevens incompleet / Data incomplete."");" & chr(10)
   Response.write "      MailFormulier." & thisstate & ".focus();" & chr(10)
   Response.write "      return (false);" & chr(10)
   Response.write "   }" & chr(10)
NEXT
%>
  return (true);
}
//-->
</script>
<!--#include file=../INCLUDES/POPUP_AANSTURING.inc-->
</head>
<body class='algemeen'>
<!--#include file=../INCLUDES/TOON_SPECIALS.inc-->
<!--#include file=../INCLUDES/CONTROLE_SESSIE_ACTIEF.inc-->
<!--#include file=../INCLUDES/ZOEKBALK.inc-->
<!--#include file=../INCLUDES/TOON_TITEL.inc-->
<%
if Request.Querystring("optie1") > " " then Session("mail_optie1") = Request.Querystring("optie1")
if Request.Querystring("optie2") > " " then Session("mail_optie2") = Request.Querystring("optie2")
if Request.Querystring("optie3") > " " then Session("mail_optie3") = Request.Querystring("optie3")

if nieuwsitemCONTACT > " " then
   Response.write nieuwsitemCONTACT
end if

if titelcentrerenJN <> "NEE" then Response.write "<center>"
Response.write "<table border='0' cellpadding='" & cellpadding1 & "' width='" & tabelbreedteCONTACT & "' bgcolor='" & Session("achtergrondkleur_tabellen") & "'><tr><td>"

if titeltonenJN = "JA" then 
   Response.write "<table border='0' width='100%' class='paginakopje' cellpadding=3 cellspacing=0>"
   Response.write "<tr><td width='100%' height='7' bgcolor='" & Session("kleur_lichte_titelbalk") & "' style='color: " & Session("kleur2") & "' align='"
   if titelcentrerenJN = "NEE" then
      Response.write "left"
   else
      Response.write "center"
   end if
   Response.write "' valign='top'><b>"
   Response.write Session("#ONDERWERPALGEMEEN")
   Response.write "</b></td></tr>"
   Response.write "<tr><td>&nbsp;</td></tr></table>"
end if

if Session("TOELICHTING_CONTACT") > " " then
   Response.write "<table border='0' width='100%' class='plattetekst' cellspacing=0 cellpadding=0>"
   Response.write "<tr><td width='100%' height='7' bgcolor='" & Session("kleur_lichte_titelbalk") & "' style='color: " & Session("kleur2") & "' valign='top'>"
   inputveld = Session("TOELICHTING_CONTACT") & ""
   %><!--#include file=../INCLUDES/TEKSTNAARHTML.inc--><%
   Response.write outputveld
   Response.write "</td></tr>"
   Response.write "<tr><td>&nbsp;</td></tr></table>"
end if

Response.write "<form name='MailFormulier' action='../nl/contactV2-ZENDEN.asp?stuurcode=" & stuurcode & "' onsubmit=""return check(this)"" method=""post"" style=""margin-bottom: 0"">"

if contactformulier > " " then
   ' Response.write "<a name=BOVEN>"
   if contactformulier <> Replace(contactformulier, "#ZENDBUTTON", "") then
      zendbuttonTONEN = "NEE"
      waarde = "<input type=""submit"" value=""Zenden"" class=""buttonalgemeen"">"
      contactformulier = Replace(contactformulier, "#ZENDBUTTON", waarde)
   end if
   Response.write contactformulier
end if

Response.write "<table border='0' cellpadding='0' cellspacing='0' class='plattetekst'>"

FOR i = 1 to maxopties
   waarde = "CONTACTFORMULIER_optie" & i
   if Session(waarde) > " " then
      Response.write "<tr><td colspan='3'>&nbsp;</td></tr>"
      Response.write "<tr><td colspan='3'>"
      if Session("WEBSITEID") = "LOSO" then 
	     Response.write "<div style=""VISIBILITY: hidden;"">"
      end if
      Response.write "<table border='0' cellpadding='0' cellspacing='0' class='plattetekst'>"
      Response.write "<tr><td valign='top'><input name='optie" & i & "' type='checkbox' value='ON' class=noborder"
      if Session("mail_optie" & i) = "JA" then response.write " checked"
      Response.write "></td><td valign='top'>" & Session("CONTACTFORMULIER_optie" & i) & "</td></tr></table>"
      if Session("WEBSITEID") = "LOSO" then
      	Response.write "</div>"
      end if
      Response.write "</td></tr>"
   end if
NEXT

if Session("CONTACTFORMULIER_boodschap1") > " " then
   Response.write "<tr><td colspan='3'>&nbsp;</td></tr>"
   Response.write "<tr><td colspan='3'>"
   Response.write "<table border='0' cellpadding='0' cellspacing='0' class='plattetekst'>"
   Response.write "<tr><td valign='top'>" & Session("CONTACTFORMULIER_boodschap1") & "</td></tr></table></td></tr>"
end if

%>
   <tr><td colspan='3'>&nbsp;</td></tr>

<% if zendbuttonTONEN = "JA" then %>
<tr>
   <td colspan="3">
      <input type="submit" value="Zenden"><br>
   </td>
</tr>
<% end if %>
</table>

</form>

</td></tr></table>
<%
if titelcentrerenJN <> "NEE" then Response.write "</center>"

if nieuwsitemCONTACTbottom > " " then
   Response.write "<BR>" & nieuwsitemCONTACTbottom
end if
%>
<!--#include file=../INCLUDES/TOON_SPECIALS_END.inc-->
<!--#include file=../INCLUDES/DATABASE_END.inc-->
</body>
<!--#include file=../INCLUDES/MAAKHYPERLINKS.inc-->
