var MyTxt = '<a onmouseout="nd();" href=""><img src="pics/gotovi/home_blue_en.png" width="135" height="56" border="0" alt=""></a>';
var MyTxt1 = '<a onmouseout="nd();" href=""><img src="pics/gotovi/about_blue_en.png" width="130" height="56" border="0" alt=""></a>';
var MyTxt2 = '<a onmouseout="nd();" href=""><img src="pics/gotovi/service_blue_en.png" width="130" height="56" border="0" alt=""></a>';
var MyTxt3 = '<a onmouseout="nd();" href=""><img src="pics/gotovi/partner_blue_en.png" width="130" height="56" border="0" alt=""></a>';
var MyTxt4 = '<a onmouseout="nd();" href=""><img src="pics/gotovi/port_blue_en.png" width="130" height="56" border="0" alt=""></a>';
var MyTxt5 = '<a onmouseover="overni();" onmouseout="nd();" href=""><img src="pics/gotovi/contact_blue_en.png" width="133" height="56" border="0" alt=""></a>';

//OLpageDefaults(TEXTPADDING,4, WRAP, BASE,0, TEXTFONTCLASS,'olText', MODALCOLOR,'#000000', MODALOPACITY,80);

function overni() {
/*
overlib(myGoogleTxt, CAPTION,myGoogleCap, MODAL,MODALCOLOR,'#000000', MODALOPACITY,80, CLOSETEXT,closeimg,
     STICKY, CLOSECLICK, CAPTIONPADDING,3, CGCLASS,'olraisedBlue', CAPTIONFONTCLASS,'olcap',
     CLOSETITLE,'Close', TEXTPADDING,10, TEXTFONTCLASS,'olText', FGCOLOR,'#ffffff', REFC,'LR', REFP,'UR', REFX,-100, REFY,-100, BASE,1);
return OLsf();
*/
overlib(myGoogleTxt, CAPTION,myGoogleCap, MODAL,MODALCOLOR,'#220107', MODALOPACITY,80, CLOSETEXT,closeimg,
     STICKY, CLOSECLICK, CAPTIONPADDING,6, CGCLASS,'olraisedBlue', CAPTIONFONTCLASS,'olcap',
     CLOSETITLE,'Close', TEXTPADDING,10, TEXTFONTCLASS,'olText', FGCOLOR,'#7BAEC0',
     REF,'amazon', REFC,'LR', REFP,'UR', REFX,8, REFY,3, BASE,3); return OLsf();

}

var closeimg =
 '<img src="pics/exit_blue.gif" alt="Close" '
+'width="14" height="15" border="0" \/>';

var myGoogleCap ='Структура на Административен съд - ТЪРГОВИЩЕ';

var myGoogleTxt =
  '<div align="center"><div align="left">'
 +'<img src="pics/structura.png" alt="Structura" border="0" \/><\/div><\/div>';



// Set Focus
function OLsf() {
 if (!(OLloaded&&OLgateOK)||overlib==no_overlib) return;
// if (!OLns4) setTimeout("document.forms.f.elements.q.focus()",2);
 return true;
}




function unlockText(target) {

// Anee iinoaaeai oea?ie, nieiaai aeiee?iaaiea eiiiee
if (target.addr.checked) {


	target.s_name.value = target.b_name.value;
	target.s_lastname.value = target.b_lastname.value;
	target.s_phone.value = target.b_phone.value;
	target.s_mail.value = target.b_mail.value;
	target.s_address.value = target.b_address.value;
	target.s_city.value = target.b_city.value;
	target.s_state.value = target.b_state.value;
	target.s_zipcode.value = target.b_zipcode.value;
	target.s_country.value = target.s_country.value;
	}
// A i?ioeaiii neo?aa aiiau aeiee?oai eiiieo
else {

	target.s_name.value = '';
	target.s_lastname.value = '';
	target.s_phone.value = '';
	target.s_mail.value = '';
	target.s_address.value = '';
	target.s_city.value = '';
	target.s_state.value = '';
	target.s_zipcode.value = '';
	target.s_country.value = '';
}
}




function clear_text(target) {

	target.po_text.value = "";
	
}

function clear_nomer() {

	document.or.nomer_delo.value = "";
	
}







function unlockButton(target) {

// Anee iinoaaeai oea?ie, nieiaai aeiee?iaaiea eiiiee
if (target.addr2.checked) target.verify.disabled = 0

// A i?ioeaiii neo?aa aiiau aeiee?oai eiiieo
else target.verify.disabled = 1
}

wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 20) + "px";
		wmtt.style.top 	= (y + 20) + "px";
	}
}

function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "block"
}

function hideWMTT() {
	wmtt.style.display = "none";
}