﻿//<!-- JavaScript Document

function makeEmpty(tid)
{
if (document.getElementById(tid).value=='Enter Your Email'){
	document.getElementById(tid).value='';
	}
}


function makeFill(tid)
{
if (document.getElementById(tid).value==''){
	document.getElementById(tid).value='Enter Your Email';
	}
}


//---------------------------------------------------------------------------


function gaxsna()
{
var w=window.open("", "axali", "width=400, scrollbars=yes, location=no, menubar=no, status=no, toolbar=no, resizable=no,top=2,left=2");
}


function openNewWin (url, w, h)
{
var w=window.open(url, "newPhoto", "width="+w+", height='+h+', scrollbars=yes, location=no, menubar=no, status=no, toolbar=no, resizable=yes,top=2,left=2");
}


//---------------------------Show Comment Of The Signiture------------------------


function showComment(id1)
{
if (document.getElementById(id1).style.display=="none") document.getElementById(id1).style.display="block";
else document.getElementById(id1).style.display="none";
}


//------------------------------Change Time--------------------------

var tve_en=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var tve_ge=new Array("იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ");
var tve_ru=new Array("Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек");
var tve_ab=new Array("F;m",":`f","{`f","Vif","Kfq","Hfi","([s","Yfy","W`s",":m0","F,q","([s");
var D;
var weli;
var tve;
var dge;
var saati;
var wuti;
var tarigi;

function changeTimeen(dro)
{
D=new Date();
weli=D.getFullYear();
tve=D.getMonth();
dge=D.getDate();
saati=D.getHours();
wuti=D.getMinutes();

if (wuti<10) wuti="0"+wuti;

tarigi=dge+" "+tve_en[parseInt(tve)]+". "+weli+", "+saati+":"+wuti;
document.getElementById(dro).innerHTML=tarigi;
}


function changeTimege(dro)
{
D=new Date();
weli=D.getFullYear();
tve=D.getMonth();
dge=D.getDate();
saati=D.getHours();
wuti=D.getMinutes();

if (wuti<10) wuti="0"+wuti;

tarigi=dge+" "+tve_ge[parseInt(tve)]+". "+weli+", "+saati+":"+wuti;
document.getElementById(dro).innerHTML=tarigi;
}


function changeTimeru(dro)
{
D=new Date();
weli=D.getFullYear();
tve=D.getMonth();
dge=D.getDate();
saati=D.getHours();
wuti=D.getMinutes();

if (wuti<10) wuti="0"+wuti;

tarigi=dge+" "+tve_ru[parseInt(tve)]+". "+weli+", "+saati+":"+wuti;
document.getElementById(dro).innerHTML=tarigi;
}


function changeTimeab(dro)
{
D=new Date();
weli=D.getFullYear();
tve=D.getMonth();
dge=D.getDate();
saati=D.getHours();
wuti=D.getMinutes();

if (wuti<10) wuti="0"+wuti;

tarigi=dge+" <font face='amra'>"+tve_ab[parseInt(tve)]+"</font>. "+weli+", "+saati+":"+wuti;
document.getElementById(dro).innerHTML=tarigi;
}


//------------------------------Georgian Language--------------------------------


var eng=new Array(97, 98, 103, 100, 101, 118, 122, 84, 105, 107, 108, 109, 110, 111, 112,
	74, 114, 115, 116, 117, 102, 113, 82, 121, 83, 67, 99, 90, 119, 87, 120, 106, 104);

var geo=new Array(4304, 4305, 4306, 4307, 4308, 4309, 4310, 4311, 4312, 4313, 4314, 4315,
	 4316, 4317, 4318, 4319, 4320, 4321, 4322, 4323, 4324, 4325, 4326, 4327, 4328, 4329,
	 4330, 4331, 4332, 4333, 4334, 4335, 4336);

var len=eng.length

function qartulze(e, tid)
{
if (!document.getElementById('q1').checked) return

if (e.keyCode && document.getElementById(tid).selectionStart!=undefined)
	for (var i=0; i<len; i++)
		{
		if (e.keyCode==eng[i])
			{
			var b1=document.getElementById(tid).selectionStart;
			var b2=document.getElementById(tid).selectionEnd;
			var str=document.getElementById(tid).value		
			document.getElementById(tid).value=str.substring(0,b1)+String.fromCharCode(geo[i])+str.substring(b2);
			document.getElementById(tid).setSelectionRange(b1+1, b1+1);
			document.getElementById(tid).focus();
			return false
			}	
		}

if (e.keyCode)
	for (var i=0; i<len; i++)
		{
		if (e.keyCode==eng[i])
			{
			e.keyCode=geo[i]
			return true
			}
		}
else
if (e.charCode)
	for (var i=0; i<len; i++)
		{
		if (e.charCode==eng[i])
			{
			var b1=document.getElementById(tid).selectionStart;
			var b2=document.getElementById(tid).selectionEnd;
			var str=document.getElementById(tid).value		
			document.getElementById(tid).value=str.substr(0,b1)+String.fromCharCode(geo[i])+str.substr(b2);
			document.getElementById(tid).setSelectionRange(b1+1, b1+1);
			document.getElementById(tid).focus();
			return false
			}
		}

return true
}
//-->