Function CheckProduct()
		Dim strParams
		if Not IsDate(document.form2.Datum.value) Then 'checking for real date
			alert("Please enter a valid date.")
		else
			strParams = document.form2.Datum.Value    '
			strParams = replace(strParams, "/", "-") 'can not pass / ie will reject
		'making string for new window	
		strURL="sampleshow.asp?otherpram=stuffstuffstuff&otherpram2=<%=OtherPramValue%>&Datum=" & strParams
		'openning new window
		window.open strURL,"",""
		end if
	end function