// author:    xemlock <xemlock@gmail.com>
// date:      4 Jun 2006 
// copyright: none, 'cause these functions are so easy to write
//            that it is no use for copyrighting them :-)

// toggle display ---------------------------------------------
function tgd(id) {
  var d=document.getElementById(id).style;
  d.display = d.display=='block' ? 'none' : 'block';
}

// marquee control --------------------------------------------
function mqsd(id) {
  var mq = document.getElementById(id);
  mq.scrollAmount = 2;
}

function mqac(id) {
  var mq = document.getElementById(id);
  mq.scrollAmount = 5;
}

// remove default input value if clicked -----------------------
function inpd(obj,str) {
  if(obj.value==str) obj.value='';
}

// confim action -----------------------------------------------
function acnf(question,action) {
  if(confirm(question)) window.location = action;
}

