function e(id)
{
   return document.getElementById(id);
}

function gv(id)
{
   if (e(id)) return e(id).value;
}

function sv(id, value)
{
   if (e(id)) e(id).value = value;
}

function gc(id)
{
   if (e(id)) return e(id).className;
}

function sc(id, cl)
{
   if (e(id)) e(id).className = cl;
}


function hide(id)
{
   if (e(id)) e(id).style.display = "none";
}

function show(id)
{
   if (e(id)) e(id).style.display = "block";
}

function ShowHide(id)
{
   var obj = e(id);
   if (obj.style.display == "none") obj.style.display = "block";
   else obj.style.display = "none";
}


function checkNumberFloat(str)
{
   var re = /^[\d]*[\.,]?[\d]*$/;
   return re.test(str);
}

function checkEmail(str)
{
   var re = /[a-z\d-_\.]+@[a-z\d-_]+(\.[a-z\d_-]+)/i;
   return re.test(str);
}

