// JavaScript Document

function show_all_text(newsID,lang)
{
var address="content.php?men_Id="+1+"&newsID="+newsID+"&lang="+lang;
window.open(address,'_self')
}

function Change_language(langID,fileName,menuID)
{	
	if(menuID!=1)
	{
	var adres=fileName+"?lang="+langID+"&men_Id="+menuID;
	}
	else
	{
	var adres="index.php?lang="+langID+"&men_Id="+menuID;
	}
	window.open(adres,'_self');
}


function pass_content(ID,langID,menid)
{
	
var adres="content.php?men_Id="+ID+"&lang="+langID+"&menId="+menid;
window.open(adres,"_self");
}



function submitform()
{
document.pool_form.submit();

}

function subform()
{

document.form_Order.submit();

}
function subform1()
{

document.form_prodact.submit();

}

function show_contact(F_name,langID) 
{
var adress=F_name+".php?lang="+langID;
window.open(adress,"_self");

}

function hide_all_div()
{

document.getElementById('menuContainer').style.visibility="hidden";
}
function f(id){
document.getElementById(id).style.color='#FFFFFF';
if(id==1){document.getElementById('1').style.backgroundImage="url(img/qve_menu_gr.png)";}
else if(id==2){document.getElementById('2').style.backgroundImage="url(img/qve_menu_gr.png)";}
else if(id==3){document.getElementById('3').style.backgroundImage="url(img/qve_menu_1.png)";}
else if(id==4){document.getElementById('4').style.backgroundImage="url(img/qve_menu_1.png)";}
else if(id>20&&id<32){document.getElementById(id).style.backgroundImage="url(img/qve_menu_2_gr.png)";}
else 
   document.getElementById(id).style.backgroundImage="url(img/qve_menu_2_gr_ar.png)";

}
function g(id){
document.getElementById(id).style.color='#009900';
if(id>20&&id<32)
{
document.getElementById(id).style.backgroundImage="url(img/qve_menu_2.png)";

}
if(id>10&&id<18)
{
document.getElementById(id).style.backgroundImage="url(img/qve_menu.png)";
}
if(id==1)
{
document.getElementById(id).style.backgroundImage="url(img/glosmenu.png)";
}
if(id==2)
{
document.getElementById(id).style.backgroundImage="url(img/glosmenu.png)";
}
if(id==3)
{
document.getElementById(id).style.backgroundImage="url(img/qve_menu.png)";
}
if(id==4)
{
document.getElementById(id).style.backgroundImage="url(img/qve_menu.png)";
}
}

function hide_div()
{
document.getElementById('down_menu_1').style.visibility="hidden";
}


function show_main_menu()
{
document.getElementById('menuContainer').style.visibility="visible";

}
function show(){
document.getElementById('menuContainer').style.visibility="visible";
}
function hide(){
document.getElementById('menuContainer').style.visibility="hidden";
}

function GetDebt(phone)
{
    window.open("http://global-erty.net/statement.php?operation=1&phone=" + phone,"Indeptness","menubar=no,width=320,height=300,toolbar=no");
}

function ShowPaymentsPlaces()
{
    my_window=window.open("paymentplaces.htm","გადახდის_წერტილები","menubar=0,resizable=0,width=350,height=300");
}

function ShowHowToGetPass()
{
    my_window=window.open("howtogetpass.htm","პაროლის_მიღება","menubar=0,resizable=0,width=350,height=180");
}

function searchKeyPress(e) {
     if (window.event) { e = window.event; }
                if (e.keyCode == 13)
                {
                        document.getElementById('checkdebt').click();
                }
}

function GetStatement(phone,password)
{
    window.open("http://global-erty.net/statement.php?operation=2&phone=" + phone + "&password=" + password,"Statement","menubar=no,width=700,height=600,toolbar=no,scrollbars=1,resizable=1");
}

function Pay()
{
    document.location = "https://www.ipay.ge/navigateService.servlet?catId=category.telecommunicationandinternet.key&serId=bog-comp-globalone-web";
}
