function LoadBlank() {
top.frames["basefrm"].location.href='blank.html';
}

function LoadTop(TopType) 
{
// top
var source_str= top.frames["mainmenuframe"].location.href;
var num = source_str.lastIndexOf('/');
var res_str=source_str.substring(0,num+1)+TopType+'.html';
var root_st=source_str.substring(0,num+1);
top.frames["mainmenuframe"].location.href = res_str;
// mid
// alert(root_st);
res_str=root_st+'mid_'+TopType+'.html';
top.frames["leftmenuframe"].location.href=res_str;
}

function ChangeType(SpecType) 
{
// mid
var source_str= top.frames["leftmenuframe"].location.href;
var num = source_str.lastIndexOf('_');
source_str=source_str.substring(0,num+1)+SpecType+'.html';
top.frames["leftmenuframe"].location.href=source_str;
}

function findNames(type) 
{
var source_str= top.frames["leftmenuframe"].frames["listframe"].location.href;
var num = source_str.lastIndexOf('_');
var res_str=source_str.substring(0,num)+'_'+type+'.html';
if (num!=-1) { 
top.frames["leftmenuframe"].frames["listframe"].location.href=res_str; 
} 
};

function NfindNames(number) 
{
var source_str= top.frames["leftmenuframe"].frames["listframe"].location.href;
var num = source_str.lastIndexOf('_');
var temp_str=source_str.substring(num,source_str.length);
source_str=source_str.substring(0,num);
num = source_str.lastIndexOf('_');
var res_str=source_str.substring(0,num);
res_str=res_str+'_'+number+temp_str;
if (num!=-1) { 
top.frames["leftmenuframe"].frames["listframe"].location.href=res_str; 
}  
};


function LoadReserve(ReserveName)
{
var idd='imgz'+ReserveName;
appLongVer=navigator.appVersion;
appVer=appLongVer.substring(0,1);
if (navigator.appName!="Netscape") {
	eval('root=top.frames["mapframe"].document.images["map"].src');
	var num = root.lastIndexOf('/');
	eval('root=root.substring(0,num+1)');
	var i=0;
	while ( i<=117 ) {
		idd_c='imgz'+i;
		eval('temp=top.frames["mapframe"].document.images["'+idd_c+'"]'); 
		if (temp!=null) {  
			eval('top.frames["mapframe"].document.images["'+idd_c+'"].src=root+"rdot.gif"');  } 
		i++; }
	idd='imgz'+ReserveName;
	eval('temp=top.frames["mapframe"].document.images["'+idd+'"]'); 
	if (temp!=null) {  
		eval('source_str=top.frames["mapframe"].document.images["'+idd+'"].src');
		num = source_str.lastIndexOf('.gif');
		eval('top.frames["mapframe"].document.images["'+idd+'"].src=source_str.substring(0,num)+"a.gif"');  }
}

top.frames["contentframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/resinfo?garden='+ReserveName;
// top.frames["contentframe"].location.href='http://192.168.0.203/cgi-bin/gardens/dgardens.dll/resinfo?garden='+ReserveName;
}

function LoadSpec(SpecName) 
{
// top.frames["reslistframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/reslist?spec='+SpecName;

top.frames["contentframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/main?spec='+SpecName;
top.frames["reslistframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/reslist?spec='+SpecName;
top.frames["mapframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/map?spec='+SpecName;


// top.frames["contentframe"].location.href='http://192.168.0.203/cgi-bin/gardens/dgardens.dll/main?spec='+SpecName;
// top.frames["reslistframe"].location.href='http://192.168.0.203/cgi-bin/gardens/dgardens.dll/reslist?reslist='+SpecName;
// top.frames["mapframe"].location.href='http://192.168.0.203/cgi-bin/gardens/dgardens.dll/map?mapspec='+SpecName;


// top.frames["contentframe"].location.href='http://192.168.0.203/cgi-bin/gardens/dgardens.dll/main?spec='+SpecName;
// top.frames["mapframe"].location.href='http://192.168.0.203/cgi-bin/gardens/dgardens.dll/main?mapspec='+SpecName;
// top.frames["reslistframe"].location.href='http://192.168.0.203/cgi-bin/gardens/dgardens.dll/main?reslist='+SpecName;
}

function LoadMainContent(SpecName) 
{
// top.frames["contentframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/main?spec='+SpecName;
// top.frames["contentframe"].location.href='http://192.168.0.203/cgi-bin/gardens/gardensDLL/dgardens.dll/main?spec='+SpecName;
}

function LoadMap(SpecName) 
{
// top.frames["mapframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/map?spec='+SpecName;
// top.frames["mapframe"].location.href='http://192.168.0.203/cgi-bin/gardens/gardensDLL/dgardens.dll/map?spec='+SpecName;
}

function LoadMapGarden(GardenName) 
{
top.frames["mapframe"].location.href='http://192.168.0.203/cgi-bin/gardens/pgardens.exe/map?garden='+GardenName;
}

function QueryLoad(QuerySt) 
{
if (QuerySt.length>0) {
top.frames["leftmenuframe"].location.href=QuerySt+'.html'; }
}


