<!--
   var strProjectPath = '';
	var varprefix = "";
// script to display text at botton of window.
// timeout is necessary for IE 5
function showStatus(text) {
    window.setTimeout('window.status="' + text + '"', 1);
}

function openWin (theurl, name, width, height, scroll) {
    var extra;

    if (scroll == 'yes')
    {
        extra = 'width='+width+',height='+height+',scrollbars=yes';
    }
    else
    {
        extra = 'width='+width+',height='+height+',scrollbars=no';
    }
    popWin = window.open(theurl,name,extra);
    popWin.focus();
}

//
// updateQty is called in the OrderBasket (_OrderBasketItem.ascx )
// -- it passes in the name of the control
//
function updateQty(controlName) {
    var theform;
    if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
        theform = document.forms["Form1"];
    }
    else {
        theform = document.Form1;
    }

    if (theform)
    {
        var name, url;
        name = controlName.toString();

        var prodParam, qtyParam, prodValue, qtyValue;
        qtyParam = name + ':txtQuantity';
        prodParam = name + ':hdnProductID';

        qtyValue = theform.elements[qtyParam].value ;
        prodValue = theform.elements[prodParam].value ;

        var redir;
        redir = top.location.href;
        url = strProjectPath + 'AddToCart.aspx?URL='+redir+'&Update=1&ProductID='+prodValue+'&Qty='+qtyValue;
        window.location=url;
    }
    else
    {
        alert('no form found - rename it!!');
    }
}

    function getRef(obj)
    {
        if(typeof obj == "string")
         obj= document.getElementById(obj);
        return obj;
    }

    function setStyle(obj, style, value)
    {
        getRef(obj).style[style]= value;
    }

    function getStyle(obj, style)
    {
       if(!document.getElementById) return;

         var obj = getRef(obj);
         var value = obj.style[style];

         if(!value)
             if(document.defaultView)
                 value = document.defaultView.
                        getComputedStyle(obj, "").getPropertyValue(style);

             else if(obj.currentStyle)
                 value = obj.currentStyle[style];

         return value;
    }

	function setClassName(obj, className)
	{
		getRef(obj).className= className;
	}


	function toggle(targetId) {
		target = document.all(targetId);
		if (target && target.style)
		{
			if (target.style.display == "none")
			{
				target.style.display="";
			}
			else
			{
				target.style.display="none";
			}

		}
		else
		{
			//alert("invalid target: " + targetId);
		}

	}

	function showhide(id)
	{
		if (document.getElementById)
		{
			obj = document.getElementById(id);
			if (obj.style.display == "none"){
				obj.style.display = "";
			}
			else {
				obj.style.display = "none";
			}
		}
	}

	function turnOff(targetId) {
		if (document.getElementById)
		{
			obj = document.getElementById(targetId);
			obj.style.display = "none";
		}
	}

	function turnOn(targetId) {
		if (document.getElementById)
		{
			obj = document.getElementById(targetId);
			obj.style.display = "";
		}
	}

//-->