Thank you for everything,
I added this code to hikashop.js:
if(type=='address' && typeof varform.elements['data[address][email]'] != 'undefined')
{
var efield=varform.elements['data[address][email]'];
var efilter = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
if(efield.value.length > 0 && !efilter.test(efield.value))
{alert("Bad email !");return false;}
}
And now I have email filter in the address form.
Anyway, when you enter the address it doesn't show the extra fields I added in the address info displayed on the checkout page, it only shows the original data, name phone street and so on!
How can I get it to also display the new fields?