function pagenum(p, filename){
    document.forms["nav"].elements["page"].value = p;
    document.forms["nav"].elements["filename"].value = filename;
    document.forms["nav"].submit();
}

function my_confirm(to, what){
	if (confirm(what))
		document.location=to;
}
				
var foto_windows = new Array();
function open_foto(url, winname, width, height){
	foto_windows[foto_windows.length] = window.open(url,winname,'height='+height+',width='+width+',resizable=0,scrollbars=no,menubar=no,status=no');
	for(i = 0; foto_windows.length > i; i++){
		if(!foto_windows[i].closed)
			foto_windows[i].focus();
	}
}

function pngLoader()
{
	if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
	{
		var t = document.getElementById('tfillet');
		var b = document.getElementById('bfillet');
		t.className = 'top_fillet_fix';
		b.className = 'bottom_fillet_fix';
	}
}

function newWindow(url,w,h){
w = w + 18;
h = h + 27;
Win = window.open(url, "Win", "width=" + w + ",height=" + h + "location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0","top=0,left=0");}


function viewParagraph(ptable, link_id){
	var obj = document.getElementById(ptable);
	var link = document.getElementById(link_id);
	obj.className = obj.className == 'none' ? 'visible' : 'none';
	link.className = link.className == 'cur' ? '' : 'cur';
	}
