function showhideObj(obj,linkk)
{

		document.getElementById(obj).className = document.getElementById(obj).className == "navclose" ? "navopen": "navclose";
    	document.getElementById(linkk).className = document.getElementById(linkk).className == "navimgclose" ? "navimgopen": "navimgclose";
    	document.cookie = obj + " = " + document.getElementById(obj).className;
}
function trimLeft(s) {
  while(s[0] == " ")
    s = s.substr(1);
  return s;
}
function getCookie(sName) {
  var aCookie = document.cookie.split(";");
  for (var i = 0; i < aCookie.length; i++) {
    var aCrumb = trimLeft(aCookie[i]).split("=");
    if (sName == aCrumb[0])
      return unescape(aCrumb[1]);
  }
  return null;
}
function sendemail(m)
{
		window.open('lib/send.php?mailto='+m, 'sendemailwindow','top=5000,left=5000,width=1,height=1');
}

function shObj(lock,ex){
	obj = document.getElementById(lock);
	expand = document.getElementById(ex);
    obj.className = obj.className == "col" ? "exp": "col";
    expand.className = expand.className == "close" ? "open": "close";
}