function chartStr(countWhat) {

// This is the chart function that plots the string chart 

// Below we are setting the variable "TextStr" that will get the vale of the text area 
// We are also changing it to lower case so the graph will not distinguish between capitalized and lower case letters.

var TextStr="";
TextStr=document.Text.String.value; 
TextStr=TextStr.toLowerCase(); 
var i=0;
var TextStrNoSpcNL="";
var ancci=0;
var ancciStop="9,10,11,13,32";
var abc = "abcdefghijklmnopqrstuvwxyz";
var tmpChar = "";
var OTH1_td=document.getElementById("OTH1");

// The IF statement below is used to remove the spaces, tabs, and new lines when the user decides not to count these in his histogram
// By calling the function with countWhat==1. 

if (countWhat==1) {
	for (i=0; i<TextStr.length; i++) {
		ancci=TextStr.charCodeAt(i);
		if (ancciStop.indexOf(ancci) != -1) {continue;}
		TextStrNoSpcNL+=TextStr.charAt(i);
	}
TextStr="";
TextStr+=TextStrNoSpcNL;
}

// The IF statement below is used to remove everything that is not in the alfa-bet (the "abc" string above) when the user decides count only these in his histogram
// By calling the function with countWhat==2. 

if (countWhat==2) {
TextStrNoSpcNL="";
	for (i=0; i<TextStr.length; i++) {
		tmpChar=TextStr.charAt(i);
		if (abc.indexOf(tmpChar) == -1) {continue;}
		TextStrNoSpcNL+=TextStr.charAt(i);
	}
TextStr="";
TextStr+=TextStrNoSpcNL;
}


// Below we are making sure that the user will enter something.
// if not we alert him or her and are setting the focus to the textarea and we exit the function. 
// There are different allerts for the different buttons.

if ((TextStr.length == 0)&&(countWhat==0)) {
	alert("You have clicked *Count Everything* \nBut you have to enter some text Also!!!\nPlease enter something and continue!!!");
	document.Text.String.focus();
	return false;
}

if ((TextStr.length == 0)&&(countWhat==1)) {
	alert("You have clicked *Do Not Count Spaces and NL*\nSo you have entered only spaces and new line,s\nOr you have not entered anything!\nPlease Change this and continue!!!");
	document.Text.String.focus();
	return false;
}

if ((TextStr.length == 0)&&(countWhat==2)) {
	alert("You have clicked *Count only Characters from the Alfa-Bet*\nSo you have entered only spaces and new lines and characters not from the Alfa-Bet,\nOr you have not entered anything!\nPlease Change this and continue!!!");
	document.Text.String.focus();
	return false;
}

if (countWhat==2) {OTH1_td.innerHTML="";} 			/* This IF here is to remove this cell from the chart, if we choose to count only the charaters from the alfa-bet "countWhat==2" ("abc" string declered above) */
if (countWhat!=2) {OTH1_td.innerHTML="-------<br>OTH";}		/* This IF is to include this cell if you are counting other characters than Alfa-bet. */
// Below we declare the variables that are representing the correct places in the initially set table in the HTML page 
// This is used so we can afterwards implement the "innerHTML" attribute to the table entities and have the start button 
// use this function as an alternative of document.write so everything can appear on the same document

var A_str="";
var A_td = document.getElementById("A");
A_td.innerHTML="";
var A_prcN=0;
var A_prc_td = document.getElementById("A_prc");
A_prc_td.innerHTML="";

var B_str="";
var B_td = document.getElementById("B");
B_td.innerHTML="";
var B_prcN=0;
var B_prc_td = document.getElementById("B_prc");
B_prc_td.innerHTML="";

var C_str="";
var C_td = document.getElementById("C");
C_td.innerHTML="";
var C_prcN=0;
var C_prc_td = document.getElementById("C_prc");
C_prc_td.innerHTML="";

var D_str="";
var D_td = document.getElementById("D");
D_td.innerHTML="";
var D_prcN=0;
var D_prc_td = document.getElementById("D_prc");
D_prc_td.innerHTML="";

var E_str="";
var E_td = document.getElementById("E");
E_td.innerHTML="";
var E_prcN=0;
var E_prc_td = document.getElementById("E_prc");
E_prc_td.innerHTML="";

var F_str="";
var F_td = document.getElementById("F");
F_td.innerHTML="";
var F_prcN=0;
var F_prc_td = document.getElementById("F_prc");
F_prc_td.innerHTML="";

var G_str="";
var G_td = document.getElementById("G");
G_td.innerHTML="";
var G_prcN=0;
var G_prc_td = document.getElementById("G_prc");
G_prc_td.innerHTML="";

var H_str="";
var H_td = document.getElementById("H");
H_td.innerHTML="";
var H_prcN=0;
var H_prc_td = document.getElementById("H_prc");
H_prc_td.innerHTML="";

var I_str="";
var I_td = document.getElementById("I");
I_td.innerHTML="";
var I_prcN=0;
var I_prc_td = document.getElementById("I_prc");
I_prc_td.innerHTML="";

var J_str="";
var J_td = document.getElementById("J");
J_td.innerHTML="";
var J_prcN=0;
var J_prc_td = document.getElementById("J_prc");
J_prc_td.innerHTML="";

var K_str="";
var K_td = document.getElementById("K");
K_td.innerHTML="";
var K_prcN=0;
var K_prc_td = document.getElementById("K_prc");
K_prc_td.innerHTML="";

var L_str="";
var L_td = document.getElementById("L");
L_td.innerHTML="";
var L_prcN=0;
var L_prc_td = document.getElementById("L_prc");
L_prc_td.innerHTML="";

var M_str="";
var M_td = document.getElementById("M");
M_td.innerHTML="";
var M_prcN=0;
var M_prc_td = document.getElementById("M_prc");
M_prc_td.innerHTML="";

var N_str="";
var N_td = document.getElementById("N");
N_td.innerHTML="";
var N_prcN=0;
var N_prc_td = document.getElementById("N_prc");
N_prc_td.innerHTML="";

var O_str="";
var O_td = document.getElementById("O");
O_td.innerHTML="";
var O_prcN=0;
var O_prc_td = document.getElementById("O_prc");
O_prc_td.innerHTML="";

var P_str="";
var P_td = document.getElementById("P");
P_td.innerHTML="";
var P_prcN=0;
var P_prc_td = document.getElementById("P_prc");
P_prc_td.innerHTML="";

var Q_str="";
var Q_td = document.getElementById("Q");
Q_td.innerHTML="";
var Q_prcN=0;
var Q_prc_td = document.getElementById("Q_prc");
Q_prc_td.innerHTML="";

var R_str="";
var R_td = document.getElementById("R");
R_td.innerHTML="";
var R_prcN=0;
var R_prc_td = document.getElementById("R_prc");
R_prc_td.innerHTML="";

var S_str="";
var S_td = document.getElementById("S");
S_td.innerHTML="";
var S_prcN=0;
var S_prc_td = document.getElementById("S_prc");
S_prc_td.innerHTML="";

var T_str="";
var T_td = document.getElementById("T");
T_td.innerHTML="";
var T_prcN=0;
var T_prc_td = document.getElementById("T_prc");
T_prc_td.innerHTML="";

var U_str="";
var U_td = document.getElementById("U");
U_td.innerHTML="";
var U_prcN=0;
var U_prc_td = document.getElementById("U_prc");
U_prc_td.innerHTML="";

var V_str="";
var V_td = document.getElementById("V");
V_td.innerHTML="";
var V_prcN=0;
var V_prc_td = document.getElementById("V_prc");
V_prc_td.innerHTML="";

var W_str="";
var W_td = document.getElementById("W");
W_td.innerHTML="";
var W_prcN=0;
var W_prc_td = document.getElementById("W_prc");
W_prc_td.innerHTML="";

var X_str="";
var X_td = document.getElementById("X");
X_td.innerHTML="";
var X_prcN=0;
var X_prc_td = document.getElementById("X_prc");
X_prc_td.innerHTML="";

var Y_str="";
var Y_td = document.getElementById("Y");
Y_td.innerHTML="";
var Y_prcN=0;
var Y_prc_td = document.getElementById("Y_prc");
Y_prc_td.innerHTML="";

var Z_str="";
var Z_td = document.getElementById("Z");
Z_td.innerHTML="";
var Z_prcN=0;
var Z_prc_td = document.getElementById("Z_prc");
Z_prc_td.innerHTML="";

var OTH_str="";
var OTH_td = document.getElementById("OTH");
OTH_td.innerHTML="";
var OTH_prcN=0;
var OTH_prc_td = document.getElementById("OTH_prc");
OTH_prc_td.innerHTML="";


var NUM_str_chr="";
var NUM_str_tmp="";
var NUM_str="";
var Max_NUM=0;
var Max_NUM_tmp=0;
var NUM_td=document.getElementById("NUM");
NUM_td.innerHTML="";


var plot=new Array(27);
var count=0;


for (count=0; count<plot.length; count++) {
	plot[count]=0;
}


// The For loop below is counting the number of times each character appear in the text and 
// is increasing the corresponding element of the "plot" array 
// For example: plot[0] is representing the number of times the character a or A is represented in the text
// The last element of the array plot[26] is used to count all other characters that are not in the "abc" string declared above
// This can be easily removed by commenting the last if statement 
// and removing the corresponding cells in the table (ID="OTH", ID="OTH_prc" and ID="OTH1") in the HTML page. 
// But than the total number will not add up to 100%. This is why i decided to include this so the chart will be more accurate


for (count=0; count<TextStr.length; count++) {
	if (TextStr.charAt(count) == "a") {plot[0]+=1;}
	if (TextStr.charAt(count) == "b") {plot[1]+=1;}
	if (TextStr.charAt(count) == "c") {plot[2]+=1;}
	if (TextStr.charAt(count) == "d") {plot[3]+=1;}
	if (TextStr.charAt(count) == "e") {plot[4]+=1;}
	if (TextStr.charAt(count) == "f") {plot[5]+=1;}
	if (TextStr.charAt(count) == "g") {plot[6]+=1;}
	if (TextStr.charAt(count) == "h") {plot[7]+=1;}
	if (TextStr.charAt(count) == "i") {plot[8]+=1;}
	if (TextStr.charAt(count) == "j") {plot[9]+=1;}
	if (TextStr.charAt(count) == "k") {plot[10]+=1;}
	if (TextStr.charAt(count) == "l") {plot[11]+=1;}
	if (TextStr.charAt(count) == "m") {plot[12]+=1;}
	if (TextStr.charAt(count) == "n") {plot[13]+=1;}
	if (TextStr.charAt(count) == "o") {plot[14]+=1;}
	if (TextStr.charAt(count) == "p") {plot[15]+=1;}
	if (TextStr.charAt(count) == "q") {plot[16]+=1;}
	if (TextStr.charAt(count) == "r") {plot[17]+=1;}
	if (TextStr.charAt(count) == "s") {plot[18]+=1;}
	if (TextStr.charAt(count) == "t") {plot[19]+=1;}
	if (TextStr.charAt(count) == "u") {plot[20]+=1;}
	if (TextStr.charAt(count) == "v") {plot[21]+=1;}
	if (TextStr.charAt(count) == "w") {plot[22]+=1;}
	if (TextStr.charAt(count) == "x") {plot[23]+=1;}
	if (TextStr.charAt(count) == "y") {plot[24]+=1;}
	if (TextStr.charAt(count) == "z") {plot[25]+=1;}
	if (abc.indexOf(TextStr.charAt(count)) == "-1") {plot[26]+=1;}
}




// The For loops below, plus the other 3 following statements after them, are used to
// make sure that a "*" will appear for each time a character is repeated. And that this "*" will go in the right place in the initially set table
// This is done by the FOR loops and the statement right after it.
// The other 2 statements are calculating the percent of frequency each character appears in the text and are 
// also making sure that this number will appear in the right place in the table.
// In this case the calculation is making sure that the percent shown will be rounded to 1 sign after the decimal point. This can be easily changed.
 

for (count=0; count<plot[0]; count++) {A_str+="<BR>&nbsp;&nbsp;*";}
A_str=A_str.substring(4, A_str.length);				/* This is used to remove the first new line <br> added above so the graph will look better. The same operation is repeated below too. */
A_td.innerHTML+=A_str;
A_prcN=(Math.round((plot[0]/TextStr.length)*1000))/10;
A_prc_td.innerHTML+=A_prcN+"%<br>-------";

for (count=0; count<plot[1]; count++) {B_str+="<BR>*";}
B_str=B_str.substring(4, B_str.length);	
B_td.innerHTML+=B_str;
B_prcN=(Math.round((plot[1]/TextStr.length)*1000))/10;
B_prc_td.innerHTML+=B_prcN+"%<br>-------";

for (count=0; count<plot[2]; count++) {C_str+="<BR>*";}
C_str=C_str.substring(4, C_str.length);	
C_td.innerHTML+=C_str;
C_prcN=(Math.round((plot[2]/TextStr.length)*1000))/10;
C_prc_td.innerHTML+=C_prcN+"%<br>-------";

for (count=0; count<plot[3]; count++) {D_str+="<BR>*";}
D_str=D_str.substring(4, D_str.length);	
D_td.innerHTML+=D_str;
D_prcN=(Math.round((plot[3]/TextStr.length)*1000))/10;
D_prc_td.innerHTML+=D_prcN+"%<br>-------";

for (count=0; count<plot[4]; count++) {E_str+="<BR>*";}
E_str=E_str.substring(4, E_str.length);	
E_td.innerHTML+=E_str;
E_prcN=(Math.round((plot[4]/TextStr.length)*1000))/10;
E_prc_td.innerHTML+=E_prcN+"%<br>-------";

for (count=0; count<plot[5]; count++) {F_str+="<BR>*";}
F_str=F_str.substring(4, F_str.length);	
F_td.innerHTML+=F_str;
F_prcN=(Math.round((plot[5]/TextStr.length)*1000))/10;
F_prc_td.innerHTML+=F_prcN+"%<br>-------";

for (count=0; count<plot[6]; count++) {G_str+="<BR>*";}
G_str=G_str.substring(4, G_str.length);	
G_td.innerHTML+=G_str;
G_prcN=(Math.round((plot[6]/TextStr.length)*1000))/10;
G_prc_td.innerHTML+=G_prcN+"%<br>-------";

for (count=0; count<plot[7]; count++) {H_str+="<BR>*";}
H_str=H_str.substring(4, H_str.length);	
H_td.innerHTML+=H_str;
H_prcN=(Math.round((plot[7]/TextStr.length)*1000))/10;
H_prc_td.innerHTML+=H_prcN+"%<br>-------";

for (count=0; count<plot[8]; count++) {I_str+="<BR>*";}
I_str=I_str.substring(4, I_str.length);	
I_td.innerHTML+=I_str;
I_prcN=(Math.round((plot[8]/TextStr.length)*1000))/10;
I_prc_td.innerHTML+=I_prcN+"%<br>-------";

for (count=0; count<plot[9]; count++) {J_str+="<BR>*";}
J_str=J_str.substring(4, J_str.length);	
J_td.innerHTML+=J_str;
J_prcN=(Math.round((plot[9]/TextStr.length)*1000))/10;
J_prc_td.innerHTML+=J_prcN+"%<br>-------";

for (count=0; count<plot[10]; count++) {K_str+="<BR>*";}
K_str=K_str.substring(4, K_str.length);	
K_td.innerHTML+=K_str;
K_prcN=(Math.round((plot[10]/TextStr.length)*1000))/10;
K_prc_td.innerHTML+=K_prcN+"%<br>-------";

for (count=0; count<plot[11]; count++) {L_str+="<BR>*";}
L_str=L_str.substring(4, L_str.length);	
L_td.innerHTML+=L_str;
L_prcN=(Math.round((plot[11]/TextStr.length)*1000))/10;
L_prc_td.innerHTML+=L_prcN+"%<br>-------";

for (count=0; count<plot[12]; count++) {M_str+="<BR>*";}
M_str=M_str.substring(4, M_str.length);	
M_td.innerHTML+=M_str;
M_prcN=(Math.round((plot[12]/TextStr.length)*1000))/10;
M_prc_td.innerHTML+=M_prcN+"%<br>-------";

for (count=0; count<plot[13]; count++) {N_str+="<BR>*";}
N_str=N_str.substring(4, N_str.length);	
N_td.innerHTML+=N_str;
N_prcN=(Math.round((plot[13]/TextStr.length)*1000))/10;
N_prc_td.innerHTML+=N_prcN+"%<br>-------";

for (count=0; count<plot[14]; count++) {O_str+="<BR>*";}
O_str=O_str.substring(4, O_str.length);	
O_td.innerHTML+=O_str;
O_prcN=(Math.round((plot[14]/TextStr.length)*1000))/10;
O_prc_td.innerHTML+=O_prcN+"%<br>-------";

for (count=0; count<plot[15]; count++) {P_str+="<BR>*";}
P_str=P_str.substring(4, P_str.length);	
P_td.innerHTML+=P_str;
P_prcN=(Math.round((plot[15]/TextStr.length)*1000))/10;
P_prc_td.innerHTML+=P_prcN+"%<br>-------";

for (count=0; count<plot[16]; count++) {Q_str+="<BR>*";}
Q_str=Q_str.substring(4, Q_str.length);	
Q_td.innerHTML+=Q_str;
Q_prcN=(Math.round((plot[16]/TextStr.length)*1000))/10;
Q_prc_td.innerHTML+=Q_prcN+"%<br>-------";

for (count=0; count<plot[17]; count++) {R_str+="<BR>*";}
R_str=R_str.substring(4, R_str.length);	
R_td.innerHTML+=R_str;
R_prcN=(Math.round((plot[17]/TextStr.length)*1000))/10;
R_prc_td.innerHTML+=R_prcN+"%<br>-------";

for (count=0; count<plot[18]; count++) {S_str+="<BR>*";}
S_str=S_str.substring(4, S_str.length);	
S_td.innerHTML+=S_str;
S_prcN=(Math.round((plot[18]/TextStr.length)*1000))/10;
S_prc_td.innerHTML+=S_prcN+"%<br>-------";

for (count=0; count<plot[19]; count++) {T_str+="<BR>*";}
T_str=T_str.substring(4, T_str.length);	
T_td.innerHTML+=T_str;
T_prcN=(Math.round((plot[19]/TextStr.length)*1000))/10;
T_prc_td.innerHTML+=T_prcN+"%<br>-------";

for (count=0; count<plot[20]; count++) {U_str+="<BR>*";}
U_str=U_str.substring(4, U_str.length);	
U_td.innerHTML+=U_str;
U_prcN=(Math.round((plot[20]/TextStr.length)*1000))/10;
U_prc_td.innerHTML+=U_prcN+"%<br>-------";

for (count=0; count<plot[21]; count++) {V_str+="<BR>*";}
V_str=V_str.substring(4, V_str.length);	
V_td.innerHTML+=V_str;
V_prcN=(Math.round((plot[21]/TextStr.length)*1000))/10;
V_prc_td.innerHTML+=V_prcN+"%<br>-------";

for (count=0; count<plot[22]; count++) {W_str+="<BR>*";}
W_str=W_str.substring(4, W_str.length);	
W_td.innerHTML+=W_str;
W_prcN=(Math.round((plot[22]/TextStr.length)*1000))/10;
W_prc_td.innerHTML+=W_prcN+"%<br>-------";

for (count=0; count<plot[23]; count++) {X_str+="<BR>*";}
X_str=X_str.substring(4, X_str.length);	
X_td.innerHTML+=X_str;
X_prcN=(Math.round((plot[23]/TextStr.length)*1000))/10;
X_prc_td.innerHTML+=X_prcN+"%<br>-------";

for (count=0; count<plot[24]; count++) {Y_str+="<BR>*";}
Y_str=Y_str.substring(4, Y_str.length);	
Y_td.innerHTML+=Y_str;
Y_prcN=(Math.round((plot[24]/TextStr.length)*1000))/10;
Y_prc_td.innerHTML+=Y_prcN+"%<br>-------";

for (count=0; count<plot[25]; count++) {Z_str+="<BR>*";}
Z_str=Z_str.substring(4, Z_str.length);	
Z_td.innerHTML+=Z_str;
Z_prcN=(Math.round((plot[25]/TextStr.length)*1000))/10;
Z_prc_td.innerHTML+=Z_prcN+"%<br>-------";

for (count=0; count<plot[26]; count++) {OTH_str+="<BR>*";}
OTH_str=OTH_str.substring(4, OTH_str.length);	
if (countWhat!=2) {OTH_td.innerHTML+=OTH_str;}					/* This IF here is to remove this cell from the chart, if we choose to count only the charaters from the alfa-bet "countWhat==2" ("abc" string declered above) */
OTH_prcN=(Math.round((plot[26]/TextStr.length)*1000))/10;
if (countWhat!=2) {OTH_prc_td.innerHTML+=OTH_prcN+"%<br>-------";}		/* This IF here is also to remove this cell from the chart, if we choose to count only the charaters from the alfa-bet "countWhat==2" ("abc" string declered above) */



// The FOR loop below is setting the variable "Max_NUM" to the value of the number of times that appear 
// the character that is most frequently present in the input string . 


for (count=0; count<plot.length; count++) {
	if (plot[count]>Max_NUM) {Max_NUM=plot[count];}
}


// The 2 IF statements below are used to set up an initial scale In this case 10. 
// It can be easily changed by changing the number 10 in the 3 places that it appears: 
// The first if statement, the FOR loop start point in the first IF statement, and the second IF statement
// For example: if you do not want to have an always present initial scale just change the number 10 to 0 in the above described 3 places. 
// Also this two IF statements are making sure that the number that is the  number of characters that are most represented in the text 
// will be the end of the chart if greater than the initial scale or it will appear in the scale below the initial point (10) in this case. 
// Also here we set a jump point that will appear in the scale which in this case is a numbers that ends with 0 or 5, but this can also be easily changed



if (Max_NUM<10) { 
	for (count=10; count>0; count--) {
		NUM_str_tmp=""+count;
		NUM_str_chr=NUM_str_tmp.charAt((NUM_str_tmp.length-1));
		if (NUM_str_chr==0 || NUM_str_chr==5) {
			NUM_str+="<br>"+count+"&nbsp;&nbsp;&nbsp;-|";
			continue;
		}
		if (count == Max_NUM) {
			NUM_str+="<br>"+count+"&nbsp;&nbsp;&nbsp;-|";
			continue;
		}
		NUM_str+="<br>&nbsp;&nbsp;&nbsp;|";
	}
}


if (Max_NUM>=10) { 
	for (count=Max_NUM; count>0;  count--) {
		NUM_str_tmp=""+count;
		NUM_str_chr=NUM_str_tmp.charAt((NUM_str_tmp.length-1));
		if (NUM_str_chr==0 || NUM_str_chr==5) {
			NUM_str+="<br>"+count+"&nbsp;&nbsp;&nbsp;-|";
			continue;
		}
		if (count == Max_NUM) {
			NUM_str+="<br>"+count+"&nbsp;&nbsp;&nbsp;-|";
			continue;
		}
		NUM_str+="<br>&nbsp;&nbsp;&nbsp;|";
	}
}  


NUM_str=NUM_str.substring(4, NUM_str.length);	/* This is used to remove the first new line <br> added above so the graph will look better */

NUM_td.innerHTML+=NUM_str;

return true;
}









function reset1() {

// This function is used to reset the table cells innerHTML and the text area to the initial values.


var A_td = document.getElementById("A");
A_td.innerHTML="";
var A_prc_td = document.getElementById("A_prc");
A_prc_td.innerHTML="0%<br>-------";

var B_td = document.getElementById("B");
B_td.innerHTML="";
var B_prc_td = document.getElementById("B_prc");
B_prc_td.innerHTML="0%<br>-------";

var C_td = document.getElementById("C");
C_td.innerHTML="";
var C_prc_td = document.getElementById("C_prc");
C_prc_td.innerHTML="0%<br>-------";

var D_td = document.getElementById("D");
D_td.innerHTML="";
var D_prc_td = document.getElementById("D_prc");
D_prc_td.innerHTML="0%<br>-------";

var E_td = document.getElementById("E");
E_td.innerHTML="";
var E_prc_td = document.getElementById("E_prc");
E_prc_td.innerHTML="0%<br>-------";

var F_td = document.getElementById("F");
F_td.innerHTML="";
var F_prc_td = document.getElementById("F_prc");
F_prc_td.innerHTML="0%<br>-------";

var G_str="";
var G_td = document.getElementById("G");
G_td.innerHTML="";
var G_prc_td = document.getElementById("G_prc");
G_prc_td.innerHTML="0%<br>-------";

var H_td = document.getElementById("H");
H_td.innerHTML="";
var H_prc_td = document.getElementById("H_prc");
H_prc_td.innerHTML="0%<br>-------";

var I_td = document.getElementById("I");
I_td.innerHTML="";
var I_prc_td = document.getElementById("I_prc");
I_prc_td.innerHTML="0%<br>-------";

var J_td = document.getElementById("J");
J_td.innerHTML="";
var J_prc_td = document.getElementById("J_prc");
J_prc_td.innerHTML="0%<br>-------";

var K_td = document.getElementById("K");
K_td.innerHTML="";
var K_prc_td = document.getElementById("K_prc");
K_prc_td.innerHTML="0%<br>-------";

var L_td = document.getElementById("L");
L_td.innerHTML="";
var L_prc_td = document.getElementById("L_prc");
L_prc_td.innerHTML="0%<br>-------";

var M_td = document.getElementById("M");
M_td.innerHTML="";
var M_prc_td = document.getElementById("M_prc");
M_prc_td.innerHTML="0%<br>-------";

var N_td = document.getElementById("N");
N_td.innerHTML="";
var N_prc_td = document.getElementById("N_prc");
N_prc_td.innerHTML="0%<br>-------";

var O_td = document.getElementById("O");
O_td.innerHTML="";
var O_prc_td = document.getElementById("O_prc");
O_prc_td.innerHTML="0%<br>-------";

var P_td = document.getElementById("P");
P_td.innerHTML="";
var P_prc_td = document.getElementById("P_prc");
P_prc_td.innerHTML="0%<br>-------";

var Q_td = document.getElementById("Q");
Q_td.innerHTML="";
var Q_prc_td = document.getElementById("Q_prc");
Q_prc_td.innerHTML="0%<br>-------";

var R_td = document.getElementById("R");
R_td.innerHTML="";
var R_prc_td = document.getElementById("R_prc");
R_prc_td.innerHTML="0%<br>-------";

var S_td = document.getElementById("S");
S_td.innerHTML="";
var S_prc_td = document.getElementById("S_prc");
S_prc_td.innerHTML="0%<br>-------";

var T_td = document.getElementById("T");
T_td.innerHTML="";
var T_prc_td = document.getElementById("T_prc");
T_prc_td.innerHTML="0%<br>-------";

var U_td = document.getElementById("U");
U_td.innerHTML="";
var U_prc_td = document.getElementById("U_prc");
U_prc_td.innerHTML="0%<br>-------";

var V_td = document.getElementById("V");
V_td.innerHTML="";
var V_prc_td = document.getElementById("V_prc");
V_prc_td.innerHTML="0%<br>-------";

var W_td = document.getElementById("W");
W_td.innerHTML="";
var W_prc_td = document.getElementById("W_prc");
W_prc_td.innerHTML="0%<br>-------";

var X_td = document.getElementById("X");
X_td.innerHTML="";
var X_prc_td = document.getElementById("X_prc");
X_prc_td.innerHTML="0%<br>-------";

var Y_td = document.getElementById("Y");
Y_td.innerHTML="";
var Y_prc_td = document.getElementById("Y_prc");
Y_prc_td.innerHTML="0%<br>-------";

var Z_td = document.getElementById("Z");
Z_td.innerHTML="";
var Z_prc_td = document.getElementById("Z_prc");
Z_prc_td.innerHTML="0%<br>-------";

var OTH_td = document.getElementById("OTH");
OTH_td.innerHTML="";
var OTH_prc_td = document.getElementById("OTH_prc");
OTH_prc_td.innerHTML="0%<br>-------";

var NUM_td=document.getElementById("NUM");
NUM_td.innerHTML="";

var OTH1_td=document.getElementById("OTH1");
OTH1_td.innerHTML="-------<br>OTH";

document.Text.String.value="";

return true;

}




