var ginfoWind;
function fnInfoWind(url,hashAnchor,htpx,widpx){
var infoWind;
var locationStr;
var htpx,widtx;
if (!hashAnchor=="")
   {locationStr = url + "#" + hashAnchor;}
else
   { locationStr = url;}   
if ( htpx == "")
   { htpx = "HEIGHT = 375";}
else
   { htpx = "HEIGHT = " + htpx;}   
if ( widpx == "")
   { widpx = "WIDTH = 400";}   
else
   { widpx = "WIDTH =" + widpx;}
           
if (infoWind)
   {
       infoWind.focus();
       infoWind.location.hash = hashAnchor;
   }
   else
   {
   infoWind = window.open(locationStr,"InfoWindow",htpx+","+widpx+" top=0,left=0,dependent,resizable,alwaysRaised,menubar,directories=0");
// this is to declare a global object variable so that the window can be closed using onunload function in the body tag
   ginfoWind = infoWind;
   infoWind.focus();
   }

}
