<!-- BOLTERTEKELO.HU KOD KEZDETE -->
var sid = 286;
var args = '&sid=' + sid + '&ref=' + document.location;
var passin_def = typeof passin;
if (passin_def != "undefined") { args = args + '&' + passin; };
//alert(args);

//window xy coordinates of window
var br_pos_x = 250;
var br_pos_y = 250;

var test_passin_x = typeof passin_x;
if (test_passin_x != "undefined") { br_pos_x = passin_x; };
var test_passin_y = typeof passin_y;
if (test_passin_y != "undefined") { br_pos_y = passin_y; };

/******************************************
* Popup Box- By Jim Silver @ jimsilver47@yahoo.com
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

//drag drop function for NS 4////
/////////////////////////////////

var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name){
	if (!ns4)
	return
	temp=eval(name)
	temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
	temp.onmousedown=gons
	temp.onmousemove=dragns
	temp.onmouseup=stopns
}

function gons(e){
	temp.captureEvents(Event.MOUSEMOVE)
	nsx=e.x
	nsy=e.y
}

function dragns(e){
	if (dragswitch==1){
		temp.moveBy(e.x-nsx,e.y-nsy)
		return false
	}
}

function stopns(){
	temp.releaseEvents(Event.MOUSEMOVE)
}

//drag drop function for ie4+ and NS6////
/////////////////////////////////////////

function drag_drop(e){
	if (ie4&&dragapproved){
		crossobj.style.left=tempx+event.clientX-offsetx
		crossobj.style.top=tempy+event.clientY-offsety
		return false
	} else if (ns6&&dragapproved){
		crossobj.style.left=tempx+e.clientX-offsetx+"px"
		crossobj.style.top=tempy+e.clientY-offsety+"px"
		return false
	}
}

function initializedrag(e){
	crossobj=ns6? document.getElementById("showimage") : document.all.showimage
	var firedobj=ns6? e.target : event.srcElement
	var topelement=ns6? "html" : document.compatMode!="BackCompat"? "documentElement" : "body"
	while (firedobj.tagName!=topelement.toUpperCase() && firedobj.id!="dragbar"){
		firedobj=ns6? firedobj.parentNode : firedobj.parentElement
	}
	if (firedobj.id=="dragbar"){
		offsetx=ie4? event.clientX : e.clientX
		offsety=ie4? event.clientY : e.clientY
		tempx=parseInt(crossobj.style.left)
		tempy=parseInt(crossobj.style.top)
		dragapproved=true
		document.onmousemove=drag_drop
	}
}

document.onmouseup=new Function("dragapproved=false")

////drag drop functions end here//////

function hidebox(){
	crossobj=ns6? document.getElementById("showimage") : document.all.showimage
	if (ie4||ns6) {
		crossobj.style.visibility="hidden"
	} else if (ns4) {
		document.showimage.visibility="hide"
	}
}

function survey () {
	mypopup = window.open("http://www.boltertekelo.hu/survey/survey.shtml?id=" + sid + args,"survey","directories=0,height=160,width=425");
	try { mypopup.focus(); }
	catch (e) {
		valid_ua = 1;

		// only allow IE
		if (navigator.userAgent.match(/(MSIE|AOL)/) ) {
			valid_ua = 1;
		}
		if (valid_ua == 1) {
			document.write('<style type="text/css" media="print">.noprint { position:absolute; display:none; }</style>');
			document.write('<div id="showimage" class="noprint" style="position:absolute;width:250px;left:' + br_pos_x + 'px;top:' + br_pos_y + 'px">');
			document.write('<table width="430" cellspacing="0" cellpadding="0" border="0">');
			document.write('<tr><td id="dragbar" style="background-color:#fff;padding-right:0px;padding-left:6px;padding-top:2px;padding-bottom:2px;background-color:#4f5263;font-weight:bold;font-size:13px;font-family: Arial, Helvetica, sans-serif;color:#fff;cursor:hand;cursor:pointer;" onMouseDown="initializedrag(event)" width="65%"><ilayer width="100%" onSelectStart="return false"><layer width="100%" onMouseOver="dragswitch=1;if (ns4) drag_dropns(showimage)" onMouseOut="dragswitch=0">Írja le véleményét !</layer></ilayer>');
			document.write('</td><td style="background-color:#fff;padding-right:5px;padding-left:0px;padding-top:2px;padding-bottom:2px;background-color:#4f5263;cursor:hand;"><a href="#" style="font-weight:bold;font-size:9px;color:#ccc;font-family:Arial,Helvetica,sans-serif;text-decoration:underline;" onClick="hidebox();return false">kattintson ide az ablak bezárásához</a></td></tr>');
			document.write('<tr><td style="background-color:#fff;padding: 10px; border-right: #ccc 1px solid; border-left: #ccc 1px solid; border-bottom: #ccc 1px solid; border-top: 0px;" align="middle" colspan="2"><A HREF="http://www.boltertekelo.hu/survey/survey.php?id=' + sid + args + '" target="_blank"><IMG SRC="http://www.boltertekelo.hu/images/survey/button_' + sid + '.gif" ALT="Mit gondol erröl az áruházról?" BORDER="0"></A>');
			document.write('</td></tr></table></div>');
		} else {
			return;
		}
	}
}

var inline = 0;
if (inline == 1) {
		document.write('<A HREF="http://www.boltertekelo.hu/survey/survey.php?id=' + sid + args + '" target="_blank">');
		document.write('<IMG SRC="http://www.boltertekelo.hu/images/survey/button_' + sid + '.gif" ALT="Mit gondol errol az áruházról?" BORDER="0">');
		document.write('</A>');
} else {
	survey();
}


<!-- BOLTERTEKELO.HU KOD VEGE -->


