
var actual_position = location.href
actual_position = actual_position.replace('http://www.paroladivita.org', '')

//enter the message you wish to be shown, including html tags
var message='<form action="include/CHKPSW.ASP" method="post" target="_top"><table  width="700" cellSpacing=0 cellPadding=0 border=0 bgcolor="#FFFFFF"><tr><td height="6" width="3" valign="middle"><img src="../img/_sopra_sx.gif" alt="" border="0" width="3"></td><td width="100%" colspan="3" background="../img/_sopra_centro.gif" ></td><td width="3" valign="middle"><img src="../img/_sopra_dx.gif" alt="" border="0" width="3"></td></tr><tr><td  background="../img/_centro_sx.gif"></td><td width="50%" valign="middle" align="center"><table width="90%" cellpadding="0" cellspacing="1" border="0" align="center"><tr><td align="left"><span style="font-size: 16px;"><b>Sei un nuovo utente?</b></span><br /><br /><span style="font-size: 13px;"><b>Entra in Paroladivita.org, in pochi click potrai:</b></span><ul style="margin-top: 8px; margin-bottom: 8px;"><LI>accedere <b>Sezione Riservata</b> del sito</LI><LI>ritrovare i tuoi amici tramite la <b>Messaggeria Privata</b> e la <b>Chat</b></LI><LI>prenotarti ad uno degli <b>Eventi</b> di parola di vita italia</LI><LI>vedere le foto degli <b>Eventi</b></LI><LI>compilare la tua personale <b>Ora Silenziosa</b></LI></ul><span style="font-size: 13px;"><b>e molto altro ancora...</b><a href="../registrazione.asp">registrati adesso</a></span><br /><br />...questa finestra si chiude da sola in 20 secondi...</td></tr></table></td><td width="1" valign="middle" align="center" background="../img/puntini.gif"><img src="../img/1x1.gif" alt="" border="0" width="1" heigth="1"></td><td width="50%" valign="middle" align="center"><table cellpadding="0" cellspacing="1" border="0" align="center"><tr><td width="100" nowrap="nowrap" align="center"></td><td><img src="../img/chiudi.jpg" align="right" style="cursor:hand;" onClick="chiudi();"></td></tr><tr><td colspan="2" nowrap="nowrap" align="center"><span style="font-size: 16px;"><b>Accesso a Paroladivita.org</b></span></td></tr><tr><td colspan="2" align="center"><br><table cellSpacing=0 cellPadding=0 border=0 bgcolor="#FFFFFF"><tr><td height="6" width="3" valign="middle"><img src="../img/_sopra_sx.gif" alt="" border="0" width="3"></td><td width="100%" background="../img/_sopra_centro.gif"></td><td width="3" valign="middle"><img src="../img/_sopra_dx.gif" alt="" border="0" width="3"></td></tr><tr><td background="../img/_centro_sx.gif"></td><td valign="middle" align="center"><br /><table border="0" cellpadding="0" cellspacing="1"><tr><td><span class="gen">&nbsp;Username:&nbsp;</span></td><td width="100%" colspan="2"><input style="border-style:groove;" type="text" name="TxtId" size="20" maxlength="40" value="" class="input" /></td></tr><tr><td><span class="gen">&nbsp;Password:</span>&nbsp;</td><td width="100%"><input style="border-style:groove;" type="password" name="TxtPin" size="20" maxlength="32" class="input" /><INPUT type=hidden value="'+actual_position+'" name="redirect"></td><td>&nbsp;<input type="submit" name="login" value="Login" />&nbsp;</td></tr><tr><td colspan="3">&nbsp;</td></tr><tr><td colspan="3" width="1" height="1" background="../img/puntini.gif"><img src="../img/1x1.gif" alt="" border="0" width="1" height="1"></td></tr><tr><td colspan="3" align="center"><br /><br /><a href=erroreregistrazione.asp>Password Dimenticata?</a></td></tr></table></td><td background="../img/_centro_dx.gif"></td></tr><tr><td height="6" width="3" valign="middle"><img src="../img/_sotto_sx.gif" alt="" border="0" width="3"></td><td width="100%" background="../img/_sotto_centro.gif"></td><td width="3" valign="middle"><img src="../img/_sotto_dx.gif" alt="" border="0" width="3"></td></tr></table><br></td></tr></table></td><td background="../img/_centro_dx.gif"></td></tr><tr><td height="6" width="3" valign="middle"><img src="../img/_sotto_sx.gif" alt="" border="0" width="3"></td><td width="100%" colspan="3" background="../img/_sotto_centro.gif"></td><td width="3" valign="middle"><img src="../img/_sotto_dx.gif" alt="" border="0" width="3"></td></tr></table></form>'

//enter a color name or hex to be used as the background color of the message
var backgroundcolor="" 

//enter 1 for always display, 2 for ONCE per browser session
var displaymode=1

//Set duration message should appear on screen, in seconds (10000=10 sec, 0=perpetual)
var displayduration=20000

//enter 0 for non-flashing message, 1 for flashing
var flashmode=0
//if above is set to flashing, enter the flash-to color below
var flashtocolor="deepskyblue"


///////////////do not edit below this line////////////////////////////////////////
var ie=document.all
var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1

function regenerate(){
window.location.reload()
}

function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400)
}

var which=0

function flash(){
if (which==0){
if (document.layers)
topmsg_obj.bgColor=flashtocolor
else
topmsg_obj.style.backgroundColor=flashtocolor
which=1
}
else{
if (document.layers)
topmsg_obj.bgColor=backgroundcolor
else
topmsg_obj.style.backgroundColor=backgroundcolor
which=0
}
}

if (ie||document.getElementById)
document.write('<div id="topmsg" style="position:absolute;z-index:50;visibility:hidden">'+message+'</div>')

var topmsg_obj=ie? document.all.topmsg : document.getElementById? document.getElementById("topmsg") : document.topmsg

function positionit(){
var dsocleft=ie? document.body.scrollLeft : pageXOffset
var dsoctop=ie? document.body.scrollTop : pageYOffset
var window_width=ieNOTopera? document.body.clientWidth : window.innerWidth-20
var window_height=ieNOTopera? document.body.clientHeight : window.innerHeight

if (ie||document.getElementById){
topmsg_obj.style.left=parseInt(dsocleft)+window_width/2-topmsg_obj.offsetWidth/2
topmsg_obj.style.top=parseInt(dsoctop)+parseInt(window_height)-topmsg_obj.offsetHeight-85
}
else if (document.layers){
topmsg_obj.left=dsocleft+window_width/2-topmsg_obj.document.width/2
topmsg_obj.top=dsoctop+window_height-topmsg_obj.document.height-5
}
}

function setmessage(){
if (displaymode==2&&(!display_msg_or_not()))
return
if (document.layers){
topmsg_obj=new Layer(window.innerWidth)
//topmsg_obj.bgColor=backgroundcolor
regenerate2()
topmsg_obj.document.write(message)
topmsg_obj.document.close()
positionit()
topmsg_obj.visibility="show"
if (displayduration!=0)
setTimeout("topmsg_obj.visibility='hide'",displayduration)
}
else{
positionit()
//topmsg_obj.style.backgroundColor=backgroundcolor
topmsg_obj.style.visibility="visible"
if (displayduration!=0)
setTimeout("topmsg_obj.style.visibility='hidden'",displayduration)
}
setInterval("positionit()",100)
if (flashmode==1)
setInterval("flash()",1000)
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function chiudi(){
topmsg_obj.style.visibility='hidden';
}

function display_msg_or_not(){
if (get_cookie("displaymsg")==""){
document.cookie="displaymsg=yes"
return true
}
else
return false
}

if (document.layers||ie||document.getElementById)
window.onload=setmessage

