var nLastIndexBlock;
function fIndexesBlock(nBlockID, clsTab){
	if(nLastIndexBlock){
		document.getElementById("oBlockTab"+ nLastIndexBlock).className=clsTab;
		document.getElementById("oBlockData"+ nLastIndexBlock).style.display="none";
	}
	document.getElementById("oBlockTab"+ nBlockID).className=clsTab + "_selected";
	document.getElementById("oBlockData"+ nBlockID).style.display="block";
	nLastIndexBlock=nBlockID;
}

function add_new_line() {
    var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
    if (is_chrome) {
        document.write("<br />");
    }
} 