<!--
// Options - Print : Will open a new window containing the page to print
// print button in left side or top options
function framePrint() {
	if (navigator.userAgent.indexOf('Mac') != -1) { 
		var OpSys = "Mac";
	}
	
	if (OpSys == "Mac") 
	{
		if (parent.pageFrame.get_page_version() < 2)
		{
			var wndFeatures;
			var printWnd;
			// Features for the new window
			var pwinl = (screen.width/2 - 400);
			var pwint = (screen.height/2 - 300);
			wndFeatures = "directories=yes, location=no, menubar=yes, resizable=yes, scrollbars=yes, status=no, toolbar=yes, top="+pwint+", left="+pwinl+", width=800, height=600";
			// Open the new window with content URL and defined features;
			printWnd = window.open("printmac_wnd.asp?path="+parent.mainFrame.get_page_path(), "printWnd", wndFeatures);
			printWnd.focus();
		}
		else
		{
			parent.pageFrame.print_page()
		}
	}
	else 
	{
		if (parent.pageFrame.get_page_version() < 2)
		{
			var wndFeatures;
			var printWnd;
			// Features for the new window
			var pwinl = (screen.width/2 - 400);
			var pwint = (screen.height/2 - 300);
			wndFeatures = "directories=no, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no, top="+pwint+", left="+pwinl+", width=800, height=600";
			// Open the new window with content URL and defined features;
			printWnd = window.open("print_wnd.asp?path="+parent.mainFrame.get_page_path(), "printWnd", wndFeatures);
			printWnd.focus();
		}
		else
		{
			parent.pageFrame.print_page()
		}
	}
}
// print button in toolbar
function frameToolsPrint() {
	if (navigator.userAgent.indexOf('Mac') != -1) { 
		var OpSys = "Mac";
	}
	
	if (OpSys == "Mac") 
	{
		if (parent.parent.pageFrame.get_page_version() < 2)
		{
			var wndFeatures;
			var printWnd;
			// Features for the new window
			var pwinl = (screen.width/2 - 400);
			var pwint = (screen.height/2 - 300);
			wndFeatures = "directories=yes, location=no, menubar=yes, resizable=yes, scrollbars=yes, status=no, toolbar=yes, top="+pwint+", left="+pwinl+", width=800, height=600";
			// Open the new window with content URL and defined features;
			printWnd = window.open("printmac_wnd.asp?path="+parent.parent.mainFrame.get_page_path(), "printWnd", wndFeatures);
			printWnd.focus();
		}
		else
		{
			parent.parent.pageFrame.print_page()
		}
	}
	else 
	{
		if (parent.parent.pageFrame.get_page_version() < 2)
		{
			var wndFeatures;
			var printWnd;
			// Features for the new window
			var pwinl = (screen.width/2 - 400);
			var pwint = (screen.height/2 - 300);
			wndFeatures = "directories=no, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no, top="+pwint+", left="+pwinl+", width=800, height=600";
			// Open the new window with content URL and defined features;
			printWnd = window.open("print_wnd.asp?path="+parent.parent.mainFrame.get_page_path(), "printWnd", wndFeatures);
			printWnd.focus();
		}
		else
		{
			parent.parent.pageFrame.print_page()
		}
	}
}


// Options - Bookmark
function setBookmark(url,str) {
	if (navigator.userAgent.indexOf('Mac') != -1) { 
		var OpSys = "Mac";
	}
	if (OpSys == "Mac") {
		if (document.all)window.external.AddFavorite(top.location, "" + j_strvarTitle + "");
		else alert("" + j_strlng_left_3 + " " + j_strvarTitle + "");
	} 
	else {
		if (document.all)window.external.AddFavorite(top.location, "" + j_strvarTitle + "");
		else alert("" + j_strlng_left_2 + " " + j_strvarTitle + "");
	}
}


// Options - Email
function openWindowEmail() {
	var bid = "<%=intBookID%>";
	var ewinl = (screen.width/2 - 185);
	var ewint = (screen.height/2 - 206);
	popupWin = window.open("emailafriend.asp?bookID="+bid,"new_page","width=370,height=423,left=" + ewinl + ",top=" + ewint + ",scrollbars=no,toolbars=no,menubar=no,resizable=no");
}


// Options - Feedback
function openWindowFeedback() {
	var fwinl = (screen.width/2 - 225);
	var fwint = (screen.height/2 - 250);
	popupWin = window.open("feedback.asp","new_page","width=450,height=500,left=" + fwinl + ",top=" + fwint + ",scrollbars=yes,toolbars=no,menubar=no,resizable=no");
}


// Options - Customer Feedback
function openWindowFeedbackCustomer(thewidth,theheight) {
	var cwidth = thewidth;
	var cheight = theheight;
	var halfwidth = cwidth/2;
	var halfheight = cheight/2;
	var cwinl = (screen.width/2 - halfwidth);
	var cwint = (screen.height/2 - halfheight);
	popupWin = window.open("feedbackCustomer.asp","new_page","width=" + cwidth + ",height=" + cheight + ",left=" + cwinl + ",top=" + cwint + ",scrollbars=yes,toolbars=no,menubar=no,resizable=no");
}



// powered by Dirxion
function openWindowAbout() {
	var awinl = (screen.width/2 - 150);
	var awint = (screen.height/2 - 150);
	popupWin = window.open('about.asp','new_page','width=300,height=300,left=' + awinl + ',top=' + awint + ',toolbar=no,menubar=no,location=no,directories=no,status=no,resizable=no,scrollbars=yes');
}
-->