function playmov(obj)
{
	obj.Play();
}

function stopmov(obj)
{
	obj.Stop();
}

function startmov(obj)
{
	obj.Rewind();
}

function backmov(obj)
{
	obj.Step(-1);
}

function forwardmov(obj)
{
	obj.Step(+1);
}

function shush(obj)
{
  obj.SetMute(!obj.GetMute());	
}


function getXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    	// Firefox, Opera 8.0+, Safari
    	xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    	// Internet Explorer
    	try
      	{
			//IE 6.0+
      		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      	}
    	catch (e)
      	{
			try
				{
						//IE 5.5+
        				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
      		catch (e)
        		{
						//if none of the above works then you are out of luck really
        				alert("Sorry your browser is out of date or an unsupported version.  Please update your browser and try again.");
        				return false;
        		}	
     	}
    }
  return xmlHttp;
}


function stats(who, what, when)
{ 
    //alert("who = " + who + "\nwhat = " + what + "\nwhen = " + when);
	xmlHttp=getXmlHttpObject();
	if(xmlHttp)
	{
	   xmlHttp.onreadystatechange=function()
      	{
      		if(xmlHttp.readyState==4)
        		{
					//do nothing
					var res = xmlHttp.responseText;
					//alert(res);
        		}
      	}
    	xmlHttp.open("GET", "storestats.php?who=" + who + "&what=" + what + "&when=" + when,true);
		xmlHttp.send(null);	
			
	}	
}//end function