﻿


	//QUICKLINKS CONTROL USES THIS
    function DisplayProduct(GrowerID, FlowerNameID) {
        var url = "/order-discount-flowers-online.aspx?GrowerID=" + GrowerID + "&" + "FlowerID=" + FlowerNameID + "&" + "QuickLinks=1";
        PostForm(url);
    }
	
	
	
	    var xmlHttp; function getXmlHttpObject() {
        var xmlHttp = null; try {// Firefox, Opera 8.0+, Safari
            xmlHttp = new XMLHttpRequest();

        } catch (e) {// Internet Explorer
            try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }
        } return xmlHttp;
    }

    window.onload = function() {
        timedCount();
    }
    function timedCount() {
        RandomImage();
        //MILLISECONDS FOR A NEW IMAGE
        setTimeout("timedCount()", 5000);
    }

    function RandomImage() {
        try {
            xmlHttp = getXmlHttpObject();
            xmlHttp.onreadystatechange = showImage;
            var url = "AjaxRandomImage.aspx?rand=" + Math.floor(Math.random() * 1001)
            xmlHttp.open("GET", url, true);
            xmlHttp.send(null);
        } catch (err) { }
    }

    function showImage() {
        try {
            if (xmlHttp.readyState == 4) {
                var result = xmlHttp.responseText;
                if (result.length > 0) {
                    document.getElementById('divRandomImage').innerHTML = result;
                } else { RandomImage(); }
            }
        }
        catch (err) { }
    }
