// Java Document
<!--
var    chasm	=   screen.availWidth;
var    mount    =   screen.availHeight;
var    IpAddress =   0;


var    sizeFlag1 = 1;
var    sizeFlag2 = 1;


function Play()
{  
     
  try{   
        document.WebCamX1.PlayX();  
      
   }catch(e){
	alert("ActiveX downloading please refresh");
   }   
   
}



function PTZControl()
{
   try{
   
       document.WebCamX1.PTZControlX();
     
   }catch(e){
	alert("ActiveX downloading please refresh");
   }

}


function ReConnect()
{  
     
  try{   
        document.WebCamX1.ReConnectX();  
      
   }catch(e){
	alert("ActiveX downloading please refresh");
   }   
   
}


function IOControl()
{
   try{
   
       document.WebCamX1.IOControlX();
     
   }catch(e){
	alert("ActiveX downloading please refresh");
   }

}




function FileSave()
{
   try{
   
       document.WebCamX1.SaveX();
     
   }catch(e){
	alert("ActiveX downloading please refresh");
   }

}


function Stop()
{
  try{
   
       document.WebCamX1.StopX();  
      
   }catch(e){
	alert("ActiveX downloading please refresh");
   }
   
   	
}

function Zoom()
{
   try{       
      document.WebCamX1.FullScreenX();  	    	       
     
     }catch(e){
	alert("ActiveX downloading please refresh");
   }
}





function SnapShot()
{
 try{
  
   document.WebCamX1.SnapShotX();
       
   }catch(e){
	alert("ActiveX downloading please refresh");
   }

}


function ShowCamMenu()
{    
   
  try{    
       document.WebCamX1.ShowCamMenuX();
    
   }catch(e){
	alert("ActiveX downloading please refresh");
   }
   
}

function ChangeQuality()
{     
   try{
   	document.WebCamX1.ShowQulMenuX();  
   }catch(e){
	alert("ActiveX downloading please refresh");
   }
   
}

function AudioControl()
{     
   try{
   	document.WebCamX1.AudioControlX();  
   }catch(e){
	alert("ActiveX downloading please refresh");
   }
   
}

function MicControl()
{     
   try{
   	document.WebCamX1.MicControlX();  
   }catch(e){
	alert("ActiveX downloading please refresh");
   }
   
}

function CreateX()
{  
  try{
  	document.WebCamX1.CreateX();
  	if(IpAddress == 0) return;
 	 document.WebCamX1.IpAddress= IpAddress;
 	 document.WebCamX1.CommandPort = CommandPort;
     document.WebCamX1.DataPort = DataPort;
     document.WebCamX1.AudioDataPort = AudioPort;
   }catch(e){
	alert("ActiveX downloading please refresh");
   }

}

function DestroyX()
{  
  try{
    document.WebCamX1.DestroyX();
  }catch(e){
	alert("ActiveX downloading please refresh");
   }

}



//-->