﻿    function openWin(form){

	
	var x=document.getElementById('myTable2').insertRow(2);

	var y1=x.insertCell(0);
	var x=document.getElementById('myTable2').insertRow(3);
	var y3=x.insertCell(0);

	

	
	
	var x=document.getElementById('myTable').insertRow(2);
	
<!--	var y1=x.insertCell(0);  -->
	var y2=x.insertCell(0);
<!--	var y3=x.insertCell(2);  -->
	var y4=x.insertCell(1);
	var y5=x.insertCell(2);
	var y6=x.insertCell(3);
	var y7=x.insertCell(4);
	var y8=x.insertCell(5);
	var y9=x.insertCell(6);
	var y10=x.insertCell(7);
	
<!--	y1.align="center";  -->
	y2.align="center";
<!--	y3.align="center";   -->
	y4.align="center";
	y5.align="center";
	y6.align="center";
	y7.align="center";
	y8.align="center";
	y9.align="center";
	y10.align="center";
	
	
	

<!--	y1.innerHTML="Aлбанија-Србија";  -->
	y2.innerHTML="25";
<!--	y3.innerHTML="01.01.-31.01.2009";  -->
	y4.innerHTML="115";
	y5.innerHTML="25";
	y6.innerHTML="8";
	y7.innerHTML="1";
	y8.innerHTML="11";
	y9.innerHTML="0.2";
	y10.innerHTML="ДA";








	var x=document.getElementById("mySelect");
	var MyGraph = new XYGraph(); // define new XYGraph object
	var MyLine = new XYLine();   // define new XYLine object
	 var MyLinija = new XYLinija();   // define new XYLine object

	// define x,y coordinate points to graph



if(x.selectedIndex==0){

	
	
	y1.innerHTML="Граница/Смер: Албанија-Србија"; 
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";  
	
 
	y2.innerHTML="25";
	y4.innerHTML="115";
	y5.innerHTML="25";
	y6.innerHTML="8";
	y7.innerHTML="1";
	y8.innerHTML="11";
	y9.innerHTML="0.2";
	y10.innerHTML="ДA";
								
	var i=document.getElementById('myTable').deleteRow(1);
	
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
			

	MyLine.x = [20, 25, 35, 60, 65, 75, 80, 90, 95, 105, 115];
	MyLine.y = [0.21, 0.2, 0.12, 0.06, 0.05, 0.03, 0.03, 0.02, 0.02, 0.01, 0.01];

	MyLine.x.labelcolor="#CD2626";
var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [25,25];
	MyLinija.y = [0,0.2];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,25]; 

	MyLinija1.y = [0.2,0.2];

	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 25;
	MyLabel.y = 0.2;
	MyLabel.rotation = 75;
	MyLabel.length = 20;
	
	// Assign a label text

	MyLabel.label = "(25MW,0.2€/MWh)";

}
if(x.selectedIndex==1){



	y1.innerHTML="Граница/Смер: Босна и Херцеговина-Србија";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	

	y2.innerHTML="50";
	y4.innerHTML="280";
	y5.innerHTML="50";
	y6.innerHTML="12";
	y7.innerHTML="1";
	y8.innerHTML="26";
	y9.innerHTML="0.84";
	y10.innerHTML="ДA";
	var i=document.getElementById('myTable').deleteRow(1);
		
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	

	
	MyLine.x = [30, 50, 60, 65, 75, 80, 90, 95, 105, 110, 130, 135, 155, 165, 175, 180, 185, 190, 220, 235, 245, 255, 260, 265, 270, 280];
	MyLine.y = [0.85, 0.84, 0.52, 0.45, 0.42, 0.36, 0.33, 0.31, 0.27, 0.25, 0.22, 0.15, 0.13, 0.12, 0.11, 0.1, 0.1, 0.07, 0.06, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.01];


var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.84];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.84,0.84];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.84;
	MyLabel.rotation = 75;
	MyLabel.length = 20;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.84€/MWh)";

}
if(x.selectedIndex==2){

	y1.innerHTML="Граница/Смер: Бугарска-Србија";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="325";
	y5.innerHTML="50";
	y6.innerHTML="14";
	y7.innerHTML="2";
	y8.innerHTML="31";
	y9.innerHTML="0.86";
	y10.innerHTML="ДA";
	
	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	

	MyLine.x = [15, 30, 35, 50, 55, 60, 90, 100, 120, 140, 150, 160, 165, 175, 185, 190, 200, 205, 215, 240, 245, 250, 260, 265, 275, 280, 290, 295, 305, 310, 320, 325];
	MyLine.y = [1.57, 1.27, 1.13, 0.86, 0.86, 0.8, 0.74, 0.74, 0.73, 0.55, 0.55, 0.46, 0.41, 0.38, 0.36, 0.35, 0.33, 0.32, 0.31, 0.25, 0.22, 0.21, 0.17, 0.17, 0.15, 0.13, 0.11, 0.1, 0.06, 0.03, 0.02, 0.01 ];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.86];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.86,0.86];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.86;
	MyLabel.rotation = 75;
	MyLabel.length = 20;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.86€/MWh)";

}

if(x.selectedIndex==3){

	y1.innerHTML="Граница/Смер: Хрватска-Србија";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="190";
	y5.innerHTML="49";
	y6.innerHTML="8";
	y7.innerHTML="4";
	y8.innerHTML="17";
	y9.innerHTML="0.28";
	y10.innerHTML="ДA";
	
	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	

	MyLine.x = [5, 10, 20, 35, 45, 75, 95, 105, 115, 125, 140, 150, 160, 165, 175, 185, 190];
	MyLine.y = [0.63, 0.42, 0.36, 0.31, 0.28, 0.28, 0.27, 0.26, 0.21, 0.11, 0.06, 0.05, 0.05, 0.05, 0.02, 0.01, 0.01];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [49,49];
	MyLinija.y = [0.28,0.28];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,49]; 

	MyLinija1.y = [0.28,0.28];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 49;
	MyLabel.y = 0.28;
	MyLabel.rotation = 45;
	MyLabel.length = 0;
	
	// Assign a label text

	MyLabel.label = "(49MW,0.28€/MWh)";

}

if(x.selectedIndex==4){
	
	y1.innerHTML="Граница/Смер: Мађарска-Србија";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="415";
	y5.innerHTML="50";
	y6.innerHTML="16";
	y7.innerHTML="5";
	y8.innerHTML="48";
	y9.innerHTML="0.39";
	y10.innerHTML="ДA";
	
	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	

	MyLine.x = [25, 35, 40, 45, 50, 60, 70, 80, 85, 95, 105, 115, 125, 130, 140, 145, 150, 170, 180, 185, 195, 205, 210, 220, 225, 235, 240, 250, 265, 275, 280, 285, 300, 310, 320, 330, 340, 345, 355, 360, 365, 375, 380, 385, 390, 400, 410, 415];
	MyLine.y = [0.52, 0.48, 0.44, 0.43, 0.39, 0.36, 0.36, 0.35, 0.35, 0.32, 0.29, 0.28, 0.27, 0.27, 0.26, 0.26, 0.25, 0.22, 0.22, 0.22, 0.21, 0.21, 0.21, 0.2, 0.2, 0.19, 0.18, 0.17, 0.16, 0.16, 0.15, 0.15, 0.12, 0.12, 0.12, 0.11, 0.11, 0.11, 0.1, 0.1, 0.1, 0.05, 0.05, 0.05, 0.05, 0.02, 0.01, 0.01 ];



	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.39];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.39,0.39];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.39;
	MyLabel.rotation = 75;
	MyLabel.length = 25;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.39€/MWh)";

}

if(x.selectedIndex==5){
	
	y1.innerHTML="Граница/Смер: Црна Гора-Србија";
	y2.innerHTML="55";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="225";
	y5.innerHTML="55";
	y6.innerHTML="10";
	y7.innerHTML="1";
	y8.innerHTML="17";
	y9.innerHTML="0.65";
	y10.innerHTML="ДA";
	
	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);


	MyLine.x = [30, 50, 55, 65, 75, 85, 105, 135, 145, 165, 175, 185, 190, 200, 210, 220, 225];
	MyLine.y = [0.75, 0.73, 0.65, 0.13, 0.09, 0.08, 0.07, 0.06, 0.06, 0.03, 0.03, 0.02, 0.02, 0.01, 0.01, 0.01, 0.01];



	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [55,55];
	MyLinija.y = [0,0.65];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,55]; 

	MyLinija1.y = [0.65,0.65];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 55;
	MyLabel.y = 0.65;
	MyLabel.rotation = 75;
	MyLabel.length = 23;
	
	// Assign a label text

	MyLabel.label = "(55MW,0.65€/MWh)";

}


if(x.selectedIndex==6){
	
	y1.innerHTML="Граница/Смер: Македонија-Србија";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="200";
	y5.innerHTML="50";
	y6.innerHTML="12";
	y7.innerHTML="2";
	y8.innerHTML="21";
	y9.innerHTML="0.23";
	y10.innerHTML="ДA";
	
	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);


	MyLine.x = [20, 40, 50, 55, 65, 70, 85, 95, 100, 110, 120, 130, 135, 140, 150, 160, 170, 180, 190, 195, 200];
	MyLine.y = [0.57, 0.37, 0.23, 0.18, 0.15, 0.14, 0.11, 0.09, 0.08, 0.07, 0.03, 0.03, 0.03, 0.03, 0.02, 0.02, 0.02, 0.01, 0.01, 0.01, 0.01];



	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.23];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.23,0.23];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.23;
	MyLabel.rotation = 75;
	MyLabel.length = 23;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.23€/MWh)";

}

if(x.selectedIndex==7){
	
	y1.innerHTML="Граница/Смер: Румунија-Србија";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="325";
	y5.innerHTML="50";
	y6.innerHTML="14";
	y7.innerHTML="5";
	y8.innerHTML="36";
	y9.innerHTML="0.73";
	y10.innerHTML="ДA";
	
	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);


	MyLine.x = [10, 20, 25, 35, 45, 50, 55, 85, 95, 105, 110, 130, 140, 145, 155, 160, 175, 185, 195, 205, 215, 225, 230, 235, 240, 245, 260, 270, 280, 285, 295, 300, 305, 315, 320, 325];
	MyLine.y = [1.25, 1.01, 0.88, 0.75, 0.74, 0.73, 0.71, 0.57, 0.55, 0.55, 0.55, 0.51, 0.45, 0.43, 0.37, 0.35, 0.32, 0.3, 0.29, 0.26, 0.22, 0.21, 0.21, 0.21, 0.21, 0.19, 0.16, 0.15, 0.15, 0.15, 0.13, 0.13, 0.09, 0.07, 0.02, 0.02];



	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.73];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.73,0.73];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.73;
	MyLabel.rotation = 45;
	MyLabel.length = 7;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.73€/MWh)";

}


if(x.selectedIndex==8){
	
	y1.innerHTML="Граница/Смер: Србија-Албанија";
	y2.innerHTML="25";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2009";
	y4.innerHTML="187";
	y5.innerHTML="25";
	y6.innerHTML="12";
	y7.innerHTML="1";
	y8.innerHTML="25";
	y9.innerHTML="3.21";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	

	MyLine.x = [25, 50, 55, 60, 65, 75, 85, 90, 95, 105, 115, 120, 125, 130, 135, 140, 145, 155, 160, 165, 170, 175, 180, 185, 187];
	MyLine.y = [3.21, 2.7, 2.53, 2.02, 1.35, 1.15, 1.01, 0.71, 0.65, 0.61, 0.61, 0.61, 0.51, 0.4, 0.31, 0.26, 0.08, 0.07, 0.07, 0.05, 0.03, 0.03, 0.02, 0.01, 0.01];

	

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [25,25];
	MyLinija.y = [0,3.21];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,25]; 

	MyLinija1.y = [3.21,3.21];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 25;
	MyLabel.y = 3.21;
	MyLabel.rotation = 45;
	MyLabel.length = 0;
	
	// Assign a label text

	MyLabel.label = "(25MW,3.21€/MWh)";

}
if(x.selectedIndex==9){

	y1.innerHTML="Граница/Смер: Србија-Босна и Херцеговина";
	y2.innerHTML="25";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="135";
	y5.innerHTML="24";
	y6.innerHTML="9";
	y7.innerHTML="2";
	y8.innerHTML="15";
	y9.innerHTML="0.27";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	
	MyLine.x = [15, 40, 45, 55, 60, 65, 80, 85, 90, 100, 105, 115, 120, 130, 135];
	MyLine.y = [0.27 ,0.27, 0.23, 0.17, 0.12, 0.09, 0.07, 0.06, 0.05, 0.03, 0.03, 0.02, 0.02, 0.01, 0.01];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [24,24];
	MyLinija.y = [0,0.27];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,24]; 

	MyLinija1.y = [0.27,0.27];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 24;
	MyLabel.y = 0.27;
	MyLabel.rotation = 45;
	MyLabel.length = 5;
	
	// Assign a label text

	MyLabel.label = "(24MW,0.27€/MWh)";

}



if(x.selectedIndex==10){

	y1.innerHTML="Граница/Смер: Србија-Бугарска";
	y2.innerHTML="25";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="210";
	y5.innerHTML="25";
	y6.innerHTML="15";
	y7.innerHTML="1";
	y8.innerHTML="30";
	y9.innerHTML="0.88";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	
	MyLine.x = [5, 10, 15, 20, 25, 50, 60, 65, 70, 75, 80, 85, 95, 100, 105, 115, 120, 125, 150, 155, 160, 165, 170, 175, 180, 185, 190, 200, 205, 210];
	MyLine.y = [1.32, 1.2, 0.97, 0.92, 0.88, 0.77, 0.55, 0.52, 0.38, 0.36, 0.35, 0.33, 0.27, 0.27, 0.23, 0.21, 0.21, 0.21, 0.2, 0.18, 0.16, 0.13, 0.13, 0.11, 0.1, 0.1, 0.07, 0.05, 0.03, 0.01 ];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [25,25];
	MyLinija.y = [0,0.88];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,25]; 

	MyLinija1.y = [0.88,0.88];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 25;
	MyLabel.y = 0.88;
	MyLabel.rotation = 75;
	MyLabel.length = 20;
	
	// Assign a label text

	MyLabel.label = "(25MW,0.88€/MWh)";

}



if(x.selectedIndex==11){

	y1.innerHTML="Граница/Смер: Србија-Хрватска";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="250";
	y5.innerHTML="50";
	y6.innerHTML="11";
	y7.innerHTML="1";
	y8.innerHTML="26";
	y9.innerHTML="0.76";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
        var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	
	
	MyLine.x = [30, 50, 55, 65, 75, 80, 85, 95, 100, 105, 115, 125, 130, 145, 155, 160, 170, 180, 190, 195, 215, 220, 230, 240, 245, 250];
	MyLine.y = [0.77, 0.76, 0.59, 0.56, 0.53, 0.53, 0.47, 0.45, 0.37, 0.32, 0.31, 0.31, 0.27, 0.26, 0.22, 0.2, 0.16, 0.12, 0.11, 0.11, 0.06, 0.05, 0.04, 0.02, 0.01, 0.01 ];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.76];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.76,0.76];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.76;
	MyLabel.rotation = 75;
	MyLabel.length = 23;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.76€/MWh)";

}


if(x.selectedIndex==12){

	y1.innerHTML="Граница/Смер: Србија-Мађарска";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="415";
	y5.innerHTML="50";
	y6.innerHTML="16";
	y7.innerHTML="3";
	y8.innerHTML="49";
	y9.innerHTML="0.74";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	

	MyLine.x = [10, 20, 40, 50, 55, 65, 75, 85, 90, 100, 105, 130, 135, 145, 150, 155, 165, 170, 180, 185, 190, 195, 205, 215, 220, 230, 235, 245, 255, 265, 275, 280, 290, 295, 300, 320, 330, 335, 355, 365, 375, 380, 385, 390, 395, 400, 405, 410, 415];
	MyLine.y = [0.92, 0.78, 0.77, 0.74, 0.69, 0.67, 0.66, 0.57, 0.57, 0.56, 0.54, 0.52, 0.47, 0.46, 0.45, 0.43, 0.39, 0.37, 0.35, 0.33, 0.33, 0.33, 0.31, 0.31, 0.28, 0.27, 0.27, 0.24, 0.22, 0.22, 0.21, 0.21, 0.18, 0.18, 0.17, 0.16, 0.15, 0.14, 0.12, 0.12, 0.11, 0.11, 0.1, 0.1, 0.07, 0.05, 0.05, 0.05, 0.04 ];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.74];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.74,0.74];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.74;
	MyLabel.rotation = 75;
	MyLabel.length = 23;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.74€/MWh)";

}

if(x.selectedIndex==13){

	y1.innerHTML="Граница/Смер: Србија-Црна Гора";
	y2.innerHTML="25";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="130";
	y5.innerHTML="24";
	y6.innerHTML="9";
	y7.innerHTML="4";
	y8.innerHTML="19";
	y9.innerHTML="0.27";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);	

	MyLine.x = [5, 10, 15, 20, 24 ,25, 35, 40, 45, 55, 60, 65, 80, 85, 95, 100, 110, 120, 125, 130];
	MyLine.y = [0.36, 0.33, 0.31, 0.3, 0.27, 0.27, 0.27, 0.25, 0.23, 0.21, 0.2, 0.16, 0.13, 0.13, 0.11, 0.11, 0.03, 0.03, 0.02, 0.01 ];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [24,24];
	MyLinija.y = [0,0.27];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,24]; 

	MyLinija1.y = [0.27,0.27];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 24;
	MyLabel.y = 0.27;
	MyLabel.rotation = 75;
	MyLabel.length = 20;
	
	// Assign a label text

	MyLabel.label = "(24MW,0.27€/MWh)";

}


if(x.selectedIndex==14){

	y1.innerHTML="Граница/Смер: Србија-Македонија";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="270";
	y5.innerHTML="50";
	y6.innerHTML="13";
	y7.innerHTML="3";
	y8.innerHTML="29";
	y9.innerHTML="0.89";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);
	

	MyLine.x = [10, 20, 30, 35, 45, 50, 60, 70, 80, 90, 110, 120, 125, 135, 165, 170, 175, 180, 190, 195, 205, 210, 220, 230, 240, 250, 255, 265, 270];
	MyLine.y = [1.25, 1.15, 1.15, 1.02, 0.9, 0.89, 0.8, 0.71, 0.7, 0.61, 0.57, 0.53, 0.52, 0.51, 0.37, 0.35, 0.33, 0.33, 0.28, 0.25, 0.21, 0.18, 0.16, 0.11, 0.03, 0.03, 0.03, 0.02, 0.01 ];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.89];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.89,0.89];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.89;
	MyLabel.rotation = 75;
	MyLabel.length = 23;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.89€/MWh)";

}


if(x.selectedIndex==15){

	y1.innerHTML="Граница/Смер: Србија-Румунија";
	y2.innerHTML="50";
	y3.innerHTML="Аукциони период: 01.01.-31.01.2010";
	y4.innerHTML="225";
	y5.innerHTML="50";
	y6.innerHTML="12";
	y7.innerHTML="6";
	y8.innerHTML="27";
	y9.innerHTML="0.13";
	y10.innerHTML="ДA";
	

	var i=document.getElementById('myTable').deleteRow(1);
	var i=document.getElementById('myTable2').deleteRow(1);	
	var i=document.getElementById('myTable2').deleteRow(0);
	

	MyLine.x = [10, 25, 30, 35, 45, 50, 60, 65, 75, 80, 85, 95, 100, 110, 115, 125, 130, 135, 145, 160, 175, 185, 200, 210, 215, 220, 225];
	MyLine.y = [0.23, 0.16, 0.16, 0.15, 0.13, 0.13, 0.12, 0.12, 0.11, 0.1, 0.09, 0.08, 0.08, 0.07, 0.07, 0.06, 0.06, 0.05, 0.04, 0.03, 0.03, 0.03, 0.02, 0.01, 0.01, 0.01, 0.01];

	MyGraph.xaxis="Капацитет (MW)";
	MyGraph.yaxis="Цена (€/MWh)";

	var MyLinija = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	MyLinija.x = [50,50];
	MyLinija.y = [0,0.13];

	

	var MyLinija1 = new XYLinija();   // define new XYLine object
 

	// define x,y coordinate points to graph
	

	MyLinija1.x  = [0,50]; 

	MyLinija1.y = [0.13,0.13];




	var MyLabel = new Label(); // 
	

	// x and y coordinate values of the label origin

	MyLabel.x = 50;
	MyLabel.y = 0.13;
	MyLabel.rotation = 60;
	MyLabel.length = 13;
	
	// Assign a label text

	MyLabel.label = "(50MW,0.13€/MWh)";

}

	// Assign VML properties for the label

	MyLabel.labelcolor="#CD2626";	// label color
	MyLabel.labelsize="8";	// label size in "pt"

	MyLabel.VMLpointshapetype="circle";	// [ diamond, square, triangle, circle, x, none ]

	MyLabel.pointsize="5";	 	// shape display size in "pt"
	MyLabel.pointfillcolor="#CD2626";	// point fill color
	MyLabel.pointstrokecolor="CD2626";	// point line color
	MyLabel.mouseoverlabels=true;  // will show the label at each point when mouse is over it
	
//window.location.reload();


	MyGraph.Plot(MyLine);
	MyGraph.Plot(MyLinija);
	MyGraph.Plot(MyLinija1);
	MyGraph.Drawlabel(MyLabel);
        graphdiv.innerHTML=MyGraph;


	
	
		
  }
