var gYahooWind;
function fnYahooWind(url,htpx,widpx){
var YahooWind;
var locationStr;
var htpx,widtx;
locationStr = url;
if ( htpx == "")
   { htpx = "HEIGHT = 600";}
else
   { htpx = "HEIGHT = " + htpx;}   
if ( widpx == "")
   { widpx = "WIDTH = 800";}   
else
   { widpx = "WIDTH =" + widpx;}
           
if (YahooWind)
   {
       YahooWind.focus();
       YahooWind.location = locationStr;
   }
   else
   {
   YahooWind = window.open(locationStr,"YahWindow",htpx+","+widpx+" top=10,left=50,dependent,resizable=yes,alwaysRaised,menubar=yes,toolbar=yes,scrollbars=yes,addressbar=yes");
//   YahooWind = window.open(locationStr,"YahWindow",htpx+","+widpx+" top=20,left=50,dependent,alwaysRaised);
// this is to declare a global object variable so that the window can be closed using onunload function in the body tag
   gYahooWind = YahooWind;
   YahooWind.focus();
   }

}
