var marker=0;
var zaehler = 1;
var data = " ";
var seite = " ";
var sp = "de";
function CheckInput() {
 for(i=0; i<document.forms[0].elements.length; ++i)
  if(document.forms[0].elements[i].value == "")  {
    if (sp.indexOf("en") != -1) alert("Please fill all fields!"); else alert("Bitte alle Eingabefelder füllen!");
        //document.forms[0].elements[i].focus();
        return false;
   }
  return true;
}

function ControlSweetRequest(){

if (document.form.z0_0.value.indexOf(" ") != -1
    || document.form.z0_1.value.indexOf(" ") != -1
    || document.form.z0_2.value.indexOf(" ") != -1
   //|| document.form.z0_3.options[document.form.z0_3.selectedIndex].value.indexOf("stop") != -1
   //|| document.form.z0_4.options[document.form.z0_4.selectedIndex].value.indexOf("stop") != -1
    ) { if (sp.indexOf("en") != -1) alert("Please fill all fields!"); else alert("Bitte alle Eingabefelder füllen!");}
else { 
	document.form.name.value = document.form.z0_0.value
				   +"-("+document.form.z0_1.value+")-"
				   +document.form.z0_2.value;
				  // +document.form.z0_3.options[document.form.z0_3.selectedIndex].text
				  // +document.form.z0_4.options[document.form.z0_4.selectedIndex].text;
	document.form.submit();
	return true;
      }
      

}



function ShowAtomsAndTorsions(emb,message){

if(message.indexOf("Atom:") != -1)
 	  {
 	  
 	  atomname = message.slice(message.indexOf(" ")+1);
	  if(atomname.indexOf(" ") == 0) atomname = message.slice(message.indexOf(" ")+1); 	
          atomname = atomname.substring(0,atomname.indexOf(" "));
          
 	  atomnummer = message.slice(message.indexOf(" ")+1);
	  atomnummer = atomnummer.slice(atomnummer.indexOf(" ")+1);
	  if(atomnummer.indexOf(" ") == 0) atomnummer = atomnummer.slice(atomnummer.indexOf(" ")+1); 	
          atomnummer = atomnummer.substring(0,atomnummer.indexOf(" "));
          
 	  residuum = message.slice(message.indexOf(" ")+1);
	  residuum = residuum.slice(residuum.indexOf(" ")+1);
	  residuum = residuum.slice(residuum.indexOf(" ")+1);
	  residuum = residuum.slice(residuum.indexOf(" ")+1);
	  residuum = residuum.slice(residuum.indexOf(" ")+1);
	  residuum = residuum.slice(residuum.indexOf(" ")+1);
	  if(residuum.indexOf(" ") == 0) residuum = residuum.slice(residuum.indexOf(" ")+1); 	
	  }
	  
//if(navigator.appName.indexOf("Netscape") != -1)
 ns = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
if(ns)	{
  document.embeds.chime_graphic.executeScript("select atomno="+atomnummer+";spacefill 80;color atom [255,255,0];");
	}
	
torsion = "";
torsion1 = "keine";
torsion2 = "keine";
torsion3 = "keine";
torsion4 = "keine";

if(residuum == 1){	
	for(i=0;i<document.form.auswahl1.options.length;i++)
		if(document.form.auswahl1.options[i].text == atomname )
			document.form.auswahl1.selectedIndex = i;
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_1") 
			torsion = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_1_1") 
			torsion1 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_2_1") 
			torsion2 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_3_1") 
			torsion3 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_4_1") 
			torsion4 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);		
	marker=1;	
	}


if(residuum == 2){	
	for(i=0;i<document.form.auswahl2.options.length;i++)
		if(document.form.auswahl2.options[i].text == atomname)
			document.form.auswahl2.selectedIndex = i;
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_2") 
			torsion = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_1_2") 
			torsion1 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_2_2") 
			torsion2 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_3_2") 
			torsion3 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);
	for(j=0;j<document.form.elements.length;j++)
		if(document.form.elements[j].name == atomname+"_4_2") 
			torsion4 = document.form.elements[j].value.slice(document.form.elements[j].value.indexOf(" ")+1);		
	marker=2;
	}

	  





if(marker == 1) {
	document.form.nr1.value = atomnummer;
	if (torsion != "") document.form.tors1.value = torsion; else document.form.tors1.value = torsion1;
	document.form.tors2.value = torsion2;
	//document.form.torsx1.value = torsion3;
	//document.form.torsx2.value = torsion4;
	
	if (document.form.tors1.value.indexOf("keine") != -1) {document.form.gew1.value="X";document.form.gew2.value="X";document.form.gew3.value="X";}
	else {document.form.gew1.value="1";document.form.gew2.value="1";document.form.gew3.value="1";}
	if (torsion2.indexOf("keine") != -1) {document.form.gew4.value="X";document.form.gew5.value="X";document.form.gew6.value="X";}
	else {document.form.gew4.value="1";document.form.gew5.value="1";document.form.gew6.value="1";}
	marker=0;
}else if(marker == 2) {
	document.form.nr2.value = atomnummer;
	if (torsion != "") document.form.tors3.value = torsion;else document.form.tors3.value = torsion1;
	document.form.tors4.value = torsion2;
	//document.form.torsx3.value = torsion3;
	//document.form.torsx4.value = torsion4;
	
	if (document.form.tors3.value.indexOf("keine") != -1) {document.form.gew7.value="X";document.form.gew8.value="X";document.form.gew9.value="X";}
	else {document.form.gew7.value="1";document.form.gew8.value="1";document.form.gew9.value="1";}
	if (torsion2.indexOf("keine") != -1) {document.form.gew10.value="X";document.form.gew11.value="X";document.form.gew12.value="X";}
	else {document.form.gew10.value="1";document.form.gew11.value="1";document.form.gew12.value="1";}
	marker=0;
	}

}

function AddData(){
sp;
if(zaehler >= 11) if (sp.indexOf("en") != -1) {alert("Only 10 datasets are allowed!");return;}else 
{alert("Nur 10 Eingaben sind erlaubt!");return;}
check = CheckInput();
if(check && document.form.auswahl1.options.selectedIndex !=0 && document.form.auswahl2.options.selectedIndex !=0){
data +="CURVE "+zaehler+"\n"
       +"ATOM1:"+document.form.auswahl1.options[document.form.auswahl1.options.selectedIndex].text+"\tNUMBER:"+document.form.nr1.value+"\n"
       +"TORSION1:"+document.form.tors1.value+"\tWEIGHTING:"+document.form.gew1.value+" "+document.form.gew2.value+" "+document.form.gew3.value+"\n"
       +"TORSION2:"+document.form.tors2.value+"\tWEIGHTING:"+document.form.gew4.value+" "+document.form.gew5.value+" "+document.form.gew6.value+"\n"
     // +"TORSION3:"+document.form.torsx1.value+"\tWEIGHTING:"+document.form.gewx1.value+" "+document.form.gewx2.value+" "+document.form.gewx3.value+"\n"
     //+"TORSION4:"+document.form.torsx2.value+"\tWEIGHTING:"+document.form.gewx4.value+" "+document.form.gewx5.value+" "+document.form.gewx6.value+"\n"
       +"ATOM2:"+document.form.auswahl2.options[document.form.auswahl2.options.selectedIndex].text+"\tNUMBER:"+document.form.nr2.value+"\n"
       +"TORSION1:"+document.form.tors3.value+"\tWEIGHTING:"+document.form.gew7.value+" "+document.form.gew8.value+" "+document.form.gew9.value+"\n"
       +"TORSION2:"+document.form.tors4.value+"\tWEIGHTING:"+document.form.gew10.value+" "+document.form.gew11.value+" "+document.form.gew12.value+"\n"
     // +"TORSION3:"+document.form.torsx3.value+"\tWEIGHTING:"+document.form.gewx7.value+" "+document.form.gewx8.value+" "+document.form.gewx9.value+"\n"
     // +"TORSION4:"+document.form.torsx4.value+"\tWEIGHTING:"+document.form.gewx10.value+" "+document.form.gewx11.value+" "+document.form.gewx12.value+"\n"
       +"DISTANCE:"+document.form.min.value+" "+document.form.max.value
       +"\n\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$";
 zaehler++;
 if (sp.indexOf("en") != -1) document.form.button.value="Add dataset"+zaehler;
 else document.form.button.value="Datensatz "+zaehler+" hinzufügen"; 
 document.form.reset();
 document.form.job.value=data;
 var ie = document.all ? true : false;
 //var ns = document.layers ? true : false;
 ns = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
  

 if (ns) {
  	document.embeds.chime_graphic.executeScript("select *;spacefill off;");
      with (document["Nav"].document["DerLayer"].document) {
      open();
      write('<pre>'+data);
      close();
    } 
  }
  else document.getElementById("Nav").innerText= data;
  //document.all["Nav"].innerText= data;
  
 }
}

function makeMap(){
data;
sp;
if (sp.indexOf("en") != -1)
 seite ="\<html\>\<head\>"
	+"\<title\>DKFZ\-Heidelberg\: DISTANCE MAPPING\<\/title\>"
	//+"\<script language=\"JavaScript\" src=\"distmap.js\"\>\<\/script\>"
	+"\<link rel\=\"stylesheet\" href\=\"distmap.css\" type\=\"text\/css\"\>"
	+"\<\/head\>"
	+"\<body background\=\".\/pics\/hintergrund.gif\" link\=\"\#FFFFFF\" "
	+"alink\=\"\#FFFFFF\" vlink\=\"\#FFFFFF\" style\=\"margin\-top\:0pt\;margin\-left\:0pt\;\"\>"
	+"\<table width\=\"700\" border\=\"0\"  cellpadding\=\"0\" cellspacing\=\"0\" align\=\"center\"\>"
	+"\<tr\>\<td align\=\"left\"\>\<a href\=\"http\:\/\/www.dkfz\-heidelberg.de\" border\=\"0\" "
	+"alt\=\"Deutsches Krebsforschungszentrum Heidelberg\"\>\<img src\=\".\/pics\/dkfzlogo.gif\"\>\<\/a\>"
	+"\<\/td\>\<td align\=\"center\"\>\<br\>\<font color\=\"blue\"\>\<h1\>DISTANCE\&nbsp\;MAPPING\<\/h1\>"
	+"\<\/td\>\<td align\=\"right\" valign\=\"top\"\>\<a href\=\"index.html\"\>\<img src\=\".\/pics\/flagge.gif\"\>\<\/a\>\&nbsp\;"
	+"\<a href\=\"http\:\/\/www.dkfz-heidelberg.de\/spec\/\"\>"
	+"\<img src\=\".\/pics\/zsmm\-logo.gif\"\>\<\/a\>"
	+"\<\/td\>\<\/tr\>"
	+"\<tr\>\<td colspan\=\"3\" align\=\"center\"\>"
	+"\<table border\=\"0\" width\=\"700\" height\=\"30\" cellpadding\=\"0\" cellspacing\=\"0\" align\=\"center\"\>"
	+"\<tr\>"
	+"\<td width\=\"60\" align\=\"center\" \>\<a href\=\".\/indexengl.html\" style\=\"text\-decoration\:none\;\"\>"
	+"\<font color\=\"blue\"\>Home\<\/font\>\<\/a\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" \>\<a href\=\".\/startengl.html\" style\=\"text\-decoration\:none\;\"\>"
	+"\<font color\=\"blue\"\>Build\&nbsp\;disaccharid\<\/font\>\<\/a\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" \>\<a href\=\"javascript\:document.memoire.job.value\=document.form.job.value\;document.memoire.submit()\;\" "
	+"onClick\=\"javascript\:document.memoire.submit()\;\" "
	+"style\=\"text\-decoration\:none\;\"\>\<font color\=\"blue\"\>Edit\&nbsp\;data\<\/font\>\<\/a\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" bgcolor\=\"\#C0C0C0\" style\=\"border\-color\:\#C0C0C0\;"
	+"border\-width\:5px\;border\-style\:inset\;border\-bottom\:none\;margin\:0px\;\"\>\<font color\=\"blue\"\>"
	+"\<b\>Change\&nbsp\;data\<\/b\>\<\/font\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" \>\<a href\=\"javascript\:document.form.submit()\;\" onClick\=\"javascript\:document.form.submit()\;\" "
	+"style\=\"text\-decoration\:none\;\"\>\<font color\=\"blue\"\>Generate\&nbsp\;map\<\/font\>\<\/a\>\<\/td\>"
	+"\<\/tr\>"
	+"\<\/table\>"
	+"\<\/td\>\<\/tr\>"
	+"\<tr\>\<td colspan\=\"3\" align\=\"center\" cellpadding\=\"0\" cellspacing\=\"0\"\>"
	+"\<table border\=\"0\" cellpadding\=\"0\" cellspacing\=\"0\" align\=\"center\" width\=\"700\"  "
	+"height\=\"500\" bgcolor\=\"\#C0C0C0\"\>\<tr\>\<td\>"
     	+"\<form name\=\"form\" action\=\"resultsengl.php\" method\=\"post\" align\=\"center\"\>"
	+"\<table align\=\"center\"\>"
	+"\<tr\>\<td\>\<b\>Map title\&nbsp\;    \&nbsp\;\<\/b\>\<\/td\>"
	+"\<td\>\<input Type\=\"text\" name\=\"title\" size\=\"20\" value\=\""+document.form.name.value+"\" "
	+"style\=\"width\:200\;\"\>\<\/td\>\<\/tr\>"
	+"\<tr\>\<td\>\<b\>Scaling start\&nbsp\;    \&nbsp\;\<\/b\>\<\/td\>"
	+"\<td\>\<input Type\=\"text\" name\=\"scalingstart\" size\=\"3\" value\=\"\-180\"\>\<\/td\>\<\/tr\>"
	+"\<tr\>\<td colspan\=\"2\"\>\<textarea name\=\"job\" cols\=\"50\" rows\=\"23\" wrap\=\"physical\"\>"
	+data+"\<\/textarea\>\<br\>Check data,\<br\>change it if needful and ... \<\/b\>"
	+"\<input Type\=\"submit\" value\=\"Generate map\"\>"
	+"\<input type\=\"hidden\" name\=\"name\" value\=\""+document.form.name.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"phi\" value\=\""+document.form.phi.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"psi\" value\=\""+document.form.psi.value+"\"\>"
	+"\<\/td\>\<\/tr\>"
	+"\<\/table\>"
	+"\<\/form\>"
	+"\<form name\=\"memoire\" action\=\"distmapengl.php\" method\=\"post\"\>"
	+"\<input type\=\"hidden\" name\=\"name\" value\=\""+document.form.name.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"job\" value\=\""+document.form.job.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"phi\" value\=\""+document.form.phi.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"psi\" value\=\""+document.form.psi.value+"\"\>"
	+"\<\/form\>"
	+"\<\/td\>\<\/tr\>\<\/table\>"
	+"\<\/td\>\<\/tr\>\<\/table\>"
	+"\<\/body\>\<\/html\>";
else
	seite="\<html\>\<head\>"
	+"\<title\>DKFZ\-Heidelberg\: DISTANCE MAPPING\<\/title\>"
	//+"\<script language=\"JavaScript\" src=\"distmap.js\"\>\<\/script\>"
	+"\<link rel\=\"stylesheet\" href\=\"distmap.css\" type\=\"text\/css\"\>"
	+"\<\/head\>"
	+"\<body background\=\".\/pics\/hintergrund.gif\" link\=\"\#FFFFFF\" "
	+"alink\=\"\#FFFFFF\" vlink\=\"\#FFFFFF\" style\=\"margin\-top\:0pt\;margin\-left\:0pt\;\"\>"
	+"\<table width\=\"700\" border\=\"0\"  cellpadding\=\"0\" cellspacing\=\"0\" align\=\"center\"\>"
	+"\<tr\>\<td align\=\"left\"\>\<a href\=\"http\:\/\/www.dkfz\-heidelberg.de\" border\=\"0\" "
	+"alt\=\"Deutsches Krebsforschungszentrum Heidelberg\"\>\<img src\=\".\/pics\/dkfzlogo.gif\"\>\<\/a\>"
	+"\<\/td\>\<td align\=\"center\"\>\<br\>\<font color\=\"blue\"\>\<h1\>DISTANCE\&nbsp\;MAPPING\<\/h1\>"
	+"\<\/td\>\<td align\=\"right\" valign\=\"top\"\>\<a href\=\"indexengl.html\"\>\<img src\=\".\/pics\/Kombiflagge.gif\"\>\<\/a\>\&nbsp\;"
	+"\<a href\=\"http\:\/\/www.dkfz-heidelberg.de\/spec\/\"\>"
	+"\<img src\=\".\/pics\/zsmm\-logo.gif\"\>\<\/a\>"
	+"\<\/td\>\<\/tr\>"
	+"\<tr\>\<td colspan\=\"3\" align\=\"center\"\>"
	+"\<table border\=\"0\" width\=\"700\" height\=\"30\" cellpadding\=\"0\" cellspacing\=\"0\" align\=\"center\"\>"
	+"\<tr\>"
	+"\<td width\=\"60\" align\=\"center\" \>\<a href\=\".\/index.html\" style\=\"text\-decoration\:none\;\"\>"
	+"\<font color\=\"blue\"\>Home\<\/font\>\<\/a\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" \>\<a href\=\".\/start.html\" style\=\"text\-decoration\:none\;\"\>"
	+"\<font color\=\"blue\"\>Disaccharid\&nbsp\;bilden\<\/font\>\<\/a\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" \>\<a href\=\"javascript\:document.memoire.job.value\=document.form.job.value\;document.memoire.submit()\;\" "
	+"onClick\=\"javascript\:document.memoire.submit()\;\" "
	+"style\=\"text\-decoration\:none\;\"\>\<font color\=\"blue\"\>Daten\&nbsp\;eingeben\<\/font\>\<\/a\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" bgcolor\=\"\#C0C0C0\" style\=\"border\-color\:\#C0C0C0\;"
	+"border\-width\:5px\;border\-style\:inset\;border\-bottom\:none\;margin\:0px\;\"\>\<font color\=\"blue\"\>"
	+"\<b\>Daten\&nbsp\;bearbeiten\<\/b\>\<\/font\>\<\/td\>"
	+"\<td width\=\"180\" align\=\"center\" \>\<a href\=\"javascript\:document.form.submit()\;\" onClick\=\"javascript\:document.form.submit()\;\" "
	+"style\=\"text\-decoration\:none\;\"\>\<font color\=\"blue\"\>Map\&nbsp\;generieren\<\/font\>\<\/a\>\<\/td\>"
	+"\<\/tr\>"
	+"\<\/table\>"
	+"\<\/td\>\<\/tr\>"
	+"\<tr\>\<td colspan\=\"3\" align\=\"center\" cellpadding\=\"0\" cellspacing\=\"0\"\>"
	+"\<table border\=\"0\" cellpadding\=\"0\" cellspacing\=\"0\" align\=\"center\" width\=\"700\"  "
	+"height\=\"500\" bgcolor\=\"\#C0C0C0\"\>\<tr\>\<td\>"
     	+"\<form name\=\"form\" action\=\"results.php\" method\=\"post\" align\=\"center\"\>"
	+"\<table align\=\"center\"\>"
	+"\<tr\>\<td\>\<b\>Map Titel\&nbsp\;    \&nbsp\;\<\/b\>\<\/td\>"
	+"\<td\>\<input Type\=\"text\" name\=\"title\" size\=\"20\" value\=\""+document.form.name.value+"\" "
	+"style\=\"width\:200\;\"\>\<\/td\>\<\/tr\>"
	+"\<tr\>\<td\>\<b\>Map Ursprung\&nbsp\;    \&nbsp\;\<\/b\>\<\/td\>"
	+"\<td\>\<input Type\=\"text\" name\=\"scalingstart\" size\=\"3\" value\=\"\-180\"\>\<\/td\>\<\/tr\>"
	+"\<tr\>\<td colspan\=\"2\"\>\<textarea name\=\"job\" cols\=\"50\" rows\=\"23\" wrap\=\"physical\"\>"
	+data+"\<\/textarea\>\<br\>Daten überprüfen,\<br\>falls nötig editieren, und ... \<\/b\>"
	+"\<input Type\=\"submit\" value\=\"Map generieren\"\>"
	+"\<input type\=\"hidden\" name\=\"name\" value\=\""+document.form.name.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"phi\" value\=\""+document.form.phi.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"psi\" value\=\""+document.form.psi.value+"\"\>"
	+"\<\/td\>\<\/tr\>"
	+"\<\/table\>"
	+"\<\/form\>"
	+"\<form name\=\"memoire\" action\=\"distmap.php\" method\=\"post\"\>"
	+"\<input type\=\"hidden\" name\=\"name\" value\=\""+document.form.name.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"job\" value\=\""+document.form.job.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"phi\" value\=\""+document.form.phi.value+"\"\>"
	+"\<input type\=\"hidden\" name\=\"psi\" value\=\""+document.form.psi.value+"\"\>"
	+"\<\/form\>"
	+"\<\/td\>\<\/tr\>\<\/table\>"
	+"\<\/td\>\<\/tr\>\<\/table\>"
	+"\<\/body\>\<\/html\>";
	
	document.write(seite);
	return;
	
}

function aktualisiere(spr){
sp=spr;
data = document.form.job.value;
zaehler = document.form.counter.value;
if (sp.indexOf("en") != -1) document.form.button.value="Add dataset"+zaehler; 
else document.form.button.value="Datensatz "+zaehler+" hinzufügen";
ie = document.all ? true : false; 
 ns = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
//ns = document.layers ? true : false;
 if (ns) {
  	document.embeds.chime_graphic.executeScript("select *;spacefill off;");
      with (document["Nav"].document["DerLayer"].document) {
      open();
      write('<pre>'+data);
      close();
     } 
  }
  else document.getElementById("Nav").innerText= data;
  //document.all["Nav"].innerText= data;
  
  return;

}

