
function popWin(pagename,iWidth, iHeight)

{

window.open(pagename,null,'Width=' + iWidth + ',height=' + iHeight + ',resize=yes,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');

}


function confirmDeletion()
{
var agree=confirm("Are you sure you want to delete this item?");
if (agree)
	return true ;
else
	return false ;
}


function createTooltips() {

	var links = document.links || document.getElementsByTagName('a');

	var n = links.length;

	for (var i = 0; i < n; i++) {

		if (links[i].title && links[i].title != '') {
			// add the title to anchor innerhtml
			links[i].innerHTML += '<span>'+links[i].title+'</span>';
			links[i].title = ''; // remove the title
		}
	}
}

function rollit(imageName, state){

	i = 'images/' + imageName + '_' + state + '.gif';

	document.images[imageName].src= i;
}

