﻿// +----------------------------------------------------------------------------------------------------------------------+
// Open Browser Window
// +----------------------------------------------------------------------------------------------------------------------+

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// +----------------------------------------------------------------------------------------------------------------------+
// - Open Browser Window
// +----------------------------------------------------------------------------------------------------------------------+



// +----------------------------------------------------------------------------------------------------------------------+
// Display
// +----------------------------------------------------------------------------------------------------------------------+
function DisplayShowHide(id) {
    obj = document.getElementsByTagName("div");
    if (obj[id].style.display == 'block'){
    obj[id].style.display = 'none';
    }
    else {
    obj[id].style.display = 'block';
    }
}
//<a href="#" onclick="DisplayShowHide('LayerName'); return false;">Gizle / Göster</a>


function DisplayShow(id) {
    obj = document.getElementsByTagName("div");
    obj[id].style.display = 'block';
}
//<a href="#" onclick="DisplayShowHide('LayerName'); return false;">Göster</a>

function DisplayHide(id) {
    obj = document.getElementsByTagName("div");
    obj[id].style.display = 'none';
}
//<a href="#" onclick="DisplayShowHide('LayerName'); return false;">Gizle</a>

// +----------------------------------------------------------------------------------------------------------------------+
// - Display
// +----------------------------------------------------------------------------------------------------------------------+



// +----------------------------------------------------------------------------------------------------------------------+
// Checklist
// +----------------------------------------------------------------------------------------------------------------------+

function ValueNull(obj) {
    obj.value = "";
}

         /*-----------------------------------------------------------+
		 | addLoadEvent: Add event handler to body when window loads |
		 +-----------------------------------------------------------*/
		function addLoadEvent(func) {
			var oldonload = window.onload;
			
			if (typeof window.onload != "function") {
				window.onload = func;
			} else {
				window.onload = function () {
					oldonload();
					func();
				}
			}
		}
		
		/*------------------------------------+
		 | Functions to run when window loads |
		 +------------------------------------*/
		addLoadEvent(function () {
			initChecklist();
		});
		
		/*----------------------------------------------------------+
		 | initChecklist: Add :hover functionality on labels for IE |
		 +----------------------------------------------------------*/
		function initChecklist() {
			if (document.all && document.getElementById) {
				// Get all unordered lists
				var lists = document.getElementsByTagName("ul");
				
				for (i = 0; i < lists.length; i++) {
					var theList = lists[i];
					
					// Only work with those having the class "checklist"
					if (theList.className.indexOf("checklist") > -1) {
						var labels = theList.getElementsByTagName("label");
						
						// Assign event handlers to labels within
						for (var j = 0; j < labels.length; j++) {
							var theLabel = labels[j];
							theLabel.onmouseover = function() { this.className += " hover"; };
							theLabel.onmouseout = function() { this.className = this.className.replace(" hover", ""); };
						}
					}
				}
			}
		}
// +----------------------------------------------------------------------------------------------------------------------+
// / Checklist
// +----------------------------------------------------------------------------------------------------------------------+