
/*
***** Usage example *****
*** When specifying the window parameters (width,height and name) ***
   <a href="http://www.abc.com/xyz.htm" 
      onClick="return Wndw_720_540_0('http://www.abc.com/xyz.htm','775','500','')"
      target="_blank"
   >
      LINK TEXT HERE
   </a>

*** When using the default window parameters (width,height and name) ***
   <a href="http://www.abc.com/xyz.htm" 
      onClick="return Wndw_720_540_0('http://www.abc.com/xyz.htm')"
      target="_blank"
   >
      LINK TEXT HERE
   </a>
*/
function Wndw_720_540_0(trgtURL,width,height,wndwName) 
   {

   var DFLT_WDTH = "720";
   var DFLT_HGHT = "540";
   var name = "";
   var wdth = "";
   var hght = "";
   var params = "";


   wdth = ( undefined == width ) ? DFLT_WDTH:width;
   wdth = ( 0 == wdth.length ) ? DFLT_WDTH:wdth;

   hght = ( undefined == height ) ? DFLT_HGHT:height;
   hght = ( 0 == hght.length ) ? DFLT_HGHT:hght;

   name = ( undefined == wndwName ) ? "":wndwName;

   params = ("toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes")
            +
            (",width="+wdth+",height="+hght);

   window.open( trgtURL
              , name
              , params
              );

   return false; // important in order to prevent opening normal 
                 // window also (when scripting enabled)
                 // use target = "_blank" incase scripting is disabled
   }
