function showHint(id) {
	var el = document.getElementById(id);
	el.style.display='inline' ;
}
function hideHint(id) {
	var el = document.getElementById(id);
	el.style.display='none' ;
}

function deleteRow(id) {
    var el = document.getElementById('delete'+id);
    if (el) el.value = 1 ;
    el = document.getElementById('row'+id);
    if (el) el.style.display = 'none';
}

function clearRow(id) {
    try {
        var el = $(id);
        el.parentNode.removeChild(el);
        return ;
    }
    catch (e) {
        alert('Could not clear that table row' );
    } 

    //if (el.tagName=='TR') {
	//	var index = el.rowIndex;
	//	el.parentNode.deleteRow(index) ;
	//}
}



function openPopup(url,popup_options,window_name) {
	var window_name = (window_name == null) ? "popup" : window_name;
	win = window.open(url,window_name,popup_options);
	if (win) {
		win.focus();
	}
}

