function validateForm(updateform) {
if (updateform.email.value == "") {
alert("Please enter your e-mail!");
updateform.email.focus();
return false;
}
}

KOD=document.location
W='Update ' + KOD
document.write('<FORM action="php/mail.php" METHOD="POST" name="updateform" onsubmit="return validateForm(this)">');
document.write('<input type="hidden" name="recipient" value="gallery@poster.com.pl">');
document.write('<INPUT type="hidden" name="strona">');

document.updateform.strona.value = W;

document.write('<input type="hidden" name="redirect" value="http://www.poster.com.pl/update-ok.htm">');
document.write('<table bgcolor="4c82b8" border="0" cellpadding="1" cellspacing="0">');
document.write('<tr><td><table border="0" bgcolor="eeeeee" cellpadding="0" cellspacing="0">');
document.write('<tr><th colspan="2"><font face="arial" size="1">');
document.write('Subscribe here to receive update information<BR>&nbsp;</font></th></tr>');
document.write('<tr><td align="right"><font face="arial" size="1">');
document.write('<nobr> E-mail: <input name="email" size="15">&nbsp;</nobr><br>');
document.write('<nobr>&nbsp;Subjects: <input name="subject" size="15">&nbsp;<BR>&nbsp;</nobr></font></td>');
document.write('<td><font face="arial" size="1"><nobr>&nbsp;<input type="submit" value="Send">&nbsp;</nobr>');
document.write('</font></td></tr></table></td></tr></table></form>');
