

copyright_message = "(C)Copyright 2006 by Olimp Turism. All rights reserved.";
function nrc(e)
{
        if (navigator.appName == "Netscape" && e.which > 1)
        {
                alert(copyright_message);
                return false;
        }
        if (navigator.appName == "Microsoft Internet Explorer" && (event.button > 1))
        {
                alert(copyright_message);
                return false;
        }
}
document.onmousedown = nrc;
if (document.layers)
        window.captureEvents(Event.MOUSEDOWN);
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion) < 5)
        window.onmousedown = nrc;  


function formHandlerOrase() {
var URL = document.view_orase.show_oras.options[document.view_orase.show_oras.selectedIndex].value;
  if (URL != "")
    window.location.href = URL;
}

function checkNewsLetter (){
   if (document.newsletter.email.value == "") {
      alert("Introduceti adresa de e-mail!")
      document.newsletter.email.focus()
      return false}
}

function checkLogin (){
   if (document.autentificare.user.value == "") {
      alert("Introduceti utilizatorul!")
      document.autentificare.user.focus()
      return false}
   if (document.autentificare.parola.value == "") {
      alert("Introduceti parola!")
      document.autentificare.parola.focus()
      return false}
}

function open_popup(cl_width, cl_height, poza, flag)
{
	left_pos=(screen.width-cl_width)/2;
	top_pos=(screen.height-cl_height)/2;
	if(flag!='map')
		client=window.open("img.php?poza="+poza, "client", "top="+top_pos+", left="+left_pos+", width="+cl_width+", height="+cl_height);
	else
		client=window.open("img.php?poza="+poza+"&map=1", "client", "top="+top_pos+", left="+left_pos+", width="+cl_width+", height="+cl_height);
}


function open_popup1(cl_width, cl_height, poza)
{
	left_pos=(screen.width-cl_width)/2;
	top_pos=(screen.height-cl_height)/2;
	client=window.open("harta.php?poza="+poza, "client", "top="+top_pos+", left="+left_pos+", width="+cl_width+", height="+cl_height);
}
