function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function nospam(name, domain) {
document.location = "mailto:" + name + "@" + domain + "?subject=Megkereses a www.solartex.hu honlaprol...";
}

function openwindow(image,windowwidth,windowheight,title) {
xpos = (window.screen.width-windowwidth)/2;
ypos = ((window.screen.height-windowheight)/2-10);
imagewindow=window.open('','_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width='+windowwidth+',height='+windowheight+',left='+xpos+',top='+ypos+',resizable=0');
imagewindow.document.write('<html>');
imagewindow.document.write('<title>'+title+'</title>');
imagewindow.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" ');
imagewindow.document.write('bottommargin="0" rightmargin="0" style="background-image: url(wait.gif); background-repeat: no-repeat; background-position: center center;">');
imagewindow.document.write('<a href="javascript:window.close()"><img src="'+image+'" border="0" alt="Kattintson a bezáráshoz."></a>');
imagewindow.document.write('<script language="javascript">');
imagewindow.document.write('function click() {');
imagewindow.document.write('if (event.button==2) {');
imagewindow.document.write('window.close(); } }');
imagewindow.document.write('document.onmousedown=click');
imagewindow.document.write('</script>');
imagewindow.document.write('</body>');
imagewindow.document.write('</html>');
}

function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}

function selectAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
}

var y = 0;
function scrollitdown() {
if (y < 340) {
window.scroll(0,y);
y = y + 5;
setTimeout('scrollitdown()', 5);
}
}

function scrollit() {
setTimeout("scrollitdown()",1000);
}
