Your xml file path isn't set correctly, try
echo '<option value="XML/'.$area.'">'.$area.'</option>';
Also you have a multiline string which will cause a syntax error, change
document.write("
");
to something like
document.write("\n");
Also using document.write
after the page loads will overwrite the entire page.