﻿
function openSlide(sDN)
{
	var sScript = "SlideShow.aspx"
	
	window.open(sScript+"?DN="+sDN,"_blank","menubar=0,toolbar=0,location=0,directories=0,status=no,scrollbars=1,resizable=0,width=660px,height=600px,center=1")
	
} 
///<summary>
/// Function to set the class on a tr based on even or odd
///</summary>
///<param name="trId">The id of the tr we are setting the class on</param>
var iCounter = 0;
function trClassSet(trId)
{
    iCounter++;
    document.getElementById(trId).className += iCounter % 2 == 0 ? "even" : "odd";
} //trClassSet


/*

/// <summary>changes the location, used for sorting posts</summary>

*/

function changeLocation(oSelect)

{

            if(oSelect.selectedIndex != 0 && 

                        oSelect.options[oSelect.selectedIndex].value != null && 

                        oSelect.options[oSelect.selectedIndex].value != '')

            {

                        window.location.href = oSelect.options[oSelect.selectedIndex].value;

            }

 

}

 
