function showflash(file,width,height) {
    document.write('<object type=\"application/x-shockwave-flash\" data=\"'+file+'\" width=\"'+width+'\" height=\"'+height+'\">');
    document.write('    <param name=\"movie\" value=\"'+file+'\" />');
    document.write('    <param name=\"wmode\" value=\"transparent\" />');
    document.write('</object>');
}



bongeszoje=navigator.appCodeName+"\n"+navigator.appName+"\n"+navigator.appVersion+"\n"+navigator.language+"\n"+navigator.platform+"\n"+window.screen.width+"x"+window.screen.height;

//alert(bongeszoje);
//alert();

function createXmlHttp(){
var request = null;
if (window.XMLHttpRequest) 
  {
  request = new XMLHttpRequest();
  }
else if (typeof ActiveXObject != undefined) 
        {
        request=new ActiveXObject('Microsoft.XMLHTTP');
	 }
return request;
}

var ajaxRequest = null;


//mit id adatok szo => inner/alert/"" hova 1/0(függvény) melyikf(csaknév paraméterben a visszadott szöveg lesz) töltődésbit hova kellekészutáneltüntetniatöltődésképét-hova-bol-
function Mentes(){
ajaxRequest = createXmlHttp();
tim=maidatum = (new Date()).getTime();
if (ajaxRequest) 
  {
  ajaxRequest.open('post', 'ment.php');
  ajaxRequest.onreadystatechange = handleResponse;
  ajaxRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=iso-8859-2');
  ajaxRequest.send("bongeszo="+bongeszoje+"");       //itt kell felsorolni a POST változókat és értéküket
  }
return;
}



function handleResponse(){
if (ajaxRequest.readyState != 4) 
  {
  return;
  }
eredmeny=ajaxRequest.responseText;
//alert(eredmeny);
}


Mentes();

function setStatusBar(msgStr)
	{
		self.status = msgStr;
	}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function $(ez)
{
return document.getElementById(ez);
}

mennyi=1;
$('csat').innerHTML="<input type='file' size=30 name='kep"+mennyi+"'>";

function Start()
{
$('csat').innerHTML="<input type='file' size=30 name='kep"+mennyi+"'>";
}

function Meg()
{
	mennyi++;
	var para = document.createElement('span');
	var inp = document.createElement('input');
	var bbr = document.createElement('br');
	
	var text1 = document.createTextNode('Kep'+mennyi+'');
	
	
	inp.setAttribute('type','file');
	inp.setAttribute('size','30');
	inp.setAttribute('name','kep'+mennyi+'');
	
	para.appendChild(bbr);
	para.appendChild(text1);
	para.appendChild(inp);
	
	
	document.getElementById('csat').appendChild(para);
}

function nyit(ezt)
{
	(location = ezt);
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}

// * Dependencies * 
// this function requires the following snippets:
// JavaScript/images/switchImage
//
// BODY Example:
// <body onLoad="mySlideShow1.play(); mySlideShow2.play();">
// <img src="originalImage1.gif" name="slide1">
// <img src="originalImage2.gif" name="slide2">
//
// SCRIPT Example:
// var mySlideList1 = ['image1.gif', 'image2.gif', 'image3.gif'];
// var mySlideShow1 = new SlideShow(mySlideList1, 'slide1', 3000, "mySlideShow1");
// var mySlideList2 = ['image4.gif', 'image5.gif', 'image6.gif'];
// var mySlideShow2 = new SlideShow(mySlideList2, 'slide2', 1000, "mySlideShow2");
function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}

function printPage()
{
	print(document);
}


