function PMA_markRowsInit() {
    // for every table row ...
    var rows = document.getElementsByTagName('tr');
    for ( var i = 0; i < rows.length; i++ ) {
        if ( navigator.appName == 'Microsoft Internet Explorer' ) {
            // but only for IE, other browsers are handled by :hover in css
            rows[i].onmouseover = function() {
				this.className += ' hover';
            }
            rows[i].onmouseout = function() {
                this.className = this.className.replace( ' hover', '' );
            }
        }
    }
}

function markAllRows() {
	if(document.getElementById('selectallcheckboxes').checked == true)
	{
	var checkbox;
	var rows = document.getElementsByTagName('tr');
	for ( var i = 0; i < rows.length; i++ )
		{
		checkbox = rows[i].getElementsByTagName( 'input' )[0];
		if (checkbox)
		{
		checkbox.checked = true;
		}
		rows[i].className += ' eisen';
		}
	}
	if(document.getElementById('selectallcheckboxes').checked == false)
	{
	var checkbox;
	var rows = document.getElementsByTagName('tr');
	for ( var i = 0; i < rows.length; i++ )
		{
		checkbox = rows[i].getElementsByTagName( 'input' )[0];
		if (checkbox)
		{
		checkbox.checked = false;
		}
		rows[i].className = '';
		}

	}
	return true;
}

function markRow(selectobj)
	{
	if(document.getElementById(selectobj).className.match(/(eisen)/i))
		{
		document.getElementById(selectobj).className = '';
		}
	else
		{
		document.getElementById(selectobj).className += ' eisen';
		}
	}



















function piu(id, mark)
	{
	  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
	Height = (myHeight - 300)/2;
	Width = (myWidth - 667)/2;
	if (mark == 2)
		{
		newwindow=window.open("showseq.pl?skipped=" + id,'name','width=667,height=400,toolbar=0,scrollbars=1,top=' + Height + ',left=' + Width);
		}
	else
	{
		newwindow=window.open("showseq.pl?id=" + id + "&mark=" + mark,'name','width=667,height=400,toolbar=0,scrollbars=1,top=' + Height + ',left=' + Width);
	}
	if (window.focus)
		{
		newwindow.focus();
		}
	return false;
	}
function kko(ko)
	{
	window.open("http://www.genome.jp/dbget-bin/www_bget?ko+" + ko);
	}
function ken(en)
	{
	window.open("http://www.genome.jp/dbget-bin/www_bget?enzyme+" + en);
	}
	

function emailcheck() {
if (!document.submissionform.email.value) {alert('You haven\'t inserted e-mail address !'); document.submissionform.email.focus(); return false;}
if ((document.submissionform.email.value.indexOf("@")<1)||(document.submissionform.email.value.lastIndexOf(".")-document.submissionform.email.value.indexOf("@")<2)) {alert('E-mail You have entered seems to be invalid !'); document.submissionform.email.focus(); return false;}
return true;
}

function confirmDelete(q) {return confirm(q)}