Index.html :
script type="text/javascript">
function chkcookie(){
var grabcookies = document.cookie;
var pos = grabcookies.indexOf("mthbkg=");
if (pos !=-1){
var st= pos+7;
var en= grabcookies.indexOf(";",st);
if (en ==-1) en = grabcookies.length;
var val = grabcookies.substring(st,en);
document.body.style.background="scroll url(mthImage/"+val+".jpg)";
}else{
document.body.style.background="scroll url(mthImage/1pm.jpg)";
document.cookie = "mthbkg=Apr"
}
}
function chg_bkg(x){
if (x=="1"){document.body.style.background="scroll url(mthImage/1am.jpg)";}
document.cookie = "mthbkg="+x;
}
I think you are missing the point of the index.htm page.
This is the default starting page and the format of the frames.
Say you have two frames windows. The dropdown menu is in on frame and the detail is in another.
So why not have the dropdown menu open a new page in the other frame. It can send data to that page using the get option of the action tag. The index.html page is not involved.
The new page now has to parse the data in the url to get the information it needs to correctly display the new window.