﻿function getRandomNum(Min, Max)
{
    var Range = Max - Min;
    var Rand = Math.random();
    return (Min + Math.round(Rand * Range));
}
function convertImageSize(url, widthAndHeight)
{
    var index = url.lastIndexOf(".");
    return url.substring(0, index) + widthAndHeight + url.substr(index);
}
var CancelBubble = function(e)
{
    e = e || window.event;
    if (document.all)
    {
        e.cancelBubble = true;
    }
    else
    {
        e.stopPropagation();
    }
    return e;
};