//=====================================================================================================
//Saját próbálgatós dolgaim recsu

function CopyData(){
	//document.berles_rogzites.berles_rendezveny.value = document.berles_rogzites.berlo_email.value;
	document.berles_rogzites.berles_rendezveny.value = document.berles_rogzites.berlo_email.value;
}

function Copy_Helyiseg(h){
	// OK: document.berles_rogzites.berles_rendezveny.value = document.berles_rogzites.berlo_email.value;
	//document.berles_rogzites.helyiseg_nev.value = h;
	var szoveg = h;
	alert("Helyiség:"+h);
	
}

function Udvozol(){
  //var name = document.forms[0].elements[12].value;  
  //var name = document.berles_rogzites.berlo_email.value;  
  var name = document.berles_rogzites.berlo_nev.value;  
  //var name = document.vissza.user.value;  
//var name = document.forms[1].berlo_email.value;  
//var name = document.berles_rogzites.berlo_nev.value; 
//var name = document.berlo_nev.value; 
  alert("Szia "+name);
} 

//=====================================================================================================


//=====================================================================================================

// Úszó szöveg 
//var theText = document.berles_rogzites.berlo_valaszt.berlo0.value;  // kiírandó szöveg

function nextSize(i,incMethod,textLength)
{
if (incMethod == 1) return (45*Math.abs( Math.sin(i/(textLength/3.14))) );  // 36: betüméret
if (incMethod == 2) return (255*Math.abs( Math.cos(i/(textLength/3.14))));
}

function sizeCycle(text,method,dis)
{
output = "";
for (i = 0; i < text.length; i++)
{
size = parseInt(nextSize(i +dis,method,text.length));
output += "<font style='font-size: "+ size +"pt'>" +text.substring(i,i+1)+ "</font>";
}
theDiv.innerHTML = output;
}

function doWave(n) 
{ 
//document.berles_rogzites.berlo_nev.value
sizeCycle(theText,1,n);
if (n > theText.length) {n=0}
setTimeout("doWave(" + (n+1) + ")", 150);  // sebesség
}
// Úszó szöveg vége
//=====================================================================================================
//jobbgomb tiltás  FF1+ IE5+ KÚVAJÓ!!!!


var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
/*/**/
//=====================================================================================================
//jobbgomb tiltás GAGYI!!
/*function click() {
 if (event.button == 2) 
  {
  alert('Jobb klikk letiltva!');
  }
 if (event.button == 3) 
  {
  alert('Jobb klikk letiltva!');
  }
 }
document.onmousedown = click;
*/
//jobbgomb tiltás vége


//=====================================================================================================
//<script type="text/javascript" language="javascript">
<!--
// added 2004-09-16 by Michael Keck (mkkeck)
//                  bug: #1027321
//                       drop-down databases list keep focus on database change
// modified 2004-11-06: bug #1046434 (Light mode does not work)
var focus_removed = false;
function remove_focus_select() {
    focus_removed = false;
    set_focus_to_nav();
}
function set_focus_to_nav() {
    if (typeof(parent.frames.nav)!='undefined' && focus_removed!=true) {
        parent.frames.nav.focus();
        focus_removed=true;
    } else {
        focus_removed=false;
        setTimeout("set_focus_to_nav();",500);
    }
}
//-->
//</script>

/* $Id: functions.js,v 2.12 2005/01/18 15:30:30 lem9 Exp $ */
/**
 * Displays an confirmation box before to submit a "DROP/DELETE/ALTER" query.
 * This function is called while clicking links
 *
 * @param   object   the link
 * @param   object   the sql query to submit
 *
 * @return  boolean  whether to run the query or not
 */
function confirmLink(theLink, theSqlQuery)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }

    return is_confirmed;
} // end of the 'confirmLink()' function


/**
 * Displays an confirmation box before doing some action 
 *
 * @param   object   the message to display 
 *
 * @return  boolean  whether to run the query or not
 */
function confirmAction(theMessage)
{
    // TODO: Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(theMessage);

    return is_confirmed;
} // end of the 'confirmAction()' function

//=====================================================================================================
function CHNG_COLOR(chng)
{
 this.style.backgroundColor = (chng) ? "navy" : ""
 this.style.color = (chng) ? "white" : "";
}



function EGER_KLATTY(chng)
{
 this.style.backgroundColor = (chng) ? "navy" : ""
 this.style.color = (chng) ? "navy" : "";
}

