function hideAd(divId) 
{ if (document.layers) document.layers[divId].visibility = 'hide';
  else if (document.all) document.all[divId].style.visibility = 'hidden';
  else if (document.getElementById) document.getElementById(divId).style.visibility = 'hidden';
}

function adDown(divId) 
{ state=typeof topPos;
  if(state=='undefined') topPos=-480;
  if(topPos < 85) { 
	topPos+=40;
	if (document.layers) document.layers[divId].top = topPos;
	else if (document.all) document.all[divId].style.top = topPos;
	else if (document.getElementById) document.getElementById(divId).style.top = topPos;	
    
	setTimeout("adDown('pop');",25);
  }
}

function lev(name)
{
var name = "mailto:" + name+ "@novoparts.hu";
uzenetablak = window.open(name);  
}

function lev2(name)
{
var name = "mailto:"+"novoparts@"+ name+".hu";
uzenetablak = window.open(name);  
}

function ablak(cel,cim,szelesseg, magassag) {
	uj = window.open ('', 'newWin','scrollbars=no,resize=no,status=no,width='+szelesseg+',height='+magassag);
	uj.document.writeln('<HTML><HEAD><TITLE>'+cim+'</TITLE></HEAD><BODY marginheight=0 bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>'
	+'<img src="'+cel+'" border=0 width='+szelesseg+' height='+magassag+'></body></HTML>');
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function Megnyit(cel,szelesseg, magassag) {
	uj = window.open ('', 'newWin','scrollbars=no,resize=yes,status=no,width='+szelesseg+',height='+magassag);
	uj.document.writeln('<HTML><BODY marginheight=0 bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>'
	+'<img src="'+cel+'" border=0 width='+szelesseg+' height='+magassag+'></body></HTML>');
}
