function showHide(theid){
		var toate = document.getElementById('navi').getElementsByTagName('span');
		var switch_id = document.getElementById(theid);
		var clasa =   switch_id.className;
		for(var i=0;i<toate.length;i++)
			toate[i].className = 'hide';

	if(clasa == 'hide')
		var menu_status = new Array();
    if (document.getElementById) {

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }
				else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

function showHide2(theid){
		var toate = document.getElementById('mark').getElementsByTagName('span');
		var switch_id = document.getElementById(theid);
		var clasa =   switch_id.className;
		for(var i=0;i<toate.length;i++)
			toate[i].className = 'hide';

	if(clasa == 'hide')
		var menu_status = new Array();
    if (document.getElementById) {

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }
				else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

function MsgBox(msg,msg1)
{
  spring = window.confirm(msg1);
  if (spring == true)
    openNewWindow(msg);
}

function openNewWindow(msg)
{
  window.location = msg;
}


function hideDiv(id,name){
	document.getElementById('comp').value = name;
	document.getElementById('compHidden').value = id;
	document.getElementById('divHint').style.display = 'none';
}
