<?php
error_reporting(0);
define('IN_MYMPS',true);
define(CURSCRIPT,dirname(__FILE__));
require CURSCRIPT."/pinyin.inc.php";
require CURSCRIPT."/../../data/config.db.php";
define(MYMPS_DATA,CURSCRIPT.'/../../data');
$t = $value = $elementbyid = $ishead = '';
$t = trim($_GET['t']);
$ishead = intval($_GET['ishead']);
$value = GetPinyin($t,$ishead);
$elementbyid = $ishead ? 'newdirectory' : 'newcitypy';
echo "<SCRIPT LANGUAGE=\"JavaScript\">
			<!--
			parent.document.getElementById(\"".$elementbyid."\").value='$value';
			//-->
			</SCRIPT>";
unset($value,$t,$ishead,$elementbyid);
?>