<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nuova pagina 1</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function DoSubmit(obj) {
var compagnia = obj.ID_Compagnia.value;
var agenzia = obj.TXT_Agenzia.value;
var codice = obj.TXT_CodiceAgenzia.value;
var indirizzo = obj.TXT_Indirizzo.value;
var citta = obj.TXT_Citta.value;
var strMailFilter = /^.+@.+\..{2,3}$/;
var strIllegalChars = /[\(\)\<\>\,\;\:\\\/\*\-\+\=\"\[\]]/;
var submitform = true;
var error = '*************** INSERIMENTO AGENZIA ***************\n\n';
error += ' Attenzione : \n\n';
if (compagnia.length < 3) {
error += ' > Compagnia è un campo obbligatorio \n';
submitform = false;
}
if (compagnia.length > 20 ) {
error += ' > Compagnia può contenere massimo 20 caratteri \n';
submitform = false;
}
if (compagnia.length > 1 && compagnia.match(strIllegalChars)) {
error += ' > Compagnia contiene caratteri non consentiti \n';
submitform = false;
}
if (agenzia.length < 3) {
error += ' > Agenzia è un campo obbligatorio \n';
submitform = false;
}
if (agenzia.length > 20 ) {
error += ' > Agenzia può contenere massimo 20 caratteri \n';
submitform = false;
}
if (agenzia.length > 1 && agenzia.match(strIllegalChars)) {
error += ' > Agenzia contiene caratteri non consentiti \n';
submitform = false;
}
if (codice.length < 3) {
error += ' > Codice Agenzia è un campo obbligatorio \n';
submitform = false;
}
if (codice.length > 20 ) {
error += ' > Codice Agenzia può contenere massimo 20 caratteri \n';
submitform = false;
}
if (codice.length > 1 && codice.match(strIllegalChars)) {
error += ' > Codice Agenzia contiene caratteri non consentiti \n';
submitform = false;
}
if (indirizzo.length < 3) {
error += ' > Indirizzo è un campo obbligatorio \n';
submitform = false;
}
if (indirizzo.length > 20 ) {
error += ' > Indirizzo può contenere massimo 20 caratteri \n';
submitform = false;
}
if (indirizzo.length > 1 && indirizzo.match(strIllegalChars)) {
error += ' > Indirizzo contiene caratteri non consentiti \n';
submitform = false;
}
if (citta.length < 3) {
error += ' > Città è un campo obbligatorio \n';
submitform = false;
}
if (citta.length > 20 ) {
error += ' > Città può contenere massimo 20 caratteri \n';
submitform = false;
}
if (citta.length > 1 && citta.match(strIllegalChars)) {
error += ' > Città contiene caratteri non consentiti \n';
submitform = false;
}
if (submitform) {
obj.submit();
}
else {
error += '\n--- Fine Controllo ---\n\n';
alert (error);
return false;
}
}
-->
</script>
</head>
<body>
<form method="POST" action="../collaboratori/InserisciCollaboratore.asp" name="registrationForm">
<td align="center">
<table border="0" width="100%" id="table5">
<tr>
<td colspan="2" bgcolor="#696969">
<p align="center">
<font size="2" color="#FFFFFF">
MODULO NUOVA AGENZIA </font></td>
</tr>
<tr>
<td width="157"><font size="1">NOME COMPAGNIA</font><font color="#FF0000" size="1">
*</font></td>
<td>
<select size="1" name="ID_Compagnia" style="font-family: Arial; font-size: 8pt; border-style: dotted; border-width: 1px; padding-left:2px; padding-right:2px; width:200" class="bordures">
<option selected>----------------------------------------
</option>
<option>asdf</option>
</select></td>
</tr>
<tr>
<td width="157"><font size="1">NOME AGENZIA</font><font color="#FF0000" size="1">
*</font></td>
<td>
<input type="text" name="TXT_Agenzia" size="40" style="font-family: Arial; font-size: 8pt; border-style: dotted; border-width: 1px; padding-left:2px; padding-right:2px" class="bordures"></td>
</tr>
<tr>
<td width="157"><font size="1">
CODICE AGENZIA </font><font color="#FF0000" size="1">
*</font></td>
<td>
<input type="text" name="TXT_CodiceAgenzia" size="40" style="font-family: Arial; font-size: 8pt; border-style: dotted; border-width: 1px; padding-left:2px; padding-right:2px" class="bordures"></td>
</tr>
<tr>
<td width="157"><font size="1">INDIRIZZO<font color="#FF0000">
*</font></font></td>
<td>
<input type="text" name="TXT_Indirizzo" size="40" style="font-family: Arial; font-size: 8pt; border-style: dotted; border-width: 1px; padding-left:2px; padding-right:2px" class="bordures"></td>
</tr>
<tr>
<td width="157"><font size="1">CITTA'</font><font color="#FF0000" size="1">
*</font></td>
<td>
<input type="text" name="TXT_Citta" size="40" style="font-family: Arial; font-size: 8pt; border-style: dotted; border-width: 1px; padding-left:2px; padding-right:2px" class="bordures"></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0" align="center"></td>
<input onClick="DoSubmit(document.registrationForm)" type="button" value="Inserisci Agenzia" name="InserisciAgenzia" style="font-size: 7pt; width: 155; color: #000000; border: 1px solid #333333; background-color: #FFFFFF">
<input type="reset" value="Reset Campi" name="Reimposta" style="font-size: 7pt; width: 155; color: #000000; border: 1px solid #333333; background-color: #FFFFFF">
</form>
</body>
</html>