
function popupListHide(fSName) {

fSDiv = top.document.getElementById(fSName+'List');

if (fSDiv) {
 fSDiv.style.visibility = 'hidden';
}

}

function popupList(fSName) {

fSDiv = top.document.getElementById(fSName+'List');

var fSIndex;
fSIndex = top.document.getElementById('ffield'+fSName).selectedIndex;

if (fSIndex != 3 ) {

if (!fSDiv) {

popUpTop = top.document.getElementById('fs'+fSName).offsetTop+22;
popUpLeft = top.document.getElementById('fs'+fSName).offsetLeft;

newDiv = top.document.createElement("div");
newDiv.setAttribute("id", fSName+"List");
newDiv.style.position = 'absolute';
newDiv.style.left = popUpLeft+'px';
newDiv.style.top = popUpTop+'px';
newDiv.style.visibility = 'visible';

newFrame = top.document.createElement("iframe");
newFrame.setAttribute("id", fSName+"Frame");
newFrame.setAttribute("src", "/search/maps/fslist.asp?fSName="+fSName+"&fSIndex="+fSIndex);
newFrame.setAttribute("frameBorder", "0");
newFrame.setAttribute("width", "235");
newFrame.setAttribute("height", "98");

newDiv.appendChild(newFrame);

top.document.body.appendChild(newDiv);
}

else {

if (fSDiv.style.visibility == 'hidden') {

if (top.document.getElementById('1List')) { top.document.getElementById('1List').style.visibility = 'hidden'; }
if (top.document.getElementById('2List')) { top.document.getElementById('2List').style.visibility = 'hidden'; }
if (top.document.getElementById('3List')) { top.document.getElementById('3List').style.visibility = 'hidden'; }

top.document.getElementById(fSName+'Frame').src = "/search/maps/fslist.asp?fSName="+fSName+"&fSIndex="+fSIndex; 
fSDiv.style.visibility = 'visible';

}
else {
fSDiv.style.visibility = 'hidden';
}

}

}

}


