String nextarea;
int i = 1;
setLayout(new BorderLayout());
String filename = getParameter("filename");
Image theMap = getImage(getDocumentBase(), filename);
ImageMap im = new ImageMap(theMap, getAppletContext());
add("Center", im);
while ((nextarea = getParameter("area" + i++)) != null) {
im.addMapArea(nextarea);
}