var gsWebRoot = "/";

var oImgCollapse = new Image;
oImgCollapse.src = gsWebRoot + "mod_styling/layout/graphics/icon/collapse.gif";
var oImgExpand = new Image;
oImgExpand.src = gsWebRoot + "mod_styling/layout/graphics/icon/expand.gif";

function expandCollapse(oImg, oEl){
	if(oImg.src == oImgCollapse.src){
		oImg.src = oImgExpand.src;
		oImg.title = "Expand";
		oImg.alt = "Expand branch";
		oEl.style.display = 'none';
	}
	else{
		oImg.src = oImgCollapse.src;
		oImg.title = "Collapse";
		oImg.alt = "Collapse branch";
		oEl.style.display = 'block';
	}
}

function openPopup(sUrl, sName, iHeight, iWidth, sOther){
	var sAttributes = "height=" + iHeight + ",width=" + iWidth;

	if(sOther.length>0){

		sAttributes += "," + sOther;

	}

	window.open(sUrl, sName, sAttributes);
}



function FeedbackCompareCodes()
{
    if(document.getElementById("code").value == document.getElementById("repeatCode").value)
    {
        document.getElementById("feedbackForm").submit();
    }
    else
    {
        alert("The anti-spam code you entered does not match the one provided.");
    }
}