function AjaxDisplayTable(table, parid, taxyr) {
	$('#contents').load("record.php", 
		{PARID: parid, TAXYR: taxyr, TABLE: table, included: 1 });
}

var photoWin=0;
function photo(PARID) {
	$('#contents').show();
	$('#loading').hide();
    if(photoWin)
        if(!photoWin.closed) photoWin.close();
    photoWin= window.open("photo.php?PARID=" + PARID ,"Photo","width=655,height=495,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no");
    photoWin.focus();
}
var sketchWin=0;
function sketch(PARID,TAXYR) {
	$('#contents').show();
	$('#loading').hide();
    if(sketchWin) if(!sketchWin.closed) sketchWin.close();
    sketchWin= window.open("sketch.php?PARID=" + PARID + "&TAXYR=" + TAXYR ,"Sketch","width=700,height=480,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes");
    //sketchWin= window.open("sketch.php?PARID=" + PARID + "&TAXYR=" + TAXYR ,"Sketch")
    sketchWin.focus();
}
var mapWin=0;
function map(PARID, URI) {
	$('#contents').show();
	$('#loading').hide();
    if(mapWin)
        if(!mapWin.closed) mapWin.close();
    //URI = ("{$Config_MapUrl}?PARID=" + PARID).toString();
    //mapWin = window.open(URI ,"Map","width=860,height=650,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes");
    mapWin = window.open(URI ,"Map");
    mapWin.focus();
}
function bigmap(SQL, URI) {
	$('#contents').show();
	$('#loading').hide();
    if(mapWin)
        if(!mapWin.closed) mapWin.close();
    //URI = ("{$Config_MapUrl}?SQL=" + SQL).toString();
    mapWin = window.open(URI ,"Map","width=860,height=650,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
    mapWin.focus();
}
