
// pinyinSoundTag is predefined and the element id is hardcoded in the 
// html of the page on which the sound is to be played...

var pinyinSoundTag = "document.all.pinyinSounds";


function playOrOpenSound(url) {
    var soundTag = getById("pinyinSounds");
    //var soundTag = eval(pinyinSoundTag);
    //if (soundTag == null) {
    //    soundTag = document.all.pinyinSounds;
    //}
    if (soundTag == null) {
        document.open(url, "_new");
    } else {
        soundTag.src = url;
    }
}

function poos(url) {
    playOrOpenSound(url);
}

function poom(py) {
    self.status=py;
}
