

function confirmDelete2(r,l) {
 var input_box=confirm(r);
 if (input_box==true)
  {
     window.location=l;
  }
}
function checkInt(Input)
     {
          var control="0123456789'/";
          var newInput="";

          for(i=0;i<Input.value.length;i++)
               {
                    chck=Input.value.charAt(i);

                    if(control.indexOf(chck,0)!=-1)
                         {
                              newInput+=chck;
                         }
               }

          Input.value = newInput;
     }
function checkNum(Input)
     {
          var control="0123456789.-'/";
          var newInput="";

          for(i=0;i<Input.value.length;i++)
               {
                    chck=Input.value.charAt(i);

                    if(control.indexOf(chck,0)!=-1)
                         {
                              newInput+=chck;
                         }
               }

          Input.value = newInput;
     }

function toggletip(e) {
  if (e.clsasName == "tip_hidden") {
     e.className = "tip_shown";
  } else {
     e.className = "tip_hidden";
  }
}


function tip_show(e) {
     e.className = "tip_shown";
}
function tip_hide(e) {
     e.className = "tip_hidden";
}

function confirmDelete(r,l) {
 input_box=confirm(r);
 if (input_box==true)
  {
     window.location=l;
  }
}

function showhide(e,t,classname) {
  if (e.checked==true) {    
    if (document.getElementById(t)!=null) {
       document.getElementById(t).className = classname+"section_shown";
    }
  } else { 
    if (document.getElementById(t)!=null) {
       document.getElementById(t).className = classname+"section_hidden";
    }    
  }
}

function show(e) {
     document.getElementById(e).className = "q_section_shown";
}
function hide(e) {
     document.getElementById(e).className = "q_section_hidden";
}
