
	var Ver4 = parseInt(navigator.appVersion) >= 4
	var Nav4 = ((navigator.appName == "Netscape") && Ver4)
	var IE4 = ((navigator.userAgent.indexOf("MSIE") != -1) && Ver4)

	function pop_win(url, win, ht, wd) {
  		popwin = document.open(url,win,"width="+wd+",height="+ht+",toolbar=no,resizable=yes,scrollbars=yes");
 	}


function pop_win2(url, win, ht, wd, lt, tp) {
  		popwin = document.open(url,win,"width="+wd+",height="+ht+",left="+lt+",top="+tp+",toolbar=no,resizable=yes,scrollbars=no");
 	}




	function confirm_action(url, action) {
		var is_confirmed = confirm("Are you sure you want to " + action + "?");
		if(is_confirmed) {
			window.location.href = url;
		}
	}

	function confirm_submit(form_name, action, id) {
		var is_confirmed = confirm("Are you sure you want to " + action + "?");
		if(is_confirmed) {
			document[form_name].id.value = id;
			document[form_name].submit();
		}
	}

	function submitCatForm(theForm, theSelect)	{
		if(theForm[theSelect].options.selectedIndex != 0 &&
					theForm[theSelect].options.selectedIndex != '')	{
			theForm.submit();
		}	else return false;
	}

	function highlight(row, new_color) {
	    if (typeof(row.style) == 'undefined' || typeof(row.cells) == 'undefined') {
	        return false;
	    }
	    var num_rows = row.cells.length;
	    for (var c = 0; c < num_rows; c++) {
	        row.cells[c].bgColor = new_color;
	    }
	    return true;
	}
	
	function setBookmark(url, str){

	if(str == '') {

		str = url;

	}

	if (document.all) {

		window.external.AddFavorite(url, str);

	}

	else { 

		alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');

	}

}

