/* if ( hideLinguetta!= null)
 {
    if(hideLinguetta!=true || hideLinguetta!=false )
    {hideLinguetta = null;}
 }*/
 /*var firstTimeLinguetta;*/
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



function changeTab(tabId, tabNum) {
    for (i = 0; i < tabNum; i++) {
        if (tabId == i) {
            document.getElementById('tb_' + i).className = 'tab_button_active';
            document.getElementById('tc_' + i).style.display = 'block';
        } else {
            document.getElementById('tb_' + i).className = 'tab_button';
            document.getElementById('tc_' + i).style.display = 'none';
        }
    }
}



// FORM ...

function inputFocus(inputId) {
	input = document.getElementById(inputId + "_container");
	input.style.backgroundPosition = "-10px -100px";
}

function inputBlur(inputId) {
	input = document.getElementById(inputId + "_container");
	input.style.backgroundPosition = "-10px -10px";
}

function selectFocus(selectId) {
	select = document.getElementById(selectId + "_container");
	select.style.backgroundPosition = "-10px -234px";
	options = document.getElementById(selectId + "_options");
	options.style.display = "block";
}

function selectBlur(selectId) {
	select = document.getElementById(selectId + "_container");
	select.style.backgroundPosition = "-10px -145px";
	options = document.getElementById(selectId + "_options");
	options.style.display = "none";
}

function selectOptionClick(selectId, text, value) {
	selectText = document.getElementById(selectId + "_text");
	selectValue = document.getElementById(selectId);
	options = document.getElementById(selectId + "_options");
	options.style.display = "none";
	selectText.value = text;
	selectValue.value = value;
}


