 var baseURL="http://www.virtualisszerver.biz/";

 function check()
  {
    parameters=check.arguments;
    error=false;
    for(i=0;i<parameters.length;i++)
     {
       if(document.getElementById(parameters[i]).value=="") error=true;
     }
    if(error) calert("kotelezo"); 
    return error; 
  }
	
 function calert(txt)
  {
	// shortcut reference to the document object
	d = document;
 
	// if the modalContainer object already exists in the DOM, bail out.
	if(d.getElementById("modalContainerBack")) return;
	if(d.getElementById("modalContainer")) return;
 
	// create the modalContainer div as a child of the BODY element
	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainerBack";
	 // make sure its as tall as it needs to be to overlay all the content on the page
	//mObj.style.height = document.documentElement.scrollHeight + "px";

	// create the modalContainer div as a child of the BODY element
	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainer";
	 // make sure its as tall as it needs to be to overlay all the content on the page
	//mObj.style.height = document.documentElement.scrollHeight + "px";
 
	// create the DIV that will be the alert 
	alertObj = mObj.appendChild(d.createElement("div"));
	alertObj.id = "alert"+txt;
 
	// create an anchor element to use as the confirmation button.
	btn = alertObj.appendChild(d.createElement("img"));
	btn.id = "closeBtn";
	btn.src= baseURL+"images/alert_ok.png";
	// set up the onclick event to remove the alert when the anchor is clicked
	btn.onmouseover = function() { this.src=baseURL+"images/alert_ok_hover.png"; return false; }	
	btn.onmouseout = function() { this.src=baseURL+"images/alert_ok.png"; return false; }	
	btn.onclick = function() { removecAlert();return false; }	
  }
 
 // removes the custom alert from the DOM
 function removecAlert()
  {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainerBack"));
  }
  
   function send(string)
    {
    	if(string=="olEP85!r")
    	 {
    	 	obj=document.getElementById('mail');
    	 	var e="office";
    	 	var b="ole";
    	    obj.innerHTML=e+"@"+b+".hu","_self","";
            obj.href="mailto:"+e+"@"+b+".hu";
		 }
    }   	 
