/*
 * Filename: common.js
 * Purpose: Container for all of the common javascript functions
 * Change log:
 *  02.16.2010 - Created - David Verro
 */ 
 
 /********************Global Variables************************/


 
/********************    Functions   ************************/   
 
 /*
 * Function Name: DisplayError
 * Purpose: Displays the errors caught by exception handling
 * Parameters: 
 *    strErrorMessage - String - The error message to be displayed   
 * Change log:
 *  02.16.2010 - Created - David Verro
 */
function DisplayError(strErrorMessage)
{
  alert(strErrorMessage);
}
 
/*
 * Function Name: CopyText
 * Purpose: Copies the value of the first id and assigns it to the second id 
 * Parameters:
 *    id1 - String - the id of the control to be copied from
 *    id2 - String - the id of the control to be copied to   
 * Change log:
 *  02.16.2010 - Created - David Verro
 */ 
function CopyText(id1, id2)
{
  if(document.getElementById(id1) && document.getElementById(id2))
  {
    document.getElementById(id2).value = document.getElementById(id1).value;    
  }
}
 
/*
 * Function Name: hideScriptDisabled
 * Purpose: Changes the style: display property of the id to none 
 * Parameters:
 *    id - String - Hides the control with the corresponding id 
 * Change log:
 *  02.16.2010 - Created - David Verro
 */ 
function hide(id) 
{          
  document.getElementById(id).style.display = "none";
}









