﻿// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
function setStyleSheet(title) {
	var i, a, main;
	for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
 		if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
   			a.disabled = true;
   			if ( a.getAttribute("title") == title) a.disabled = false;
 		}
	}
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
function ConfirmAction(act) {
var msg = "Are you sure you want to " + act + " this item?\n\nThis action can not be undone!\n\n"
if ( !confirm(msg) ) { 
	event.returnValue = false; 
	} 
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
function showHTML() {
    document.getElementById("ctl00_ContentBody_myText").value = document.getElementById("aspnetForm").innerHTML;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
function fullPhoto(obj) {
    var url = obj.src;
    url = url.replace("Thumbnail.aspx?src=", "");
    url = url.replace("&width=430", "");
    var winRef = window.open(url, "Photo", ""); 
    winRef.focus();   
}

function showPhoto(obj) {
    document.getElementById("ctl00_ContentBody_imgPhoto").src = obj.src.replace("=100", "=430");
    document.getElementById("ctl00_ContentBody_imgPhoto").alt = obj.alt;    
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
