// JavaScript Document

function showElement(sId) {
	getElement(sId).style.visibility = "inherit";
}
function hideElement(sId) {
	getElement(sId).style.visibility = "hidden";
}
function getElement(sId) {
	return (document.getElementById(sId));
}

function confirmDelete(){
	if (confirm("Are you sure you want to delete this record?")==true)
		return true;
	else
		return false;
}

function clearGoTo(url) {
	document.forms['myForm'].elements['Linkcontrol1:goToLink'].value = "";
}

function goTo(url) {
	document.forms['myForm'].elements['Linkcontrol1:goToLink'].value = url;
	//alert(url);
	__doPostBack('GoToJava',1);
}
function sendTo(nextlink) {
	if (document.images) {
		var invisible_img = new Image();
		var iPos = location.href.lastIndexOf("/");
		var tar = location.href.substring(0, iPos);
		var isrc = tar + '/linkrequest.aspx?'
		+ 'from=' + location.href
		+ '&to=' + nextlink
		//alert(isrc);
		invisible_img.src = isrc;
	}
	return true;
} 

function switchClass(e, c) {
	e.className = c;
}
