Did you create the bmap first..

bmap warning
function call_warning()
{
var warning_msg;

warning_msg = media_play("warning.wav"),warning,100);
}

The above code is untested but I think that's how it should be done.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus