function printPage()
{
   var options = "menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=460;"
   url = top.location.href;
   if (url.indexOf("#")>0) url = url.substring(0, url.indexOf("#"));
   if (url.indexOf("?")>0) url = url + "&print=yes";
   else url = url + "?print=yes";
   printWindow=window.open(url,"_blank",options);
}

function printPageEn()
{
   var options = "menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=460;"
   url = top.location.href;
   if (url.indexOf("#")>0) url = url.substring(0, url.indexOf("#"));
   if (url.indexOf("?")>0) url = url + "&print=yes&eng=yes";
   else url = url + "?print=yes&eng=yes";
   printWindow=window.open(url,"_blank",options);
}

function popup(url, width, height)
{
      var options = "toolbar=no,scrollbars=auto,resizable=yes,width="+width+",height="+height+";"
      popupWindow=window.open(url,"_blank",options);
}

function wjPopup(url, width, height)
{
      var options = "toolbar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+";"
      popupWindow=window.open(url,"_blank",options);
}

function quicknav(web)
{
var newUrl = "/showdoc.do?docid=" + web.value;
location.replace(newUrl);
}

var oldDivId;
oldDivId = "";
var tag = "";

function openClose(tg,divId)
{
	if(document.getElementById)
	{
		if (oldDivId == "") {
			document.getElementById(divId).style.display="block";
		    	oldDivId = divId;
			tag = tg;
		} else {
		  	if (oldDivId == divId) {
				document.getElementById(oldDivId).style.display="none";
				oldDivId = "";
			} else {
				document.getElementById(oldDivId).style.display="none";
				document.getElementById(divId).style.display="block";
			    	oldDivId = divId;
				tag = tg;
			}
		}
	}
	else if(document.all)
	{
		if (oldDivId == "") {
			document.all[divId].style.display="block";
			tag = tg;
		    	oldDivId = divId;
		} else {
		  	if (oldDivId == divId) {
				document.all[oldDivId].style.display="none";
				oldDivId = "";
			} else {
				document.all[oldDivId].style.display="none";
				document.all[divId].style.display="block";
			    	oldDivId = divId;
				tag = tg;
			}
		}
	}
	else
	{

	}
}

function openClose2(divId)
{
   if(document.getElementById)
   {
      if (oldDivId!="") document.getElementById(oldDivId).style.display="none";
      document.getElementById(divId).style.display="block";
      oldDivId = divId;
   }
   else if(document.all)
   {
      if (oldDivId!="") document.all[oldDivId].style.display="none";
      document.all[divId].style.display="block";
      oldDivId = divId;
   }
   else
   {

   }
}
