﻿/*
   Displays a client confirmation dialog.
   
   Inputs:
      questionText: The question the user has to answer.
   
   Returns:
      true if the user selects ok, otherwise false.
*/
function confirmDeletion(questionText) {
   return confirm(questionText);
}


/*
   Hides the control who's name is passed.
   
   Inputs:
      controlId: A string giving the name of the cotrol.

   Returns:
      true
*/
function hideControl(controlId) {
   document.getElementById("<%=controlId.ClientID%>").style.visibility='hidden';
   return true;
}

/*
   Shows a help window.
   
   Inputs:
      url: the help page to show.
      
   Returns:
      nothing
*/
function ShowHelpWindow(url) {
   window.open ( url, '', 'location=0,width=676,height=700,resizable=0,status=0,toolbar=0,menubar=0' );
}
      
