ver=parseInt(navigator.appVersion)
ie4=(ver>3  && navigator.appName!="Netscape")?1:0
ns4=(ver>3  && navigator.appName=="Netscape")?1:0
ns3=(ver==3 && navigator.appName=="Netscape")?1:0

function mailsound()
	{
	if (document.mailboxes.InBox.value > 0)
		{
		if (ie4) document.all['newmail_id'].src='mail.wav';
//		if ((ns4||ns3)&& navigator.javaEnabled() && navigator.mimeTypes['audio/x-wav'] && self.document.Bach.IsReady())
//			{
//			self.document.newmail.play();
//			}
		}
	}
	
//function stopmailsound()
//	{
//	if (ie4) document.all['newmail_id'].src='null.wav';
//	if ((ns4||ns3) && navigator.javaEnabled() && navigator.mimeTypes['audio/x-wav'])
//		{
//		self.document.newmail.stop();
//		}
//	}
//
//function mailalert() {
//if (document.mailboxes.InBox.value > 0)
//	{
//	if (document.mailboxes.InBox.value == 1)
//		{
//		alert("You have 1 new message.");
//		}
//	if (document.mailboxes.InBox.value > 1)
//		{
//		alert("You have " + document.mailboxes.InBox.value + " new messages.");
//		}
//	}
//}