var myTopUrl = top.location.href;
var myThisPage = VI_docName(document.location.href);
var myTopPage = VI_docName(myTopUrl);
if( myTopPage != "catalog" ) {
	top.location.href = "../nav/catalog.htm?page=" + myThisPage;
}

function detail_window() {
	newWindow = window.open("../details/" + VI_fileName(document.URL), "detail", "height=450,width=600,dependent");
	newWindow.focus();
}

function quote_window(desc, mode) {
	myCat = VI_catOf(VI_docName(document.URL));
	mode = (mode == undefined || mode == null ) ? "quote" : mode;
	myPage = "../specs/quote.htm?cat=" + myCat + "&mode=" + mode + "&name="  + escape(desc);
	newWindow = window.open(myPage, "detail", "height=500,width=700,resizable,scrollbars,dependent");
	newWindow.focus();
}

function call_window(desc) {
	quote_window(desc, "call");
}
