diff --git a/htdocs/soc.php b/htdocs/soc.php index b8bbc49724f..b78ccb9a1b6 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -172,18 +172,14 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; } - $js_OpenPopupWindow = "function PopupPostalCode(postalcode,objectville) -{ - var url = 'searchpostalcode.php?cp=' + postalcode + '&targetobject=window.opener.document.formsoc.' + objectville.name; - // alert(url); - var hWnd = window.open(url, \"SearchPostalCodeWindow\", \"width=\" + 300 + \",height=\" + 150 + \",resizable=yes,scrollbars=yes\"); - if((document.window != null) && (!hWnd.opener)) - hWnd.opener = document.window; -} -"; + include("./soc.js.php"); + + print '\n"; - print "\n"; print '
'."\n"; - + } } elseif ($_GET["action"] == 'edit')