if (document.layers) {
		initWidth = window.innerWidth
		initHeight = window.innerHeight
		window.onResize = reloadWin						
}	
function reloadWin() {
	if (document.layers && (initWidth != window.innerWidth || initHeight != window.innerHeight))
	location.reload(true)
}






function isInstitution(bySession, byID)
{

    //alert ( "Am I from UHS? " + bySession + " " + byID );

    if (bySession == "InstitutionalUser" && byID == "True")
    {
	//alert ( "We've come this far ..." );
	var imagetags = document.getElementsByTagName("img"), l = imagetags.length;
	//alert ( "Image count: " & l );

	for (i = 0; i < l; i++)
	{
	    if ( imagetags[i].className == "ppv_image" || imagetags[i].className == "free_image" )
	    {
	        imagetags[i].style.display = "none";
	    }
	}

	var spantags = document.getElementsByTagName("span"), l2 = spantags.length;

	for (j = 0; j < l2; j++)
	{
	   if ( spantags[j].className == "spacer" )
	    {
	        spantags[j].innerHTML = "";
	    }
	}
    }
}
