﻿// JScript File
function changeColor(tag)
{
   tag.style.bold="inline";
  
   
}
function changeToPreviousColor(tag)
{
    tag.style.bold="none";
   
    
}

//function changeColorMenu(tag,colorText)
//{
//   tag.style.color=colorText;
//  
//   
//}
//function changeToPreviousColorMenu(tag,colorText)
//{
//    tag.style.color=colorText;
//   
//    
//}

function changeColorMenu(tag)
{
   tag.style.color="Red";
  
   
}
function changeToPreviousColorMenu(tag)
{
    tag.style.color="#FFFFFF";
   
    
}

function changeImg(img)
{
  
   document.getElementById(img).src = "images/news_over.gif";
   
   
   
}
function changeToPreviousImg(img)
{
    
    document.getElementById(img).src = "images/news.gif";
    
}

function changeImgeEnglish(img)
{
  
   document.getElementById(img).src = "images/news_e_over.gif";
   
   
   
}
function changeToPreviousImgEnglish(img)
{
    
    document.getElementById(img).src = "images/news_e.gif";
    
}

function showGallery(imgPath,itemID,catID)
{
    var org = document.URL;
	var what = /&/g;
	var newStr = org.replace(what,'@@@');
	var source = 'bigGallery.asp?path='+ imgPath + '&id='+ itemID+'&cat='+ catID +'&urlPath=' + newStr;
	win = window.open(source, "galleryBig", "top=0, left=0, status=no, resizable, scrollbars=yes")
}

function firstClear(obj)
{
  if(obj.clearThis == undefined)
  {
    obj.value = '';
    obj.clearThis = true;
  }
}

function getSearch(flag)
{
    
    var strSearch = document.getElementById("txtSearch").value;
    
    if (strSearch == "")
        alert("יש להקליד ערך לחיפוש");
    else if(flag==2)
        location.href="PR_Search.aspx?str=" + strSearch ;
    else
    location.href="alternativi_Search.aspx?id=100&str=" + strSearch ;
    
     
}

