function nospam (user) {

	location.href = "mailto:"+user+"@morettispa.it"
}

function chcln(obj, objclass) {
	obj.className = objclass ;
}

function goban(str) {
        fullbantext = unescape(str)+" " ;
        jtxt = 0 ;
        wtm = window.setInterval("wrban()",100) ;

}


function wrban() {

	jtxt = (jtxt < fullbantext.length-1 ) ? jtxt+1 : 0
	
	if (jtxt < fullbantext.length-13 ) {
		mtxt = fullbantext.substr(jtxt, 13);
	} else {
		mtxt = fullbantext.substr(jtxt, fullbantext.length-jtxt) + fullbantext.substr(0, 13-(fullbantext.length-jtxt));
	}
	
	
	if (document.all) document.links(7).innerText = mtxt ;
	else if (document.getElementById) document.getElementById("link7").innerHTML = mtxt ;
	

}

function accesso_fornitori() {

	w = Math.round(document.body.clientWidth);
	w1 = 377 ;
	xrp = (w - 770)/2 + 770 - w1 ;
	
	if (document.all){									
		login.style.posTop = 100 ;
		login.style.posLeft = xrp ;
		login.style.visibility= "visible" ;
		
	} else if (document.getElementById && !document.all) {			
		document.getElementById("login").style.top = "90px" ;
		document.getElementById("login").style.left = xrp+"px" ;
		document.getElementById("login").style.visibility= "visible" ;
	}	
}

function undo_login() {
	if (document.all){		
		login.style.posTop = 0 ;
		login.style.posLeft = 0 ;
		login.style.visibility= "hidden" ;
		
	} else if (document.getElementById && !document.all) {			
		document.getElementById("login").style.top = "0px" ;
		document.getElementById("login").style.left = "0px" ;
		document.getElementById("login").style.visibility= "hidden" ;
	}
}

function max_login() {
	document.forms["accesso"].target="_self";
	document.forms["accesso"].action= "http://fornitori.morettispa.it/default.php?RIENTRO=NONVALIDO&P1=&P2=";
	document.forms["accesso"].submit();
}
