<!--

// Copyright © GorillaSoft Inc.  < www.gorillasoft.com >
// Description:	JavaScript Resources for Animallaw.info


// Open Window function

function openWindow(theURL,winName,features) 	
{ 	
	shopwindow = window.open(theURL,winName,features);
	shopwindow.focus();	
}

function redirect(selectObj)
{ 
       window.location =  selectObj[selectObj.selectedIndex].value;
}
// -->

//Adding the url for the donate button JCM 10/10/2010

function donateLink() {
    if (document.getElementById("donate-text")) {
        var elementID = document.getElementById("donate-text");
        var buttons = elementID.getElementsByTagName('button');
        
        buttons[0].style.cursor="pointer";
        buttons[0].onclick =  goToDonatePage;
    }
}

function goToDonatePage() {
    window.location = "/policy/podonations.htm";
}

window.onload = donateLink; 

