
function switch_this(inVar){
   //showThis("Function - swith_this: inVar = '" + inVar + "'" );
   // Sample Switch Syntax Example

      switch (inVar)
      {
         case 'enterValue1': {
                           EnterConditionalStatements
                           break;
                          }
         case 'enterValue2': {
                           EnterConditionalStatements
                           break;
                          }
         case 'enterValue3': {
                           EnterConditionalStatements
                           break;
                          }
         default: { break;}
      }  // end Select Statement
 }

function background_color_off(elementName, inVar){
   //showThis("Function - background_color_off:  '" + elementName + "' and Color = '" + inVar + "'");
   document.getElementById(elementName).style.background = inVar;
}

function background_color_on(elementName, inVar){
   //showThis("Function - background_color_on:  '" + elementName + "' and Color = '" + inVar + "'");
   document.getElementById(elementName).style.background = inVar;
}

function bold_on(elementName){
   //showThis("Function - bold_on:  '" + elementName + "'" );
   document.getElementById(elementName).style.fontWeight = "BOLD";
   document.getElementById(elementName).style.color = clickedDateFontColor;
}

function bold_off(elementName){
   //showThis("Function - bold_off:  '" + elementName + "'" );
   document.getElementById(elementName).style.fontWeight = "NORMAL";
}

function border_off(elementName){
   //showThis("Function - border_off:  '" + elementName + "'" );
   document.getElementById(elementName).style.borderWidth = '0';
   document.getElementById(elementName).style.borderStyle = 'none';
}

function border_on(elementName, inVar){
   //showThis("Function - border_on:  '" + elementName + "'" );
   document.getElementById(elementName).style.borderWidth = 1;
   document.getElementById(elementName).style.borderStyle = 'solid';
   document.getElementById(elementName).style.borderColor = inVar;
}

function display_on(elementName){
   //showThis("Function - Display_on:  '" + elementName + "'" );
   document.getElementById(elementName).style.display = '';
}

function display_off(elementName){
   //showThis("Function - Display_off:  '" + elementName + "'" );
   document.getElementById(elementName).style.display = 'none';
}

function image_this(elementName, inVar) {
   //showThis("Function - image_this:  '" + elementName + "'\ninVar = '" + inVar + "'" );
      document.getElementById(elementName).src = inVar;
}

function innerText_on(elementName, inVar) {
   //showThis("Function - innerText_on:  '" + elementName + "'\ninVar = '" + inVar + "'" );
      document.getElementById(elementName).innerText = inVar;
}

function innerHTML_on(elementName, inVar) {
   //showThis("Function - innerHTML_on:  '" + elementName + "'\ninVar = '" + inVar + "'" );
      document.getElementById(elementName).innerHTML = inVar;
}

function jumpTo(inVar) {
   //showThis("Function - jumpTo:  '\ninVar = '" + inVar + "'" );
      window.location.hash=inVar;
}

function message_off(elementName){
   document.getElementById(elementName).innerHTML = "";
}

function border_on(elementName){
   //showThis("Function - border_on:  '" + elementName + "'" );
   document.getElementById(elementName).style.borderWidth = 1;
   document.getElementById(elementName).style.borderStyle = 'solid';
   document.getElementById(elementName).style.borderColor = black;
}

function selectThis(elementName, inVar) {
   //showThis("Function - selectThis:  '" + elementName + "'\ninVar = '" + inVar + "'" );
   document.getElementById(elementName).selectedIndex = inVar;
}

function setBackGround(elementName, inVar) {
   //showThis("Function - setBackGround:  '" + elementName + "'\ninVar = '" + inVar + "'" );
   document.getElementById(elementName).style.background = inVar;
}

function setBorderColor(elementName, inVar) {
   //showThis("Function - setBorderColor:  '" + elementName + "'\ninVar = '" + inVar + "'" );
   document.getElementById(elementName).borderColor = inVar;
}

function setButtonClickedStatus(inVar) {
   //showThis("Function - setButtonClickedStatus: inVar = '" + inVar + "'" );
   currentCalendarButtonClick = inVar;
}

function showImageSource(elementName){
   //Get the current Image Source URL
   var imageSource = document.getElementById(elementName).src;

   //showThis("Function - showImageSource: elementName = '" + elementName + "'\nimageSource = '" + imageSource + "'");
   return imageSource;
}

function popup_window(inVar){
   // open the popup window
      window.open(inVar);
}

function show_image_text(elementName, inVar){
   //showThis("function show_image_text: elementName = '" + elementName + "', inVar = '" + inVar + "'");
   innerHTML_on(elementName, inVar);
}

function showThis(inVar) {
   alert(inVar);
}

function visibility_on(elementName){
   //showThis("visibility_on:  '" + elementName + "'" );
   document.getElementById(elementName).style.visibility='visible';
}

function visibility_off(elementName){
   //showThis("visibility_off:  '" + elementName + "'" );
   document.getElementById(elementName).style.visibility='hidden';
}

