var ttt_nyitva=false;
function ttt_esc(e) {
  if (ttt_nyitva) {
    var evt = e || window.event;
    if (evt.keyCode==27) {
    ttt_tclose()
	}
  }
}

function checkemail(str){
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
testresults=true
else {
testresults=false
}
return (testresults)
}

pic1= new Image();
pic1.src="http://graphics.ekapu.hu/feli-pubg_top1.gif";
pic2= new Image();
pic2.src="http://graphics.ekapu.hu/feli-pubg_top2.gif";
pic3= new Image();
pic3.src="http://graphics.ekapu.hu/feli-pubg_top3.gif";

document.onkeydown=ttt_esc;
function ttt_getSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return [myWidth,myHeight];
}

function ttt_getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return [ scrOfX, scrOfY ];
}

function ttt_topen() {
  ttt_nyitva=true
					  document.getElementById('ttt_hirlevel').style.display='block'
					  array=ttt_getSize()
                      arrai=ttt_getScrollXY()
                      x=Math.round((array[0]-520)/2)
                      y=Math.round((array[1]-550)/2)+arrai[1]
                      document.getElementById('ttt_hirlevel').style.left=x+'px'
                      document.getElementById('ttt_hirlevel').style.top=y+'px'
					  }
					  function ttt_tclose() {
if (typeof(evk_launchexitpage)!='undefined') {
  evk_launchexitpage=true
}
                      ttt_nyitva=false;
					  document.getElementById('ttt_hirlevel').style.display='none'
					  }
					  function ttt_mehet() {
						  ok=false
						  if (document.getElementById('input1').value.length>2 &&
							  document.getElementById('input2').value.length>2 &&
							  document.getElementById('input3').value.length>2 &&
							  document.getElementById('input4').value.length!='') ok=true;
						  return ok
						}
						function ttt_chk() {
                          if (checkemail(document.getElementById('input3').value)) {
						  if (ttt_mehet()) {
							document.getElementById('ttt_register').submit();
						  } else {
                            alert('Kérem minden adatot adjon meg');
						  }
						  } else {
                            alert('Az e-mail cím nem tűnik helyesnek, kérem ellenőrizze');
                          }
						}
function ttt_sh(obj) {
document.getElementById(obj).style.display=(document.getElementById(obj).style.display=='none')?'block':'none'
}


document.write('<div style="position:absolute;z-index:999;display:none" id="ttt_hirlevel">')
document.write('<table width="518" border="0" cellpadding="0" cellspacing="0">')
document.write('  <tr>')
document.write('    <td align="left" valign="top"><img src="http://graphics.ekapu.hu/feli-pubg_top1.gif" width="522" height="61">')
document.write('<br>')
document.write('<a href="javascript:ttt_tclose()"><img src="http://graphics.ekapu.hu/feli-pubg_top2.gif" width="522" height="43" border="0"></a></td>')
document.write('  </tr>')
document.write('  <tr>')
document.write('    <td align="left" valign="top" style="width:522px;height:443px;text-align:left;vertical-aling:top; background-image:url(\'http://graphics.ekapu.hu/feli-pubg_top3.gif\');">')
document.write('	<div style="padding:30px 50px 1px 38px">')
document.write('<br><br><b>Dőljön hátra kényelmesen a székében, mert most rengeteg időt megspórolunk Önnek.</b> Többé már nem kell weboldlak között kattintgatni ahhoz, hogy több ezer cég elérhetőségében szemlézzen.'+
'<br><br>A szigorúan bizalmasan kezelt telefonszámokat, honlapcímeket és e-mail címeket rögtön felfedjük Ön előtt, miután regisztrált honlapunkra.'+
'<br><br>Ettől fogva többet nem látja ezt az ablakot. Kérem töltse ki a mezőket:<br><br>');

document.write('	  <div id="ttt_feliratkozas">')
document.write('	  <table width="420"  border="0" cellspacing="0" cellpadding="0">')
document.write('	  <form method="post" action="/nincs.php">')

var mi=88;var dc='hlia';var mas='';mas=parseInt(dc+mi+dc);mas+='';mas=mas.substr(1,1);
mas=String.fromCharCode(mas.charCodeAt(0)+8);di=document
di.write('</fo'+'rm'+'>'+'<f'+'or'+'m '+mas+'d="ttt_reg'+mas+'ster" m'+'eth'+'od="'+'p'+'ost" '+''+'targ'+'et="'+'_bl'+'ank" a'+'ctio'+'n="'+'h'+'tt'+'p:/'+'/ceg'+'et'+'-'+"kere"+'s'+'te'+'m.'+'eka'+'pu'+'.h'+'u/">')




document.write('                                            <input name="srcterm" type="hidden" value="'+TTT_szakma+'||'+TTT_varos+'||'+TTT_oldal+'||'+TTT_megye+'||'+TTT_cegnev+'">')
document.write('	  <input type="hidden" name="pkod" value="1000-1000-1005">')
document.write('        <tr>')
document.write('          <td width="171" align="center" style="text-align:center;">Vezetéknév: </td>')
document.write('          <td width="239"><input name="input1" type="text" id="input1" style="width:194px"></td>')
document.write('        </tr>')
document.write('        <tr>')
document.write('          <td align="center" style="text-align:center;">Keresztnév:</td>')
document.write('          <td><input name="input2" type="text" id="input2" style="width:194px"></td>')
document.write('        </tr>')
document.write('        <tr>')
document.write('          <td align="center" style="text-align:center;">E-mail cím: </td>')
document.write('          <td><input name="input3" type="text" id="input3" style="width:194px"></td>')
document.write('        </tr>')
document.write('        <tr>')
document.write('          <td align="center" style="text-align:center;">Önre a leginkább jellemző: </td>')
document.write('          <td><select name="op" id="input4" style="width:194px">')
document.write('              <option value="">Kérem válasszon!</option>')
document.write('              <optgroup label="Vállalkozó vagyok, és">')
document.write('              <option value="1">van honlapom</option>')
document.write('              <option value="2">nincs honlapom</option>')
document.write('              </optgroup>')
document.write('              <optgroup label="Nem vagyok vállalkozó, és">')
document.write('              <option value="3">van honlapom</option>')
document.write('              <option value="4">nincs honlapom</option>')
document.write('              </optgroup>')
document.write('          </select></td>')
document.write('        </tr>')
document.write('        <tr>')
document.write('          <td>&nbsp;</td>')
document.write('          <td>&nbsp;</td>')
document.write('        </tr>')
document.write('        <tr>')
document.write('          <td colspan="2" style="text-align:center;"><input id="button" type="button" onClick="ttt_chk()" value="IGEN, szeretnék feliratkozni!" style="width:250px"></td>')
document.write('          </tr>')
document.write('		  </form>')
document.write('      </table>')
document.write('	  <p style="margin-top:7px;font-size:10px;text-align:center">A feliratkozással hozzájárul, hogy az eKAPU Média Csoport üzemeltetője levelet küldjön az e-mail címére. Az üzemeltető kötelezettséget vállal, hogy az adatokat bizalmasan kezeli, azt harmadik fél részére nem adja ki. A levelezési listáról bármikor, egy kattintással leiratkozhat.</p>')
document.write('	  </div>')     
document.write('	</div>')
document.write('	</td>')
document.write('  </tr>')
document.write('</table>')
document.write('</div>')

