// JavaScript Document
function cn3dshowlay(ID)
{
 window[ID].style.visibility="visible";
 window[ID].style.height=20
}
function mouseclick(pepID,ID)
{
  window.open("PepDetail.asp?ID="+pepID);
  window["rec"+ID].bgColor="aaaaaa";
}
function mouseon(ID)
{
  if (window["rec"+ID].bgColor != "aaaaaa") {
  window["rec"+ID].bgColor="FEFEFE";}
}
function mouseout(ID)
{
  if (window["rec"+ID].bgColor != "aaaaaa") {
    window["rec"+ID].bgColor="eaeaea";}
}
function imagediv(ID)
{
  window[ID].style.visibility = "visible";
}
function selectlinkout(ID)
{
  window.open(window[ID].options[window[ID].selectedIndex].value)
}
function showdiv()
{    
  Searchtable1.style.visibility="visible";
  show2.style.visibility = "hidden";
  show1.style.visibility = "visible";
}
function hidiv()
{
  Searchtable1.style.visibility="hidden" ;
  show2.style.visibility = "visible";
  show1.style.visibility = "hidden";
}
function nsearch()
{
  form1.lastsearch.value="";
  form1.lastrule.value="";
  form1.lastfield.value="";
  form2.lastsearch.value="";
  form2.lastrule.value="";
  form2.lastfield.value="";
}
function nsearch1()
{
form1.lastsearch.value = "";
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function seq(frontpos,backpos)
{
var sRow=table1.rows[0];
var sCell=sRow.cells[0];
var strtemp="";
var m=Math.floor(frontpos/100);
var n=Math.floor(backpos/100);
var j=Math.floor((frontpos-m*100-1)/10);
var k=Math.floor((backpos-n*100-1)/10);
var i=-1;
var data=sCell.innerHTML;
data=data.toUpperCase(data);
i=data.indexOf("<FONT COLOR=");
if (i!=-1)
{
data=data.substring(0,i)+data.substring(i+20,data.length);
}
i=data.indexOf('</FONT>');
if (i!=-1)
{
data=data.substring(0,i)+data.substring(i+7,data.length);
}
data=data.substring(5,data.length);
strtemp=data.substring(0,m*133+12+frontpos-m*100+j)+'<FONT COLOR="#FF0000">'+data.substring(m*133+12+frontpos-m*100+j,n*133+12+backpos-n*100+k+1)+'</FONT>'+data.substring(n*133+12+backpos-n*100+k+1,data.length);
strtemp="<pre>"+strtemp;
sCell.innerHTML=strtemp;
}