


function topMenu(menuId,id)
{
	var obj = document.getElementById(menuId)
	if (id==1)
	{
	obj.style.visibility = 'visible';
	obj.style.display = 'block';
	}
	
	if (id==0)
	{
	obj.style.visibility = 'hidden';
	obj.style.display = 'none';
	}
}

function ChangeHpImg (id,Lang)
{

	var ImgObj = document.getElementById('Hpimg')
	if (id == 1)
	{
		if (Lang == "Heb")
		{
			ImgObj.src = "images/Hp_newpos_hov.jpg";
		}
		else
		{
			ImgObj.src = "images/heb_hp_joinus_hov.jpg";
		}
	}
	else
	{
		if (Lang == "Heb")
		{
			ImgObj.src = "images/Hp_newpos_reg.jpg";
		}
		else
		{
			ImgObj.src = "images/heb_hp_joinus_reg.jpg";
		}
	}

}

function faq_function(new_one, Question)
{		
	document.getElementById(Question).style.display = "none";
	document.getElementById(new_one).style.display = "block";	
	last_div=new_one
	last_question=Question
}


function WindowOpen(address)
{
	window.open(address,"BigPic","scrollbars=0,resizable=1,toolbar=0,status=0,location=0,menubar=0")
}



last_menu = null
function show_sub(MessageID)
{
if (eval("document.all.sub_menu" + MessageID))
	{
	if (eval("sub_menu" + MessageID + ".style.display=='none'"))
		{
		eval("sub_menu" + MessageID + ".style.display='block'")
		}
	else
		{
		eval("sub_menu" + MessageID + ".style.display='none'")
		}
	}
}



function LMenuChange(MenuId,id)
{

	var obj = document.getElementById(MenuId)
	if (id==1)
	{
	obj.style.backgroundImage = "url('images/hov.jpg')"
	}

	if (id==0)
	{
	obj.style.backgroundImage = "url('images/reg.jpg')"
	}

}

function printContent(id1,id2){

      str=document.getElementById(id1).innerHTML + '<br>' + document.getElementById(id2).innerHTML

      newwin=window.open('','printwin','left=100,top=100,width=400,height=400')

      newwin.document.write('<HTML>\n<HEAD>\n')

      newwin.document.write('<TITLE>Print Page</TITLE>\n')

      newwin.document.write('<script>\n')

      newwin.document.write('function chkstate(){\n')

      newwin.document.write('if(document.readyState=="complete"){\n')

      newwin.document.write('window.close()\n')

      newwin.document.write('}\n')

      newwin.document.write('else{\n')

      newwin.document.write('setTimeout("chkstate()",2000)\n')

      newwin.document.write('}\n')

      newwin.document.write('}\n')

      newwin.document.write('function print_win(){\n')

      newwin.document.write('window.print();\n')

      newwin.document.write('chkstate();\n')

      newwin.document.write('}\n')

      newwin.document.write('<\/script>\n')

      newwin.document.write('</HEAD>\n')

      newwin.document.write('<BODY style=font-size:14px; dir=rtl onload="print_win()">\n')

      newwin.document.write(str)

      newwin.document.write('</BODY>\n')

      newwin.document.write('</HTML>\n')

      newwin.document.close()

}


