function resetWidth(x) 
{
     var flash = document.getElementById(x);
     var winWidth = document.body.clientWidth?document.body.clientWidth:window.innerWidth;
	 //var	winwidth=document.all?document.body.clientWidth:window.innerWidth; //try new way
  
     if (winWidth <=1024 && winWidth >=800 ) //problem code
	 {
		 flash.setAttribute("width", "1000px");
         flash.setAttribute("height", "768px");
     } 
	 else
	 {	
		 flash.setAttribute("width", "800px");
         flash.setAttribute("height", "600px");	
     }
 }