Warning: main(/web/htdocs/www.designdirectory.it/home//languages/LANG_PRE.lang.inc.php) [function.main]: failed to open stream: No such file or directory in /web/htdocs/www.designdirectory.it/home/js_jquery/validazioneSegnala.php on line 10
Warning: main() [function.include]: Failed opening '/web/htdocs/www.designdirectory.it/home//languages/LANG_PRE.lang.inc.php' for inclusion (include_path='.:/php5/lib/php/') in /web/htdocs/www.designdirectory.it/home/js_jquery/validazioneSegnala.php on line 10
function validazioneSegnala(curforma){
$('.messaggi').html('').hide()
msgErr2="";
var msgErr='MSG_PLEASE_FILL
'
curform=document.forms[curforma];
// verifico che il ceck della privacy sia cliccato
// Nome
isVuoto('Surname')
if(fill=='')msgErr2+='CL_COMPANY_NAME
'
isVuoto('Address')
if(fill=='')msgErr2+='CL_ADDRESS
'
// Citta
isVuoto('City')
if(fill=='')msgErr2+='CL_CITY
'
isVuoto('Zipcode')
if(fill=='')msgErr2+='CL_ZIP
'
isVuoto('State')
if(fill=='')msgErr2+=' CL_STATE
'
isVuoto('Phone')
if(fill=='')msgErr2+='CL_PHONE
'
// web site
isVuoto('Website')
if(fill=='')msgErr2+='CL_WEBSITE
'
curEmail=$("#Email").val()
checkEmail($('#Email').val())
if(fill=='')msgErr2+='CL_EMAIL
'
if(msgErr2!=""){$('.messaggi').show('slow').html(msgErr+msgErr2)}
// se vuoto faccio il subnmit
if (msgErr2==""){
$('.messaggi').html('').hide()
ma_ajax_updater('modulosegnala','formrichieste','formBox')
//curform.submit();
//document.forms["altre_info"].submit();
return false;
}
else {return false}
}
function verifyEmail(){
curEmail=$("#email").val()
checkEmail($('#email').val())
IdUser=$('#id_user').val()
if(fill=='')erroreMessage('Email non valido')
else if(curEmail!=''){
//showWait()
$.post( urlAjaxHandler,
{ email: curEmail, actionType:'verificaEmail',id_user: IdUser}
,function(xml){
if (xml.match('OK')) {
//closeDialog("#msgBox")
}
else {
erroreMessage('MSG_PLEASE_FILL')
}
}
);
}
}