<!--
function confirmDelete(title, url) {
   if (confirm("Are you sure you want to delete " + title + "?")) {
	window.location.href = url;
   } else {
	  return false;	
   }
}

function popUp(msg, url) {
	var ht = document.getElementsByTagName("html")[0];
	ht.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";

	if (confirm(msg)) {
		window.location = url;
	} else {
		ht.style.filter = "";
		return false;
	}
}

//dynamically change the rpath {DOESN'T WORK..}
function rpath(url) {
	document.forms.frmlg.rpath.value = url;
}

//courtesy of: http://www.dustindiaz.com/top-ten-javascript/
function toggle(obj) {
	var el = document.getElementById(obj);
	if (el.style.display != 'none') {
		el.style.display = 'none';
	} else {
		el.style.display = '';
	}

	//this section here doesn't work.. (can't get the focus..)
	if (obj = 'overlayerWholeDiv') {
		document.frmlg.lgemail.focus();
	}
}

function toggleSwitch(obj1, obj2) {
	var el = document.getElementById(obj1);
	var e2 = document.getElementById(obj2);
	
	if (el.style.display != 'none') {
		el.style.display = 'none';
		e2.style.display = '';
	} else {
		el.style.display = '';
		e2.style.display = 'none';
	}
}

function txtOnFocus(obj, defaultText, clearText) {
	if(clearText==null) clearText = true;
		
	obj.className += " idc-focus";	
	if(obj.value == defaultText) {
		if(clearText) obj.value = "";
		obj.style.color = "black";
	}
}

function txtOnBlur(obj, defaultText, colorChange) {
	if(colorChange == null) colorChange = true;
		
	obj.className = obj.className.replace(/idc-focus/g, "");
	if(obj.value == "") {
		obj.value = defaultText;
		if(colorChange) obj.style.color = "#CCC";
	}	
}
//-->