<% response.buffer=true %>
<%
if Session("ID")="" then Session("ID")=Request.Cookies("GIUNTA")("ID")
if Session("NAME")="" then Session("NAME")=Request.Cookies("GIUNTA")("NAME")
Dim objConn
Dim mydatabase
Dim snd_nbaccess
Dim courr_nbaccess
mydatabase=server.MapPath("\database\giunta.mdb")
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & mydatabase
objConn.Open
select case Session("ID")
	case ""
		'
	case else
	sql="SELECT * FROM Client WHERE ID=" & Session("ID") & " ORDER BY ID DESC;"
	set RS=objConn.Execute(sql)
	if RS.eof then
		Session("ID")=""
		Session("NAME")=""
	else
		RS.movefirst
		snd_nbaccess=Clng(RS("fois"))+1
		thedatupdate()
	end if
	RS.close
	set RS=nothing
end select
if Session("LV")="" then Session("LV")=Request.Cookies("JGIUNTA")("MADDR")
select case Session("LV")
	case ""
		'
	case else
	sql="SELECT * FROM Courriel WHERE courriel='" & Session("LV") & "' ORDER BY ID DESC;"
	set RS=objConn.Execute(sql)
	if RS.eof then
		Session("LV")=""
	else
		RS.movefirst
		courr_nbaccess=Clng(RS("fois"))+1
		thecourrupdate()
	end if
	RS.close
	set RS=nothing
end select
objConn.close
set objConn=nothing
%>

<html><!-- #BeginTemplate "/Templates/temp01.dwt" -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>Joseph Giunta artistes canadiens, peintre, collage,peinture,huile,piece unique, &oelig;uvre d&rsquo;art</title>
<!-- #EndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../Templates/css/template.css" type="text/css">
<script language="JavaScript1.2">
<!--
// (C) 2000 www.CodeLifter.com <http://www.CodeLifter.com> 
// http://www.codelifter.com
// Free for all users, but leave in this  header
 
// Set the message for the alert box
am = "© Cabl'Art 2001 - Reproduction interdite / All rights reserved";
 
// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
 
function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}
 
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<%
Function thedatupdate()
if Session("theupdated")="True" then exit function
sql="UPDATE Client SET lastvisit='" & Now() & "'" &_
", fois=" & snd_nbaccess & "" &_
" where ID=" & Session("ID") & ""
objConn.Execute(sql)
Session("theupdated")="True"
end function
%>
<%
Function thecourrupdate()
if Session("thecourupdated")="True" then exit function
sql="UPDATE Courriel SET lastvisit='" & Now() & "'" &_
", fois=" & courr_nbaccess & "" &_
" where courriel='" & Session("LV") & "'"
objConn.Execute(sql)
Session("thecourupdated")="True"
end function
%>

</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="15" marginwidth="0" marginheight="15" background="../Templates/bg_img/bg01.jpg" onLoad="MM_preloadImages('../img/sect_01/revue_next.gif','../img/sect_01/boutique_next.gif','../img/sect_01/recherche_next.gif')">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr>
    <td align="center" valign="middle">
      <table width="760" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#000000">
        <tr> 
          <td valign="top"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" background="../Templates/bg_color/section01.gif">
              <tr> 
                <td> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><img src="../Templates/img/top01.jpg" border="0" width="758" height="100"></td>
                    </tr>
                    <tr> 
                      <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="758" height="50">
                          <param name=movie value="../Templates/swf/menu01_fr.swf">
                          <param name=quality value=high>
                          <embed src="../Templates/swf/menu01_fr.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="758" height="50">
                          </embed></object></td>
                    </tr>
                  </table>
                  <!-- #BeginEditable "contenu" --> 
            <table width="100%" border="0" cellspacing="0" cellpadding="15" class="contenu_gen">
              <tr> 
                <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                            <td width="180" valign="top" rowspan="2" align="center"> 
                              <img src="../img/sect_01/giunta.jpg" width="180" height="222"> 
                            </td>
                      <td valign="top" width="548" align="center">
                      <img src="img/01_heritage.gif" width="500" height="46"></td>
                    </tr>
                    <tr> 
                      <td valign="top" class="description_oeuvres"> 
                              <table width="100%" border="0" cellspacing="0" cellpadding="9">
                                <tr> 
                            <td width="256" valign="top" background="../img/sect_01/bg_affiche.gif" align="center"> 
                              <div align="center"> 
                                      <table width="256" border="0" cellspacing="0" cellpadding="0" align="center">
                                        <tr> 
                                          <td class="description_oeuvres" height="30" valign="top" width="256"> 
                                            <table width="256" border="0" cellspacing="0" cellpadding="0">
                                              <tr> 
                                                <td width="25" valign="bottom"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="25" height="20" align="bottom" id="flasher" name="flasher">
                                                    <param name=movie value="../img/sect_01/flasher.swf">
                                                    <param name=quality value=high>
                                                    <embed src="../img/sect_01/flasher.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="25" height="20" align="bottom" name="flasher" swliveconnect="true"> 
                                                    </embed></object></td>
                                                <td width="231" valign="bottom"> 
                                                  <a href="nouveaute.html"><img src="../img/sect_01/nouveaute.gif" width="170" height="29" border="0"></a></td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                        <tr> 
                                          <td class="description_oeuvres" height="30" valign="bottom" width="256"><a href="expositions.html#revue" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('revue','','../img/sect_01/revue_next.gif',1)"> 
                                            <img name="revue" border="0" src="../img/sect_01/revue.gif" width="256" height="30"></a></td>
                                        </tr>
                                        <tr> 
                                          <td valign="bottom" width="256" height="30"><a href="recherche.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Avis_recherche','','../img/sect_01/recherche_next.gif',1)"><img name="Avis_recherche" border="0" src="../img/sect_01/recherche.gif" width="256" height="20"></a></td>
                                        </tr>
                                        <tr> 
                                          <td valign="bottom" width="256" height="30"> 
                                            <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('boutique','','../img/sect_01/boutique_next.gif',1)" href="boutique_fr.asp"> 
                                            <img name="boutique" border="0" src="../img/sect_01/boutique.gif" width="210" height="25"></a></td>
                                        </tr>
                                        <tr>
                                          <td height="35" valign="bottom"><a href="film.html"><img src="../img/sect_01/discover.gif" width="256" height="30" border="0"></a></td>
                                        </tr>
                                        <tr> 
                                          <td height="25" valign="top" width="256"> 
                                            
                                            <!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.textmail.value == "")
  {
    alert("Please enter a value for the \"Courriel\" field.");
    theForm.textmail.focus();
    return (false);
  }

  if (theForm.textmail.value.length < 7)
  {
    alert("Please enter at least 7 characters in the \"Courriel\" field.");
    theForm.textmail.focus();
    return (false);
  }

  if (theForm.textmail.value.length > 80)
  {
    alert("Please enter at most 80 characters in the \"Courriel\" field.");
    theForm.textmail.focus();
    return (false);
  }
  return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form name="FrontPage_Form1" method="POST" action="courriel.asp" class="description_oeuvres" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
                                              <br>
                                              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="description_oeuvres">
                                                <tr> 
                                                  <td class="description_oeuvres" height="18" valign="top" colspan="2">Pour 
                                                    recevoir les derni&egrave;res 
                                                    nouveaut&eacute;s, inscriver 
                                                    votre courriel ci-dessous:</td>
                                                </tr>
                                                <tr valign="middle"> 
                                                  <td width="130" height="27"> 
                                                    &nbsp;
                                                    <!--webbot bot="Validation" s-display-name="Courriel" b-value-required="TRUE" i-minimum-length="7" i-maximum-length="80" -->
                                                    <input type="text" name="textmail" size="20" maxlength="80"> 
                                                  </td>
                                                  <td width="126" height="27"> 
                                                    <a href="javascript:document.FrontPage_Form1.submit()"> 
                                                    <img src="../img/sect_01/valider.gif" width="83" height="27" border="0"></a></td>
                                                </tr>
                                              </table>
                                              <input type="hidden" name="from_courriel" value="true">
                                            </form></td>
                                        </tr>
                                      </table>
                              </div>
                            </td>
                                  <td width="256" valign="middle" align="center"> 
                                    <table width="256" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
                                <tr> 
                                  <td valign="top" width="256"> 
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center">
                                      <tr> 
                                        <td valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="254" height="150">
                                            <param name=movie value="../img/sect_01/introduction.swf">
                                            <param name=quality value=high>
                                            <embed src="../img/sect_01/introduction.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="254" height="150">
                                            </embed></object></td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                              <table width="256" border="0" cellspacing="0" cellpadding="0" align="center">
                                <tr> 
                                        <td class="description_oeuvres">Pour nous 
                                          contacter: <a href="mailto:info@jgiunta.com">info@jgiunta.com</a></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                        
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <!-- #EndEditable --> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="2">
                    <tr> 
                      <td> 
                        <div align="center"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="1">&copy; 
                          Copyright Cabl'Art 2001-2006</font></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="730,81,757,99" onMouseUp="MM_openBrWindow('../sound/index.html','','scrollbars=yes,resizable=yes,width=425,height=300')">
</map>
</body>
<!-- #EndTemplate --></html>