function winLaunch(url, title, width, height) {
   if (width === undefined) {
      width = 600;
   }
   if (height === undefined) {
      height = 450;
   }
   
    window.open(
               url,
               title,
               'width=' + width + ',height=' + height  + 
',resizable,status,menubar,scrollbars,toolbar'
              );
}

// ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// tabNext()
// Function to auto-tab phone field
// Arguments:
//   obj :  The input object (this)
//   event: Either 'up' or 'down' depending on the keypress event
//   len  : Max length of field - tab when input reaches this length
//   next_field: input object to get focus after this one
// -------------------------------------------------------------------
var phone_field_length = 0;

function tabNext(obj, event, len, next_field) {
    if (event == "down") {
        phone_field_length = obj.value.length;
    } else if (event == "up") {
        if (obj.value.length != phone_field_length) {
            phone_field_length = obj.value.length;
            if (phone_field_length == len) {
                next_field.focus();
            }
        }
    }
}
