//Variable, which containes the choice of CaseStudy Sorting criteria
var matrix_CST_Sorting = "country";
//Variable, which containes the choice of Retrofit measure sorting criteria
var matrix_RM_Sorting = "main";


//shows the matric according to the selected criteria
function showMatrix(){
	alert (matrix_CST_Sorting);
	alert (matrix_RM_Sorting);

}

function changeSelCST(){
	matrix_CST_Sorting = document.Selection.selectCST.options[document.Selection.selectCST.selectedIndex].value
//	alert (matrix_CST_Sorting);
	showMatrix();
}

function changeSelRM(){
	matrix_RM_Sorting = document.Selection.selectRM.options[document.Selection.selectRM.selectedIndex].value
//	alert (matrix_RM_Sorting);
	showMatrix();
}



function changePic(PicName,PicSrc) {
	document.images[PicName].src = PicSrc;
}
function changePicUp(){
	i = i + 1;
	if (i==src.length) {i=0;}
	document.images["demopic"].src = src[i];
	document.images["demotext"].src = text[i];	
}
function changePicDown (){
	i = i - 1;
	if (i==-1) {i =src.length -1 ;}
	document.images["demopic"].src = src[i];
	document.images["demotext"].src = text[i];	
}

function openNewWindow(file) {
  f1 = window.open(file,'newWindow',"width=820,height=600,resizable=yes,scrollbars=yes");
  f1.focus();
}
