You can use my querystring object to retrive the values, but they have to be in "proper" querystring format (you may also have to escape them, but I doubt it):
<a href="mypage.htm?date1=10/10/2001&date2=10/10/2001">
then:
function QSHandler()
{
var i,j,tmparray,strata,prlen
strata = window.location.search
strata = strata.substring(1,strata.length)
if(strata.indexOf('&')>=0)
{
prsarray = strata.split('&')
prlen = prsarray.length
tmparray = new Array()
for(t=j=0;j<prlen;j++)
{
tmparray[t++] = prsarray[j].split('=')[0]
tmparray[t++] = prsarray[j].split('=')[1]
}
}
else
{
tmparray = new Array(strata.split('=')[0],strata.split('=')[1])
}
tlen = tmparray.length
this.data = new Array()
for(i=0;i<tlen;i++)
{
this.data[new String(tmparray
)]=tmparray[++i]
}
this.QueryString=function(x)
{
return this.data[x]
}
}
Request = new QSHandler()
and reference the dates like so:
date1 = Request.QueryString("date1"
date2 = Request.QueryString("date2"
jared@eae.net -