/*
function openApplets(hix, db)
{
    //window.open("ASAppletDemo.jsp?hix="+hix, hix,"width=1050,height=800,scrollbars=yes,resizable=yes");
    window.open("ASAppletDemo.jsp?db=" +db + "&hix="+hix,  "asviewer", "width=1050,height=800,scrollbars=yes,resizable=yes");
}
*/

var targetMsHix;
function mshixRdo_Change(obj)
{
    targetMsHix = obj.value;
}

function openApplets(hix, hixms, db)
{
    if(targetMsHix)
	window.open("ASAppletDemo.jsp?db=" +db + "&hixms="+targetMsHix + "&hix="+hix,  "asviewer", "width=1050,height=750,scrollbars=yes,resizable=yes");
    else if (hixms)
        window.open("ASAppletDemo.jsp?db=" +db + "&hixms="+hixms + "&hix="+hix,  "asviewer", "width=1050,height=750,scrollbars=yes,resizable=yes");
    else
        window.open("ASAppletDemo.jsp?db=" +db + "&hixms="+'' + "&hix="+hix,  "asviewer", "width=1050,height=750,scrollbars=yes,resizable=yes");

    targetMsHix='';	
}

/*
function openApplets(hix, hixms, db)
{
    window.open("ASAppletDemo.jsp?db=" +db + "&hixms="+hixms + "&hix="+hix,  "asviewer", "width=1050,height=800,scrollbars=yes,resizable=yes");
}
*/

// For asLocus.jsp
function changeme(item)
{
    var bl=item.checked;
    var o=document.getElementById("conditionTable");
    if (bl) {
	    o.style.display="block";
	    o.style.visibility="visible";
    }else{
	    o.style.display="none";
	    o.style.visibility="hidden";
    }		
}

// For simple_search.jsp ----------------------------------
function clearKeyword()
{
    document.form0.dbtype[0].checked=true;
    document.form0.keyword_type.value="Keyword";
    document.form0.keyword.value="";
}

function clearAdvancedSearchItems()
{
    document.form1.dbtype.value=0;
    document.form1.chgc.checked =false;
    document.form1.kdri.checked =false;    
    //document.form1.hri.checked =false;
    //document.form1.imsut.checked =false;
    document.form1.nedo.checked =false;  //add 081215
    document.form1.dkfz.checked =false;
    document.form1.nih.checked =false;
    document.form1.riken.checked =false;

    document.form1.chgc.disabled =false;
    document.form1.kdri.disabled =false;    
    //document.form1.hri.disabled =false;
    //document.form1.imsut.disabled =false;
    document.form1.nedo.disabled =false;  //add 081215
    document.form1.dkfz.disabled =false;
    document.form1.nih.disabled =false;
    document.form1.riken.disabled =true;

    document.form1.keyword_type.value="Keyword";
    document.form1.keyword.value="";

    document.form1.chrom.value="All";
    document.form1.strand[2].checked=true;
    document.form1.pos_from.value="";
    document.form1.pos_to.value="";
    document.form1.sp_site_seq.value="All";
    document.form1.ese.checked =false;
    document.form1.ltr.checked =false;
    document.form1.line.checked =false;
    document.form1.sine.checked =false;
    document.form1.alu.checked =false;

    document.form1.varUniqFrom.value="";
    document.form1.varUniqTo.value="";
    document.form1.as_5t.checked =false;
    document.form1.as_in.checked =false;
    document.form1.as_3t.checked =false;
    document.form1.as_cs.checked =false;
    document.form1.as_ia.checked =false;
    document.form1.as_id.checked =false;
    document.form1.as_me.checked =false;
    document.form1.as_ri.checked =false;

    // add 081117
    document.form1.as_cs_ap.checked =false;
    document.form1.as_ia_ap.checked =false;
    document.form1.as_cs_at.checked =false;
    document.form1.as_id_at.checked =false;

    document.form1.orflenFrom.value="";
    document.form1.orflenTo.value="";
    document.form1.motifPrg.value="InterPro ID";
    document.form1.motifText.value="";
    document.form1.goPrg.value="GO ID";
    document.form1.goText.value="";
    document.form1.chk_molfnc.checked =false;
    document.form1.chk_biopro.checked =false;
    document.form1.chk_cellcom.checked =false;
    document.form1.chk_wolf.checked =false;
    document.form1.wolf.value="All";
    document.form1.wolf.disabled =true;
    document.form1.chk_targetp.checked =false;
    document.form1.targetp.value="All";
    document.form1.targetp.disabled =true;
    document.form1.chk_tmhmm.checked =false;
    document.form1.chk_sosui.checked =false;

    document.form1.ldorfFrom.value="";
    document.form1.ldorfTo.value="";
    document.form1.as_5utr.checked =false;
    document.form1.as_cds.checked =false;
    document.form1.as_3utr.checked =false;
    document.form1.motif.checked =false;
    document.form1.go.checked =false;
    document.form1.sl.checked =false;
    document.form1.td.checked =false;
    document.form1.as_bridged.checked =false;
    document.form1.as_nested.checked =false;
    document.form1.as_multi.checked =false;

    document.form1.e_non.checked =false;
    document.form1.e_genome.checked =false;
    document.form1.e_transcript.checked =false;    
    document.form1.c_non.checked =false;
    document.form1.c_as.checked =false;

    enableByDbType();
}

// For adv_search.jsp ----------------------------------
function enableByDbType()
{
    var dbtype = parseFloat(document.form1.dbtype.value);
    var st =true;
    if (dbtype==0 || dbtype==2) st =false;  
    document.form1.nih.disabled =st;

    st =true;
    if (dbtype==0) st =false;  
    document.form1.chgc.disabled =st;
    document.form1.kdri.disabled =st;   
    //document.form1.hri.disabled =st;
    //document.form1.imsut.disabled =st;
    document.form1.nedo.disabled =st; //add 081215
    document.form1.dkfz.disabled =st;

    document.form1.ltr.disabled =st;
    document.form1.line.disabled =st;
    document.form1.sine.disabled =st;
    document.form1.alu.disabled =st;
    
    document.form1.ese.disabled =st;

    document.form1.e_non.disabled =st; 
    document.form1.e_genome.disabled =st;
    document.form1.e_transcript.disabled =st;    
    document.form1.c_non.disabled =st;
    document.form1.c_as.disabled =st;  

    st =true;
    if(dbtype==2) st =false;
    document.form1.riken.disabled =st;

    st =true;
    if(dbtype==0 || dbtype==1) st =false;
    document.form1.motifPrg.disabled =st;
    document.form1.motifText.disabled =st;
    document.form1.goPrg.disabled =st;
    document.form1.goText.disabled =st;
    document.form1.chk_molfnc.disabled =st;
    document.form1.chk_biopro.disabled =st;
    document.form1.chk_cellcom.disabled =st;
    document.form1.chk_wolf.disabled =st;
    document.form1.wolf.disabled =st;
    document.form1.chk_targetp.disabled =st;
    document.form1.targetp.disabled =st;
    document.form1.chk_tmhmm.disabled =st;
    document.form1.chk_sosui.disabled =st;

    document.form1.ldorfFrom.disabled =st;
    document.form1.ldorfTo.disabled =st;
    document.form1.as_5utr.disabled =st;
    document.form1.as_cds.disabled =st;
    document.form1.as_3utr.disabled =st;
    document.form1.motif.disabled =st;
    document.form1.go.disabled =st;
    document.form1.sl.disabled =st;
    document.form1.td.disabled =st;
    document.form1.as_bridged.disabled =st;
    document.form1.as_nested.disabled =st;
    document.form1.as_multi.disabled =st;

    if(dbtype==0 || dbtype==1)
    {
	document.form1.chrom.options.length =54;

	document.form1.chrom.options[0].text ="All";
	document.form1.chrom.options[1].text ="1";
	document.form1.chrom.options[2].text ="2";
	document.form1.chrom.options[3].text ="3";
	document.form1.chrom.options[4].text ="4";
	document.form1.chrom.options[5].text ="5";
	document.form1.chrom.options[6].text ="6";
	document.form1.chrom.options[7].text ="7";
	document.form1.chrom.options[8].text ="8";
	document.form1.chrom.options[9].text ="9";
	document.form1.chrom.options[10].text ="10";
	document.form1.chrom.options[11].text ="11";
	document.form1.chrom.options[12].text ="12";
	document.form1.chrom.options[13].text ="13";
	document.form1.chrom.options[14].text ="14";
	document.form1.chrom.options[15].text ="15";
	document.form1.chrom.options[16].text ="16";
	document.form1.chrom.options[17].text ="17";
	document.form1.chrom.options[18].text ="18";
	document.form1.chrom.options[19].text ="19";
	document.form1.chrom.options[20].text ="20";
	document.form1.chrom.options[21].text ="21";
	document.form1.chrom.options[22].text ="22";
	document.form1.chrom.options[23].text ="X";
	document.form1.chrom.options[24].text ="Y";
	document.form1.chrom.options[25].text ="Unassembled contig 1";
	document.form1.chrom.options[26].text ="Unassembled contig 2";
	document.form1.chrom.options[27].text ="Unassembled contig 3";
	document.form1.chrom.options[28].text ="Unassembled contig 4";
	document.form1.chrom.options[29].text ="H2 haplotype 5";
	document.form1.chrom.options[30].text ="Unassembled contig 5";
	document.form1.chrom.options[31].text ="COX haplotype 6";
	document.form1.chrom.options[32].text ="HLA haplotype 6";
	document.form1.chrom.options[33].text ="QBL haplotype 6";
	document.form1.chrom.options[34].text ="Unassembled contig 6";
	document.form1.chrom.options[35].text ="Unassembled contig 7";
	document.form1.chrom.options[36].text ="Unassembled contig 8";
	document.form1.chrom.options[37].text ="Unassembled contig 9";
	document.form1.chrom.options[38].text ="Unassembled contig 10";
	document.form1.chrom.options[39].text ="Unassembled contig 11";
	document.form1.chrom.options[40].text ="Unassembled contig 12";
	document.form1.chrom.options[41].text ="Unassembled contig 13";
	document.form1.chrom.options[42].text ="Unassembled contig 14";
	document.form1.chrom.options[43].text ="Unassembled contig 15";
	document.form1.chrom.options[44].text ="Unassembled contig 16";
	document.form1.chrom.options[45].text ="Unassembled contig 17";
	document.form1.chrom.options[46].text ="Unassembled contig 18";
	document.form1.chrom.options[47].text ="Unassembled contig 19";
	document.form1.chrom.options[48].text ="Unassembled contig 20";
	document.form1.chrom.options[49].text ="Unassembled contig 21";
	document.form1.chrom.options[50].text ="H2 haplotype 22";
	document.form1.chrom.options[51].text ="Unassembled contig 22";
	document.form1.chrom.options[52].text ="Unassembled contig X";
	document.form1.chrom.options[53].text ="Unassembled contig Y";

	document.form1.chrom.options[0].value ="All";
	document.form1.chrom.options[1].value ="1";
	document.form1.chrom.options[2].value ="2";
	document.form1.chrom.options[3].value ="3";
	document.form1.chrom.options[4].value ="4";
	document.form1.chrom.options[5].value ="5";
	document.form1.chrom.options[6].value ="6";
	document.form1.chrom.options[7].value ="7";
	document.form1.chrom.options[8].value ="8";
	document.form1.chrom.options[9].value ="9";
	document.form1.chrom.options[10].value ="10";
	document.form1.chrom.options[11].value ="11";
	document.form1.chrom.options[12].value ="12";
	document.form1.chrom.options[13].value ="13";
	document.form1.chrom.options[14].value ="14";
	document.form1.chrom.options[15].value ="15";
	document.form1.chrom.options[16].value ="16";
	document.form1.chrom.options[17].value ="17";
	document.form1.chrom.options[18].value ="18";
	document.form1.chrom.options[19].value ="19";
	document.form1.chrom.options[20].value ="20";
	document.form1.chrom.options[21].value ="21";
	document.form1.chrom.options[22].value ="22";
	document.form1.chrom.options[23].value ="X";
	document.form1.chrom.options[24].value ="Y";
	document.form1.chrom.options[25].value ="1_random";
	document.form1.chrom.options[26].value ="2_random";
	document.form1.chrom.options[27].value ="3_random";
	document.form1.chrom.options[28].value ="4_random";
	document.form1.chrom.options[29].value ="5_h2_hap1";
	document.form1.chrom.options[30].value ="5_random";
	document.form1.chrom.options[31].value ="6_cox_hap1";
	document.form1.chrom.options[32].value ="6_hla_hap2";
	document.form1.chrom.options[33].value ="6_qbl_hap2";
	document.form1.chrom.options[34].value ="6_random";
	document.form1.chrom.options[35].value ="7_random";
	document.form1.chrom.options[36].value ="8_random";
	document.form1.chrom.options[37].value ="9_random";
	document.form1.chrom.options[38].value ="10_random";
	document.form1.chrom.options[39].value ="11_random";
	document.form1.chrom.options[40].value ="12_random";
	document.form1.chrom.options[41].value ="13_random";
	document.form1.chrom.options[42].value ="14_random";
	document.form1.chrom.options[43].value ="15_random";
	document.form1.chrom.options[44].value ="16_random";
	document.form1.chrom.options[45].value ="17_random";
	document.form1.chrom.options[46].value ="18_random";
	document.form1.chrom.options[47].value ="19_random";
	document.form1.chrom.options[48].value ="20_random";
	document.form1.chrom.options[49].value ="21_random";
	document.form1.chrom.options[50].value ="22_h2_hap1";
	document.form1.chrom.options[51].value ="22_random";
	document.form1.chrom.options[52].value ="X_random";
	document.form1.chrom.options[53].value ="Y_random";
    }
    else
    {
	document.form1.chrom.options.length =43;

	document.form1.chrom.options[0].text ="All";
	document.form1.chrom.options[1].text ="1";
	document.form1.chrom.options[2].text ="2";
	document.form1.chrom.options[3].text ="3";
	document.form1.chrom.options[4].text ="4";
	document.form1.chrom.options[5].text ="5";
	document.form1.chrom.options[6].text ="6";
	document.form1.chrom.options[7].text ="7";
	document.form1.chrom.options[8].text ="8";
	document.form1.chrom.options[9].text ="9";
	document.form1.chrom.options[10].text ="10";
	document.form1.chrom.options[11].text ="11";
	document.form1.chrom.options[12].text ="12";
	document.form1.chrom.options[13].text ="13";
	document.form1.chrom.options[14].text ="14";
	document.form1.chrom.options[15].text ="15";
	document.form1.chrom.options[16].text ="16";
	document.form1.chrom.options[17].text ="17";
	document.form1.chrom.options[18].text ="18";
	document.form1.chrom.options[19].text ="19";
	document.form1.chrom.options[20].text ="X";
	document.form1.chrom.options[21].text ="Y";
	document.form1.chrom.options[22].text ="Unassembled contig 1";
	document.form1.chrom.options[23].text ="Unassembled contig 2";
	document.form1.chrom.options[24].text ="Unassembled contig 3";
	document.form1.chrom.options[25].text ="Unassembled contig 4";
	document.form1.chrom.options[26].text ="Unassembled contig 5";
	document.form1.chrom.options[27].text ="Unassembled contig 6";
	document.form1.chrom.options[28].text ="Unassembled contig 7";
	document.form1.chrom.options[29].text ="Unassembled contig 8";
	document.form1.chrom.options[30].text ="Unassembled contig 9";
	document.form1.chrom.options[31].text ="Unassembled contig 10";
	document.form1.chrom.options[32].text ="Unassembled contig 11";
	document.form1.chrom.options[33].text ="Unassembled contig 12";
	document.form1.chrom.options[34].text ="Unassembled contig 13";
	document.form1.chrom.options[35].text ="Unassembled contig 14";
	document.form1.chrom.options[36].text ="Unassembled contig 15";
	document.form1.chrom.options[37].text ="Unassembled contig 16";
	document.form1.chrom.options[38].text ="Unassembled contig 17";
	document.form1.chrom.options[39].text ="Unassembled contig 18";
	document.form1.chrom.options[40].text ="Unassembled contig 19";
	document.form1.chrom.options[41].text ="Unassembled contig X";
	document.form1.chrom.options[42].text ="Unassembled contig Y";

	document.form1.chrom.options[0].value ="All";
	document.form1.chrom.options[1].value ="1";
	document.form1.chrom.options[2].value ="2";
	document.form1.chrom.options[3].value ="3";
	document.form1.chrom.options[4].value ="4";
	document.form1.chrom.options[5].value ="5";
	document.form1.chrom.options[6].value ="6";
	document.form1.chrom.options[7].value ="7";
	document.form1.chrom.options[8].value ="8";
	document.form1.chrom.options[9].value ="9";
	document.form1.chrom.options[10].value ="10";
	document.form1.chrom.options[11].value ="11";
	document.form1.chrom.options[12].value ="12";
	document.form1.chrom.options[13].value ="13";
	document.form1.chrom.options[14].value ="14";
	document.form1.chrom.options[15].value ="15";
	document.form1.chrom.options[16].value ="16";
	document.form1.chrom.options[17].value ="17";
	document.form1.chrom.options[18].value ="18";
	document.form1.chrom.options[19].value ="19";
	document.form1.chrom.options[20].value ="X";
	document.form1.chrom.options[21].value ="Y";
	document.form1.chrom.options[22].value ="1_random";
	document.form1.chrom.options[23].value ="2_random";
	document.form1.chrom.options[24].value ="3_random";
	document.form1.chrom.options[25].value ="4_random";
	document.form1.chrom.options[26].value ="5_random";
	document.form1.chrom.options[27].value ="6_random";
	document.form1.chrom.options[28].value ="7_random";
	document.form1.chrom.options[29].value ="8_random";
	document.form1.chrom.options[30].value ="9_random";
	document.form1.chrom.options[31].value ="10_random";
	document.form1.chrom.options[32].value ="11_random";
	document.form1.chrom.options[33].value ="12_random";
	document.form1.chrom.options[34].value ="13_random";
	document.form1.chrom.options[35].value ="14_random";
	document.form1.chrom.options[36].value ="15_random";
	document.form1.chrom.options[37].value ="16_random";
	document.form1.chrom.options[38].value ="17_random";
	document.form1.chrom.options[39].value ="18_random";
	document.form1.chrom.options[40].value ="19_random";
	document.form1.chrom.options[41].value ="X_random";
	document.form1.chrom.options[42].value ="Y_random";	
    }
}

/*
function enableByDbFull(item)
{
    var st =true;
    if (item.checked) st =false;
  
    document.form1.chgc.disabled =st;
    document.form1.dkfz.disabled =st;
    document.form1.hri.disabled =st;
    document.form1.imsut.disabled =st;
    document.form1.kdri.disabled =st;    
    document.form1.nih.disabled =st; 

    document.form1.ltr.disabled =st;
    document.form1.line.disabled =st;
    document.form1.sine.disabled =st;
    document.form1.alu.disabled =st;
    
    document.form1.ese.disabled =st;

    document.form1.e_non.disabled =st; 
    document.form1.e_genome.disabled =st;
    document.form1.e_transcript.disabled =st;    
    document.form1.c_non.disabled =st;
    document.form1.c_as.disabled =st;  
}
*/
/*
function enableByDbALL(item)
{
    var st =false;
    if (item.checked) st =true;
  
    document.form1.chgc.disabled =st;
    document.form1.dkfz.disabled =st;
    document.form1.hri.disabled =st;
    document.form1.imsut.disabled =st;
    document.form1.kdri.disabled =st;    
    document.form1.nih.disabled =st;   

    document.form1.ese.disabled =st;

    document.form1.ltr.disabled =st;
    document.form1.line.disabled =st;
    document.form1.sine.disabled =st;
    document.form1.alu.disabled =st;

    document.form1.e_non.disabled =st; 
    document.form1.e_genome.disabled =st;
    document.form1.e_transcript.disabled =st;    
    document.form1.c_non.disabled =st;
    document.form1.c_as.disabled =st;   
}
*/

function enableElemKey(item)
{
    var st =true;
    if (item.checked) st =false;
  
    document.form1.keyword_type.disabled =st;
    document.form1.keyword.disabled =st;    
}

function enableElemPOS(item)
{
    var st =true;
    if (item.checked) st =false;
  
    document.form1.chrom.disabled =st;
    document.form1.plus.disabled =st;
    document.form1.minus.disabled =st;
    document.form1.both.disabled =st;
    document.form1.pos_from.disabled =st;
    document.form1.pos_to.disabled =st;
    document.form1.sp_site_seq.disabled =st;    
}

function enableElemAS(item)
{
    var st =true;
    if (item.checked) st =false;
    
    document.form1.varUniqFrom.disabled=st;
    document.form1.varUniqTo.disabled=st;
    document.form1.as_5t.disabled=st;
    document.form1.as_in.disabled=st;
    document.form1.as_3t.disabled=st;
    document.form1.as_cs.disabled=st;
    document.form1.as_ia.disabled=st;
    document.form1.as_id.disabled=st;
    document.form1.as_me.disabled=st;
    document.form1.as_ri.disabled=st;  

    // add 081117
    document.form1.as_cs_ap.disabled=st;
    document.form1.as_ia_ap.disabled=st;
    document.form1.as_cs_at.disabled=st;
    document.form1.as_id_at.disabled=st;
}

function enableElemFA(item)
{
    var st =true;
    if (item.checked) st =false;
    
    document.form1.orflenFrom.disabled=st;
    document.form1.orflenTo.disabled=st;
    document.form1.motifPrg.disabled=st;
    document.form1.motifText.disabled=st;
    document.form1.goPrg.disabled=st;
    document.form1.goText.disabled=st;
    document.form1.chk_molfnc.disabled=st;
    document.form1.chk_biopro.disabled=st;
    document.form1.chk_cellcom.disabled=st;
    document.form1.chk_wolf.disabled=st;
    document.form1.chk_targetp.disabled=st;
    document.form1.chk_tmhmm.disabled=st;
    document.form1.chk_sosui.disabled=st;
    
    var chk = document.getElementById("chk_wolf");
    if(item.checked && chk.checked)
    {
	document.form1.wolf.disabled=false;
    }
    else if(!item.checked)
    {
	document.form1.wolf.disabled=true;
    }
    else
    {
	document.form1.wolf.disabled=true;
    }
    
    var chkt = document.getElementById("chk_targetp");
    if(item.checked && chkt.checked)
    {
	document.form1.targetp.disabled=false;
    }
    else if(!item.checked)
    {
	document.form1.targetp.disabled=true;
    }
    else
    {
	document.form1.targetp.disabled=true;
    }
}

function enableWolf(item)
{
    var st =true;
    if(item.checked) 
	document.form1.wolf.disabled=false;
    else
    	document.form1.wolf.disabled=true;    
}

function enableTargetp(item)
{
    var st =true;
    if(item.checked)
    	document.form1.targetp.disabled=false;
    else
    	document.form1.targetp.disabled=true;    
}

function enableElemASF(item)
{
    var st =true;
    if (item.checked) st =false;
    
    document.form1.ldorfFrom.disabled=st;
    document.form1.ldorfTo.disabled=st;
    document.form1.as_5utr.disabled=st;
    document.form1.as_cds.disabled=st;
    document.form1.as_3utr.disabled=st;
    document.form1.motif.disabled=st;
    document.form1.go.disabled=st;
    document.form1.sl.disabled=st;
    document.form1.td.disabled=st;
    document.form1.as_bridged.disabled=st;
    document.form1.as_nested.disabled=st;
    document.form1.as_multi.disabled=st;
}

function enableASConserved()
{
    
}

//-- For main menu ----------------------------------------------------------

function mout(item)
{
    var normalColor ="white";
    var hoverColor ="red";
    item.style.color=normalColor;
}
function mover(item)
{
    var normalColor ="white";
    var hoverColor ="red";
    item.style.color=hoverColor;
}

//---------------------------------------------------------------------------




//---------------------------------------------------------------------------

function openASV(seqid) { openImg("AlternativeSplicingViewer", "images/asv.png", 950, 413); }

function openOTV(seqid) { openImg("OrthlogusPairViewer",       "images/otv.png", 636, 539); }

function openImg(ttl, fname, w, h) {
    var param = "width="+w + ",height="+h;
    var win = window.open(fname,ttl,param);
}


function prevPage(pno){
    var sf=document.getElementById("searchForm");
    document.getElementById("page").value=pno*1-1;
    sf.submit();
}
function nextPage(pno){
    var sf=document.getElementById("searchForm");
    document.getElementById("page").value=pno*1+1;
    sf.submit();
}

/*
function openApplet(hix,locusDef)
{
    window.open("ASAppletDemo.jsp?hix="+hix,hix,"width=1000,height=800,scrollbars=yes,resizable=yes,toolbar=yes");
}

var appletWin;
function openApplet(hix,locusDef){
	if (appletWin){
		appletWin.focus();
		appletWin.reload(hix);
//		window.open("ASAppletDemo.jsp?hix="+hix,locusDef,"width=1000,height=800,scrollbars=yes");
	}else{
		window.open("ASAppletDemo.jsp?hix="+hix,locusDef,"width=1000,height=800,scrollbars=yes,resizable=yes,toolbar=yes");
	}
}
*/