﻿function hoverEffect(image, toGray)
{
    var p = image.src;
    if(!toGray)        image.src = p.substr(0, p.length - 5) + ".png"; 
    else               image.src = p.substr(0, p.length - 4) + "_.png";
}



function ValidateMessage(sender, args)
{
    if(args.Value.lenght > 10)
        args.IsValid = false;
    else
        args.IsValid = true;
}

var catalogImage;
function selectImage(currentImage, commandArgument)
{
    modalImageDiv.src = "../images/catalog/page_" + commandArgument.toString() + ".png"
}

function accordionHeaderOut(ee)
{
    ee.style.backgroundcolor = 'Yellow'; 
}
function accordionHeaderOver(ee)
{
    ee.style.backgroundcolor = 'YellowGreen'; 
} 

function toBG(obj, color){
  obj.style.backgroundColor = color;
}

function changeCssClass(element, c)
{
    element.className = c;
}