﻿function changeImages(img, to) { if (img) img.src = to; }
function  ShowError() { $('#errorText').show(); }
function  HideError() { $('#errorText').hide(); }
function preloadImages(arImages)
{
    if (document.images) {
        for (var i = 0; i < arImages.length; i++) {
            var img = new Image();
	        img.src = arImages[i];
        }
    }
}
function  CheckAnswers()
{        
    var result = false;    
    if ($("input[@checked]:radio").length > 0) 
    {
        result = true;
    }    
    if (!result) $('#errorText').show();
    else $('#errorText').hide();        
    return result;
}