function englishLoginChangeColor (imgID, eventParam){
	arrowColor = (eventParam == "over")? "red" : "grey"
	eval("document.images['" + imgID + "'].src = '/icmm/uploads/images/" + "BHI_arrW_"+ arrowColor+ "_medium.gif'");
}
function iskiPg(){
	var rnd="_"+Math.round(Math.random()*100000);
  	window.name="PoalimWindow" + rnd;
  	openerTop  = screen.height/2 - 209;
  	openerLeft = screen.width/2 - 267;

  	window.open("https://www.bankpoalim.co.il/cgi-bin/poalwwwc?&language=HE&reqName=getLogonIski" , rnd , "toolbar=no, menubar=no, resizable=no, scrollbars=no, width=535, height=418, top="+openerTop+" left=" +openerLeft);
}
function change(obj)
{
	if(document.all) Ocolor = (event.type == 'mouseover')?'#CC0000':'#2C74B5';
	else Ocolor = (arguments.callee.caller.arguments[0].type == 'mouseover')?'#CC0000':'#2C74B5';
	document.getElementById(obj).style.color = Ocolor;
}
function openWindow(Url,windowWidth,windowHeight){
	leftPos = ((screen.availWidth+window.screenLeft)/2) - 320;
	exampleUrl = window.open('/poalim/'+Url+'.html',"example","channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,top=150,left="+leftPos+",width="+windowWidth+",height="+windowHeight);
	exampleUrl.focus();
}

function changeCategoryId(url, catId, catTitle){
	document.goCategory.action = url;
	document.goCategory.categoryid.value = catId;
	document.goCategory.categoryTitle.value = catTitle;
	document.goCategory.submit();
}

function changePage(url){
	document.goCategory.action = url;
	document.goCategory.submit();
}
function color_Change(obj,side,e){
	class_name = (side=='right') ?'leftB2':'rightB';
	if(e=="mouseOver"){
		obj.className = class_name+'over';
	}else{
		obj.className = class_name;
	}
}
function changeClassName(class_name){
	var val = event.srcElement;
	val.className = class_name;
}
var is_over_menu = 0;
var oMenu = null;
var menuElem = null;
var oBlind = null;

var divElem	=null;
function fix(){
	browserWidth = (document.body.scrollWidth >= 710) ? document.body.clientWidth : document.body.scrollWidth;
	var sideWidth = (browserWidth - 710) / 2;
	var leftAlign = sideWidth + document.body.scrollRight;
}
function openBlind(){
	if(document.all[divElem].style.pixelHeight >170) return;
	document.all[divElem].style.height = document.all[divElem].style.pixelHeight +5;
}
function showMenu(obj){
	if(divElem != null && divElem !=obj){
		cCloseMenu();
	}
	window.clearInterval(oMenu);
	divElem	= obj;
	document.all[divElem].style.visibility = 'visible';
	oBlind = window.setInterval("openBlind()",5);
	menuElem = event.srcElement;
}

function closeMenu(){
	oMenu = window.setInterval("cCloseMenu()",10);
}
function cCloseMenu(){
	if(!is_over_menu){
		reset();
		menuElem.className = (divElem == 'enter') ? 'UpperBarenter' : 'bold menuOut';
		window.clearInterval(oMenu);
	}
}
function reset(){
		window.clearInterval(oBlind);
		document.all[divElem].style.visibility = 'hidden';
		document.all[divElem].style.height = 1;
		document.all[divElem].style.overflow = 'hidden';
}

function goLocationEquity(doc)
{
	if(doc != "1")
	{
		prefix = '/icmm/uploads/files/';
		window.open(prefix + doc, 'review', 'width=840,height=600,toolbar=0,top=15,left=0,status=0,menubar=0,resizable=1,scrollbars=1');
	} 
}
