function TradeOnline()
{
            var h = window.screen.availHeight-30;    //The window height
            var w = window.screen.width-10;                  //The window width
            var t = 0; //The window's distance from the top of the screen
            var l = 0; //The window's distance from the left of the screen
            var win1=window.open("https://igud.ordernet.co.il/Opener/Opener.asp?c=138&w=" + window.screen.width + "&h=" +                         
                        window.screen.availHeight,"ordernet","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + 
                         ",fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbar=no,resizable=no", "replace=true");
            win1.focus();
}



//////////////////////
function backToTop()
{
    window.scrollTo(0,0);     
}

function trim(str)
{
	try {
		return str.replace(/^\s+|\s+$/g,'');
	}
	catch (e) {
		return str;
	}
}
//////////////////////
function isnull(arg)
{
	arg = arg+'';
	return (arg == '' || arg == 'null' || arg == 'undefined');
}
//////////////////////
function nvl()
{
	for (var i=0; i<arguments.length; i++) {
		if (!isnull(arguments[i])) return arguments[i];
	}
	return null;
}	

function openCloseJob(dtName,ddContents)
           {
            var dtNameObj=document.getElementById(dtName);
            var ancNameObj=document.getElementById(dtName.replace("dtJobNameTitle","ancJobNameTitle"));
            var ddContentsObj=document.getElementById(ddContents);
            
            if(dtNameObj)
            {
                if(dtNameObj.className=="jobs_open")
                {
                   dtNameObj.className="jobs_close";
                   if(ancNameObj) ancNameObj.setAttribute("title",openJobAlt);
                }
                else
                {
                   dtNameObj.className="jobs_open";  
                   if(ancNameObj) ancNameObj.setAttribute("title",closeJobAlt);
                }   
            }
            if(ddContentsObj)
            {
                if(ddContentsObj.className=="jobs_content_open")
                {
                   ddContentsObj.className="jobs_content_close";
                }
                else
                {
                   ddContentsObj.className="jobs_content_open"; 
                }                
            }
           }
           
           function closeOpenAll_old(titleItemId,contentItemId,numOfItems,templateType)
           {
                if(templateType=="jobs")
                {
                    var titleClassNameStr="jobs_open";
                    var contentClassNameStr="jobs_content_open";
                    if (IsOpen==true)
                    {
                        titleClassNameStr="jobs_close";
                        contentClassNameStr="jobs_content_close";
                    }
                }
                else
                {
                    var titleClassNameStr="faq_question_open";
                    var contentClassNameStr="faq_answer_open";
                    if (IsOpen==true)
                    {
                        titleClassNameStr="faq_question_close";
                        contentClassNameStr="faq_answer_close";
                    }
                }
                for(var i=0;i<numOfItems*2;i+=2)
                {
                    var str=i.toString();
                    if(i<10)
                        str="0"+str;
                    str="ctl"+str;  
                    var titleCurrentId=titleItemId.replace('ctl00',str); 
                    var contentCurrentId=contentItemId.replace('ctl00',str); 
                    var titleCurrentItemObj=document.getElementById(titleCurrentId);
                    var contentCurrentItemObj=document.getElementById(contentCurrentId);
                    if(titleCurrentItemObj)
                    {
                       titleCurrentItemObj.className=titleClassNameStr;  
                    }
                    if(contentCurrentItemObj)
                    {
                       contentCurrentItemObj.className=contentClassNameStr;  
                    }
                }
                var obj=document.getElementById(btn);
                if(IsOpen==true)
                {
                    IsOpen=false;
                    obj.innerHTML=openAllStr;
                    obj.setAttribute("title",openAllAlt);
                }
                else
                {
                    IsOpen=true;
                    obj.innerHTML=closeAllStr;
                    obj.setAttribute("title",closeAllAlt);
                }
           }

           function closeOpenAll(titleItemId, contentItemId, numOfItems, templateType)
           {			
                if(templateType=="jobs")
                {
                    var titleClassNameStr="jobs_open";
                    var contentClassNameStr="jobs_content_open";
					
                    
                    if (IsOpen==true)
                    {
                        jol.$$("dt.jobs_open").each(function(obj){obj.className = "jobs_close";});
                        jol.$$("dd.jobs_content_open").each(function(obj){obj.className = "jobs_content_close";});
//                        $each($$("dt.jobs_open"), function(obj){obj.className = "jobs_close";});
//                        $each($$("dd.jobs_content_open"), function(obj){obj.className = "jobs_content_close";});
                    }
                    else
                    {
                        jol.$$("dt.jobs_close").each(function(obj){obj.className = "jobs_open";});
                        jol.$$("dd.jobs_content_close").each(function(obj){obj.className = "jobs_content_open";});
						
//						$each($$("dt.jobs_close"), function(obj){obj.className = "jobs_open";});
//                        $each($$("dd.jobs_content_close"), function(obj){obj.className = "jobs_content_open";});
                    }
                    //alert(jol.$$("dt.jobs_open a").length)
					jol.$$("dt.jobs_open a").each(function(obj){obj.setAttribute("title",closeJobAlt);});
					jol.$$("dt.jobs_close a").each(function(obj){obj.setAttribute("title",openJobAlt);});
                }
                else
                {
					if (IsOpen==true)
					{
						jol.$$("dt.faq_question_open").each(function(obj){obj.className = "faq_question_close";obj.setAttribute("title",openAnswerAlt);});
                        jol.$$("dd.faq_answer_open").each(function(obj){obj.className = "faq_answer_close";});
//                        $each($$("dt.faq_question_open"), function(obj){obj.className = "faq_question_close";});
//                        $each($$("dd.faq_answer_open"), function(obj){obj.className = "faq_answer_close";});
                    }
                    else
                    {
						jol.$$("dt.faq_question_close").each(function(obj){obj.className = "faq_question_open";obj.setAttribute("title",closeAnswerAlt);});
                        jol.$$("dd.faq_answer_close").each(function(obj){obj.className = "faq_answer_open";});
//						$each($$("dt.faq_question_close"), function(obj){obj.className = "faq_question_open";});
//                        $each($$("dd.faq_answer_close"), function(obj){obj.className = "faq_answer_open";});
                    }
                }
                
                var objBtn = document.getElementById(btn);
                var objDiv = document.getElementById(div);
                if(IsOpen==true)
                {
                    IsOpen=false;
                    objBtn.innerHTML=openAllStr;
                    objBtn.setAttribute("title",openAllAlt);
                    objDiv.className="open_all_close";
                }
                else
                {
                    IsOpen=true;
                    objBtn.innerHTML=closeAllStr;
                    objBtn.setAttribute("title",closeAllAlt);
                    objDiv.className="open_all";
                }
           }



function OpenFeedbackPopup(catId)
{
    ShowPopupDiv("overlay_image");
    DrawIframeComponent("divPopupContent",CLVAR.IFRAMES_PATH + "Feedback/Feedback.aspx?FolderID=" + catId);
    
}

function OpenGeneralPopup(catId)
{
    ShowPopupDiv("overlay_image_big");
    DrawAjaxComponent("divPopupContent",CLVAR.XMLHTTP_PATH + "GeneralPopup/GeneralPopup.aspx?FolderID=" + catId,"full");
}

function OpenEmailPopup(catId)
{
    ShowPopupDiv("overlay_image");
    DrawIframeComponent("divPopupContent",CLVAR.IFRAMES_PATH + "EmailToAFriend/EmailToAFriend.aspx?FolderID=" + CLVAR.EMAIL_TO_A_FRIEND + "&page=" + window.location.href);
}

function ShowOverlayDiv()
{
    if (isIE6())
	{
		var divBodyOverLay = document.getElementById("divBodyOverLay");
		divBodyOverLay.style.position = "absolute";
		divBodyOverLay.style.width = "100%";
		divBodyOverLay.style.height = document.body.offsetHeight;
		divBodyOverLay.style.top = 0;
		divBodyOverLay.style.left = 0;
	}
	
	var divBodyOverLay = document.getElementById("divBodyOverLay");
    divBodyOverLay.className="overlay";
}
function CloseOverlayDiv()
{
	document.getElementById("divBodyOverLay").className="d_none";
}


function ShowPopupDiv(class_name){
    //document.getElementById("divPopupContent").innerHTML = "text text text";
    ShowOverlayDiv();
    
    boundedElements = null;
    
    var divPopupContent = document.getElementById("divPopupContent");
	if (divPopupContent)
	{
		divPopupContent.className=class_name;				
		
		divPopupContent.style.position = "fixed";
		divPopupContent.style.top = "50%";
		divPopupContent.style.left = "50%";
		divPopupContent.style.zindex = 99;
		
		var bounds = GetControlBounds(divPopupContent);				
		divPopupContent.style.marginTop = "-" + bounds.height / 2 + "px";
		divPopupContent.style.marginLeft = "-" + bounds.width / 2 + "px";
		
		if (isIE6())
		{
			divPopupContent.style.position = "absolute";
			divPopupContent.style.top = (document.documentElement.scrollTop + (bounds.height/2)) + ((window.screen.availHeight-bounds.height)/4) + "px";
			divPopupContent.style.left = "50%";
		}
	}
}

function isIE()
{
	return window.navigator.userAgent.toUpperCase().indexOf("MSIE") > 0;
}
function isIE6()
{
	return window.navigator.appVersion.toUpperCase().indexOf("MSIE 6") > 0;
}

function GetControlLocation(element) 
{
	var offsetX = 0;
	var offsetY = 0;
	var parent;
	for (parent = element; parent; parent = parent.offsetParent) {
		if (parent.offsetLeft) {
			offsetX += parent.offsetLeft;
		}
		if (parent.offsetTop) {
			offsetY += parent.offsetTop;
		}
	}
	return { x: offsetX, y: offsetY };
}
function GetControlBounds(element) {
	if (boundedElements == null)
	{
		boundedElements = new NameValueCollection();
	}
	if (!boundedElements.IsContainsKey(element))
	{
		var offset = GetControlLocation(element);
		var b = {};
		b.x = offset.x;
		b.y = offset.y;
		b.width = element.offsetWidth;
		b.height = element.offsetHeight;
		boundedElements.Add(element, b);		
	}
	return boundedElements.GetByKey(element).Value;
}
var boundedElements;



function ClosePopupDiv()
{
    CloseOverlayDiv();
	
	document.getElementById("divPopupContent").innerHTML = "";
	document.getElementById("divPopupContent").className="d_none";
	
}


function OpenUpperBar(obj)
{
    obj.className='general_menu_btnH';
    var cont = document.getElementById("uppBarCont");
    if(cont){
        cont.className = 'general_menu_inner';
    }
    
	//$(cont).slideDown(500);
    
}
function CloseUpperBar(obj)
{
    obj.className='general_menu_btn';
    var cont = document.getElementById("uppBarCont");
    if(cont){
        cont.className = 'd_none';
    }
    
    //$(cont).slideUp(500);
    
}


function InputFocus(defString,obj,class_off,class_on)
{
    if(obj.value == defString)
    {
        obj.value = "";
        obj.className = class_on;
    }
}
function InputBlur(defString,obj,class_off,class_on)
{
    if(obj.value == "")
    {
        obj.value = defString;
        obj.className = class_off;
    }
}

function DrawIframeComponent(id,url)
{
    var cont = document.getElementById(id);
    with([]){
        push('<div class="popup_outer">');
        push('<div class="popup_inner">');
        push('<div class="popup_bg">');
        push('<div class="popup_content">');
        push('<div class="icon_close"><a href="javascript:ClosePopupDiv();"><img src="'+CLVAR.IMAGES_PATH+'/General/icon_close.gif" alt="Close" title="Close"/></a></div>');
        push('<iframe id="cIframe" src="' + CLVAR.IFRAMES_PATH + 'Loading/Loading.htm" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" width="480" height="320"></iframe>');
        push('</div>');
        push('</div>');
        push('</div>');
        push('</div>');
        cont.innerHTML = join(" ");
    }
    
    setTimeout(" document.getElementById('cIframe').src = '"+url+"';",1000);
}

function DrawAjaxComponent(id,url,loading)
{
    var ajaxCall = null;
    if ( window.XMLHttpRequest ) 
    {
	   ajaxCall = new XMLHttpRequest();
    }
    else 
    {
	   ajaxCall = new ActiveXObject("MSXML2.XMLHTTP");
    }
    var cont = document.getElementById(id);
    if(cont != null)
    {
        switch(loading){
            case "full" : 
                cont.innerHTML = "<div class='popup_outer'><div class='popup_inner_loading'>&nbsp;</div></div>";
                break;
            case "simple" : 
                cont.innerHTML = "<div class='cal_popup_loading'><img src='"+CLVAR.IMAGES_PATH+"/effects/loading.gif' alt='Loading' title='Loading'/></div>" ;
                break;
        }
    }
    ajaxCall.onreadystatechange = function (){
        if ( ajaxCall.readyState == 4) 
        {
            try{
                var content = ajaxCall.responseText
                
                var contentArr = content.split("~~~")
                content = contentArr[1]
                if(!isnull(content)){
                    cont.innerHTML = content;
                }

            }
            catch(e){
                alert('Err:' + e.description)
            }
        }
    }  
    ajaxCall.open( "GET", url, true );
    ajaxCall.send(null);
}


//////////////////////////////// Location  : Tabs
//TabsLength
//TabsPrefix
//TabsCurrent
function ShowTabContent(ind)
{
    if(ind == TabsCurrent) return;
    
    var tab = document.getElementById(TabsPrefix + "tab" + ind);
    var delim = document.getElementById(TabsPrefix + "delim" + ind);
    var cont = document.getElementById(TabsPrefix + "cont" + ind);
    
    var prev_tab = document.getElementById(TabsPrefix + "tab" + TabsCurrent);
    var prev_cont = document.getElementById(TabsPrefix + "cont" + TabsCurrent);
    
    prev_tab.className = "tab_off";
    tab.className = "tab_on";
    
    prev_cont.className = "d_none";
    cont.className = "tab_content";
    
    // delimiter_reg_on_r
    // delimiter_reg
    // delimiter_reg_on_l
    // tab_last_on
    // tab_last_off
    
    //hide delimeters : 
    for(var i = 0; i < TabsLength; i++)
    {
        var prev_delim = document.getElementById(TabsPrefix + "delim" + i);
        if (i == TabsLength - 1)
        {
            prev_delim.className = "tab_last_off";
        }
        else
        {
            prev_delim.className = "delimiter_reg";
        }
    }
    
    //fire current tab delimeters
    if (ind == 0 && ind == TabsLength - 1)
    {
        delim.className = "tab_last_on";
    }
    else if (ind == TabsLength - 1)
    {
        delim.className = "tab_last_on";
    }
    else
    {
        delim.className = "delimiter_reg_on_r";
    }
    if(ind > 0 )
    {
        document.getElementById(TabsPrefix + "delim" + (ind-1)).className = "delimiter_reg_on_l";
    }
    
    
    TabsCurrent = ind;
}



function GetCookie(CookieName)
{
  var results = document.cookie.match ( '(^|;) ?' + CookieName + '=([^;]*)(;|$)' );

  if ( results ) return ( unescape ( results[2] ) );
  return "";
}
function SetCookie(CookieName,CookieValue)
{
    var today = new Date();
    today.setTime( today.getTime() );
    var expiresDays = 30 * 1000 * 60 * 60 * 24;
    var expires_date = new Date( today.getTime() + (expiresDays) );
    document.cookie = CookieName + "="+CookieValue+";expires=" + expires_date.toGMTString()+";path=/";
}

function SetLastVisitedPage(title)
{
    try{
        var url = document.URL;
        url = url.replace(/\=/g,'~~~');
        url = url.replace(/\;/g,'###');
        var str = GetCookie("lv");
        var resArr = [];
        var samePage = false;
        if(!isnull(str)){
            var arr = str.split("|||");
            if(arr.length > 0){
                for(var i = 0; i < Math.min(arr.length,2); i++){
                    var arr1 = arr[i].split("---");
                    if(title == arr1[0]){// && url == arr1[1]){
                        samePage = true;
                    }
                }
                if(!samePage){
                    resArr.push(title +"---" + url)
                }
                for(var i = 0; i < Math.min(arr.length,2); i++){
                    resArr.push(arr[i]);
                }
            }
            else{
                resArr.push(title +"---" + url)
            }
        }
        else{
            resArr.push(title +"---" + url)
        }
        if(!samePage){
            SetCookie("lv",resArr.join("|||"));
        }
    }
    catch(e){
    }
}

function GetLastVisitedPages(id)
{

    try{
        var res = []
        
        var first = true;
        var cont = document.getElementById(id);
        if(cont != null)
        {
            var str = GetCookie("lv");
            if(!isnull(str)){
                var arr = str.split("|||");
                if(arr.length > 0){
                    for(var i = (Math.min(arr.length,3)-1); i >= 0; i--){
                        if(!first){
                            res.push(" | ");
                        }
                        else{
                            res.push("Last visited: ");
                        }
                        var arr1 = arr[i].split("---");
                        arr1[0] = arr1[0].replace(/~~~/g,"=").replace(/###/g,";")
                        arr1[1] = arr1[1].replace(/~~~/g,"=").replace(/###/g,";")
                        res.push("<a href='"+arr1[1]+"' >"+ arr1[0]+"</a>");
                        
                        first = false;
                    }
                }
            }
            if(res.length > 0) cont.innerHTML = res.join("");
        }
    }
    catch(e){
    }
}

function BackToMainSite()
{
    parent.ClosePopupDiv()
}
function SendFeedback()
{
    var obj = document.getElementById("Master_ContentPlaceHolder1_buttonSubmit");
    obj.click();
}
function SendEmailToAFriend()
{
    var obj = document.getElementById("Master_ContentPlaceHolder1_buttonSubmit");
    obj.click();
}





/////////////////////////////////////////////////////

/////////////////////// script for top navigator //////////////////////
var tNavIs_over_menu = 0;
var tNavoMenu = null;
var tNavMenuElem = null;
var tNavoBlind = null;
var tNavdivElem	=null;
		
function tNavCloseMenu()
{
//alert("tNavCloseMenu");
	tNavoMenu = window.setInterval("tNavclCloseMenu()" , 10);
}
		
function tNavclCloseMenu()
{
	if(!tNavIs_over_menu)
	{
		tNavReset();
		tNavMenuElem.className = 'general_menu_btn';
		window.clearInterval(tNavoMenu);
	}
}


		
function tNavReset()
{
	window.clearInterval(tNavoBlind);
	tNavdivElem.style.visibility = 'hidden';
	tNavdivElem.style.height = 1;
	tNavdivElem.style.overflow = 'hidden';
}
		
		
function tNavShowMenu(currObj, objname)
{

    currObj.className = 'general_menu_btnH';
	var obj = document.getElementById(objname);
	
	//tNavSetYCoordinate(obj)
	
	var doPrint = true;
	if(obj.style.visibility == 'visible')
	{
		doPrint = false;
	}
	
	if(tNavdivElem != null && tNavdivElem !=obj)
	{
		tNavclCloseMenu();
	}
	window.clearInterval(tNavoMenu);
	tNavdivElem	= obj;
	//tNavReset()
	obj.style.visibility = 'visible';
	if(doPrint)
	{
		tNavoBlind = window.setInterval("tNavOpenBlind()", 5);
	}
	tNavMenuElem = currObj;
}


		
function tNavOpenBlind()
{
	if(tNavStopPainting(tNavdivElem))
	{
	    //if(st) alert(tNavdivElem.style.height)
		return true;
	}
	
	tNavdivElem.style.height =  tNavGetObjHeight(tNavdivElem) + 2;
}

//var st = false		
function tNavGetObjHeight(obj)
{
	var divHeight = 0;
	if(obj.offsetHeight)
	{ 
		divHeight = obj.offsetHeight; 
	} 
	else if(obj.style.pixelHeight)
	{ 
		divHeight = obj.style.pixelHeight; 
	} 
	return divHeight;
}
		
function tNavStopPainting(obj)
{

	var divHeight = 0;
	if(obj.offsetHeight)
	{ 
		divHeight = obj.offsetHeight; 
	} 
	else if(obj.style.pixelHeight)
	{ 
		divHeight = obj.style.pixelHeight; 
	} 
	//alert(divHeight)
	if(divHeight > 150)
	{
	    //st = true
	    //alert("stop")
		return true;
	}
	return false;
}

function tNavSetYCoordinate(obj)
{
	var total = 0;
	var parent = obj.offsetParent;
	while(parent!=null)
	{
		total = total + parent.offsetTop;
		parent = parent.offsetParent;
	}
	obj.style.top = total + 35 + 'px';
}
//////////////////////////////////////////////////////


function ColleagueItemOn(obj,image_id,image_ind){
    obj.className = "colleagues_profile_personH";
    var img = document.getElementById(image_id);
    if(img){
        img.src = colleaguesImagesOn[image_ind].src;
    }
}
function ColleagueItemOff(obj,image_id,image_ind){
    obj.className = "colleagues_profile_person";
    var img = document.getElementById(image_id);
    if(img){
        img.src = colleaguesImagesOff[image_ind].src;
    }
}

////////////////////////////////////////////////////////

function ToogleEvent(obj)
{
    var cont = obj.parentNode;
    if(cont.className == "events_wrappervents_item_open")
    {
        cont.className = "events_wrappervents_item_close";
    }
    else
    {
        cont.className = "events_wrappervents_item_open";    
    }
}




/////////////////////////////////////////////////////////////
function SearchEngineChooseOption(id)
{
    var obj = document.getElementById(id);
    if(prevSelectedOptionID != ""){
        document.getElementById(prevSelectedOptionID).className="";
    }
    prevSelectedOptionID = id;
    obj.className = "sel";
    document.getElementById("Master_ContentPlaceHolder1_ucSearchEngine_selectedOption").innerHTML = obj.innerHTML;
    //alert(obj.innerHTML);
    document.getElementById('Master_ContentPlaceHolder1_ucSearchEngine_SelectedOptionValue').value=obj.innerHTML;
    ToogleOptions();
}
var isSelectOpended = false;
function ToogleOptions()
{
    isSelectOpended = !isSelectOpended;
    try{
        HideCalendar();
    }
    catch(e){}
    $('#ddlOptions').slideToggle();//.animate({opacity: "show"}, "slow");
    
}


function OptionOn(obj)
{
    if(obj.className != "sel")
    {
        obj.className = "over";
    }
}
function OptionOff(obj)
{
    if(obj.className != "sel")
    {
        obj.className = "";
    }
}
function SubmitSearch()
{
    var obj = document.getElementById("Master_ContentPlaceHolder1_ucSearchEngine_buttonSearchSubmit");
    obj.click();
}

function EnlargeImage(id)
{
    //ShowOverlayDiv();
    var obj = document.getElementById(id);
    $(obj).animate({opacity: "show"}, "slow");
}
function EnlargeImageClose(id)
{
    var obj = document.getElementById(id);
    $(obj).animate({opacity: "hide"}, "slow");
    //CloseOverlayDiv();
}



/***************************************************************************************
********************************** YAKLAR **********************************************
***************************************************************************************/
function CheckUserName(val, args)
{
    //debugger;
    
    //var regExp = /^[a-zA-Z]+[0-9]+[a-zA-Z0-9]*/;
    var regExpNum = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
    
    var sValue = trim(args.Value);
    
    if(sValue == "")
    {
        args.IsValid = false;
    }
    else if(sValue.length > 100)
    {
        args.IsValid = false;
    }
    else if(!sValue.match(regExpNum))
    {
        args.IsValid = false;
    }
    else
    {
        args.IsValid = true;
    }
}
    
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function CheckUserPassword(val, args)
{
    //debugger;
    
    //var regExp = /^[a-zA-Z]+[0-9]+[a-zA-Z0-9]*/;
    var regExpNum = /^[a-zA-Z0-9]*$/;
    
    var sValue = trim(args.Value);
    
    if(sValue == "")
    {
        args.IsValid = false;
    }
    else if(sValue.length < 6 || sValue.length > 12)
    {
        args.IsValid = false;
    }
    else if(!sValue.match(regExpNum))
    {
        args.IsValid = false;
    }
    else
    {
        args.IsValid = true;
    }
}

//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function openCloseAnswer(que,ans)
{
    var divQueObj=document.getElementById(que);
    var divAnsObj=document.getElementById(ans);
    if(divQueObj)
    {
        if(divQueObj.className=="faq_question_open")
        {
            divQueObj.className="faq_question_close";
            divQueObj.setAttribute("title",openAnswerAlt);
        }
        else
        {
            divQueObj.className="faq_question_open";
            divQueObj.setAttribute("title",closeAnswerAlt);
        }   
    }
    if(divAnsObj)
    {
        if(divAnsObj.className=="faq_answer_open")
        {
            divAnsObj.className="faq_answer_close";
        }
        else
        {
            divAnsObj.className="faq_answer_open";
        }   
    }
}

function changeLiContentStyle(liId,show)
{
    var liContentJS=document.getElementById(liId)
    if(liContentJS)
    {
//            alert(show);
    
        if(show==true)
        {
            liContentJS.className="tab_content";
        }
        else
        {
//        alert("false");
            liContentJS.className="tab_content d_none";
            if(lastDiv)
            {
                lastDiv.setStyle('display', 'none');
                $(lastImgId).src = imageToChange;
            }
        }
    }
}