function vopen(place, name, height, width, scroll, resize)
{
   if ((height == null) || (height == ""))
   {
      height = 480;
   }
   if ((width == null) || (width == ""))
   {
      width = 640;
   }
   if ((scroll == null) || (scroll == ""))
   {
      scroll = "yes";
   }
   if ((resize == null) || (resize == ""))
   {
      resize = "yes";
   }

	var url;
  
   var atts;
   atts = "height=" + height + ",width=" + width + ",resizable=" + resize + ",scrollbars=" + scroll;
   window.open(place, name, atts);
} //end vopen()

function vopen2(place, name, height, width, scroll, resize)
{
   myleft=(screen.width)?(screen.width-width)/2:100;
   mytop=(screen.height)?(screen.height-height)/2:100;

   if ((height == null) || (height == ""))
      {
      height = 480;
      }
   if ((width == null) || (width == ""))
      {
      width = 640;
      }
   if ((scroll == null) || (scroll == ""))
      {
      scroll = "yes";
      }
   if ((resize == null) || (resize == ""))
      {
      resize = "yes";
      }
	var url;
  
   var atts;
   atts = "height=" + height + ",width=" + width + ",resizable=" + resize + ",scrollbars=" + scroll+", top="+mytop+",left="+myleft;
   var myWindow = window.open(place, null, atts);

   return myWindow;
} //end vopen2()

function vTrim(TRIM_VALUE)
{
   if (TRIM_VALUE.length < 1)
   {
      return "";
   }
   TRIM_VALUE = RTrim(TRIM_VALUE);
   TRIM_VALUE = LTrim(TRIM_VALUE);

   if (TRIM_VALUE=="")
   {
      return "";
   }
   else
   {
      return TRIM_VALUE;
   }
} //End trim()

function RTrim(VALUE)
{
   var w_space = String.fromCharCode(32);
   var v_length = VALUE.length;
   var strTemp = "";
   
   if (v_length < 0)
   {
      return"";
   }
   var iTemp = v_length -1;

   while(iTemp > -1)
   {
      if(VALUE.charAt(iTemp) == w_space)
      {
      }
      else
      {
         strTemp = VALUE.substring(0,iTemp +1);
         break;
      }
   
      iTemp = iTemp-1;

   } //End While

   return strTemp;
} //End RTrim()

function LTrim(VALUE)
{
   var w_space = String.fromCharCode(32);
   
   if(v_length < 1)
   {
      return"";
   }
   
   var v_length = VALUE.length;
   var strTemp = "";
   var iTemp = 0;

   while(iTemp < v_length)
   {
      if(VALUE.charAt(iTemp) == w_space)
      {
      }
      else
      {
         strTemp = VALUE.substring(iTemp,v_length);
         break;
      }
   
      iTemp = iTemp + 1;
   
   } //End While

   return strTemp;
} //End LTrim()
