Hvorfor lykkes det ikke ??
<script language=\"VBScript\"><!--
Sub Pakkenrvalidering()
parclid = tntim.pakke.value
nulstille = true
for i = 1 to len(tntim.pakke.value)
Tal = IsNumeric(mid(tntim.pakke.value,i,1))
if tal = false then
msgbox \"Only type Numbers.\"
nulstille = false
end if
next
if len(tntim.pakke.value) <> 11 then
msgbox \"The Parcel No. must be 11 numbers\"
nulstille = false
end if
if mid((tntim.pakke.value),1,1) = \"0\" then
msgbox \"Du kan ikke lave track & trace på danske pakker\"
nulstille = false
end if
if nulstille = false then
tmpURL = \"tnt_imp.asp\"
end if
if nulstille = true then
tmpURL = \"tnt_3_3_import.asp?parclNo=\" & parclid
end if
location.href = tmpURL
End Sub
-->
</script>
Spg: min locatio.href bør dirigere mig til den ønsket side... det sker ikke jeg bliver på den side hvor jeg er ??
/arno
