﻿// JScript File
function changeColor(tag)
{
   tag.style.bold="inline";
  
   
}
function changeToPreviousColor(tag)
{
    tag.style.bold="none";
   
    
}

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 changeBackground(item,pic)
{
    item.style.background='url(' + pic + ')';
    item.style.color="#FFFFFF";
}

function changeToPreviousBackground(item,pic)
{
    item.style.background='url('+ pic +')';
     item.style.color="#ffe676";
}

function displayRegistrationForm()
{
    document.getElementById("EnterRegistrationForm").style.display="none";
    document.getElementById("regerstrationForm").style.display="inline";
}

function returnToEnterRegistrationForm()
{
    document.getElementById("EnterRegistrationForm").style.display="inline";
    document.getElementById("regerstrationForm").style.display="none";
}

function firstClear(obj)
{
  if(obj.clearThis == undefined)
  {
    obj.value = '';
    obj.clearThis = true;
  }
}