<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head></head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
<?php if (isset($address)): ?>
<?php if (is_a($address, 'PEAR_Error')): ?>
alert('<?php echo addslashes(sprintf(_("The field '%s' can't be expanded."), $field_name)) ?>');
window.setTimeout('var status = window.parent.document.getElementById(\'expanding<?php echo $field_name ?>\'); status.style.visibility = \'hidden\'', 10);
<?php elseif (is_array($address)): ?>
alert('<?php echo addslashes(sprintf(_("More than one address found for field '%s'."), $field_name)) ?>');
window.setTimeout('var status = window.parent.document.getElementById(\'expanding<?php echo $field_name ?>\'); status.style.visibility = \'hidden\'', 10);
<?php else: ?>
window.setTimeout('var status = window.parent.document.getElementById(\'expanding<?php echo $field_name ?>\'); status.style.visibility = \'hidden\';window.parent.document.compose.<?php echo $field_name ?>.value = \'<?php echo addslashes($address) ?>\';', 10);
<?php endif; ?>
<?php endif; ?>
window.parent.busyExpanding = false;
//-->
</script>
</body>
</html>
