document.typedef_string = Array(); document.typedef_string[2] = [['name'],[''],[''],[''],[''],['0'],[''],[''],[''],[''],['50'],['Felaktigt namn']]; document.typedef_string[1] = [['email'],['[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}'],[''],[''],[''],['0'],[''],[''],[''],[''],['50'],['Virheellinen sähköpostiosoite']]; document.typedef_string[7] = [['phone'],['[\\d+][\\d\\- ]+[\\d]'],[''],['[ ]'],[''],['30'],[''],[''],[''],[''],['50'],['Virheellinen puhelinnumero']]; document.typedef_string[20] = [['message'],[''],[''],[''],[''],['0'],[''],[''],[''],[''],[''],['']]; document.typedef_string[6] = [['address'],[''],[''],[''],[''],['0'],[''],[''],[''],[''],['50'],['Felaktig adress']]; document.typedef_string[4] = [['city'],[''],[''],[''],[''],['0'],[''],[''],[''],[''],['50'],['Felaktig postort']]; document.typedef_string[5] = [['postal'],[''],[''],[''],[''],['6'],['(?0)&&(obj.value.length>thisPos[10])) return doError(obj,thisPos[11]); if (doRegExp(obj.value,thisPos[1])==1) return doError(obj,thisPos[11]); if (doRegExp(obj.value,thisPos[2])==2) return doError(obj,thisPos[11]); if (document.getElementById('errormsg_'+thisPos[0]+'_'+pos) && obj.value != "") document.getElementById('errormsg_'+thisPos[0]+'_'+pos).style.display = "none"; } document.initForm = function () { inputElementsLen = document.getElementsByTagName("INPUT").length; for (i=0;i