function SubmitPage(Start)
{
	document.Pages.StartPage.value=Start;
	document.Pages.submit();
}

function msMenuOver(msel){
	var obj=event.srcElement;
	obj.parentElement.style.backgroundColor="";
	//if (curshow!=null) curshow.style.visibility="hidden";
	if (msel==null) return;
	msel.style.visibility="visible";
}

function msMenuOut(msel){
	var obj=event.srcElement;
	obj.parentElement.style.backgroundColor="";
	if (msel==null) return;
	msel.style.visibility="hidden";
	//curshow=msel;
}

function TreeMenuOver(msel){
	//if (curshow!=null) curshow.style.visibility="hidden";
	msel.style.visibility="visible";
}

function TreeMenuOut(msel){
	msel.style.visibility="hidden";
}

var curSelect=1;
function MenuBGChange(intRow){
	var obj=event.srcElement;
	var objTR=obj.parentElement.parentElement;
	objTR.children[curSelect].style.backgroundImage="url(images/gray_47.gif)";
	objTR.children[intRow].style.backgroundImage="url(images/default_44.gif)";
	for(var i=0;i<4;i++){
		DetailTable.rows[i].style.display="none";
	}
	DetailTable.rows[intRow-1].style.display="";
	curSelect=intRow;
	return;
}

DownWindow=null
function OpenDown(DownURL){
	if(! DownWindow|| DownWindow.closed){
		DownWindow=window.open(DownURL,'Help','width=580,height=450,scrollbars=yes,resizable=no,top='+(screen.height-450)/2+',left='+(screen.width-575)/2)
	}else{
		DownWindow.focus()
		DownWindow=window.open(DownURL,'Help','width=580,height=450,scrollbars=yes,resizable=no,top='+(screen.height-450)/2+',left='+(screen.width-575)/2)
	}
}

PriceWindow=null
function OpenPrice(PriceURL){
	if(! PriceWindow|| PriceWindow.closed){
		PriceWindow=window.open(PriceURL,'Price','width=465,height=450,scrollbars=yes,resizable=no,top='+(screen.height-450)/2+',left='+(screen.width-466)/2)
	}else{
		PriceWindow.focus()
		PriceWindow=window.open(PriceURL,'Price','width=465,height=450,scrollbars=yes,resizable=no,top='+(screen.height-450)/2+',left='+(screen.width-466)/2)
	}
}
function OpenMenu(intRow){

	
	if (tbMenu.rows[intRow+2].style.display=="")
	{
		tbMenu.rows[intRow+2].style.display="none";
	}else
	{

		tbMenu.rows[intRow+2].style.display="";
	}
}