

function WritePaginationHeader(mypage,maxpages,recordCount)
{
/*	document.write("<table border='0' width='100%'><tr valign='center'><td align='left'>");
	document.write("</td><td align=right>");
	document.write("</td></tr></table>");
*/
}
    var rowWithMouse = null;

    function gGetElementById(s) {
      var o = (document.getElementById ? document.getElementById(s) : document.all[s]);
      return o == null ? false : o;
    }

    function rowUpdateBg(row, myId) 
    {
        row.className = (row == rowWithMouse) ? 'rowselected' : ( (myId&1) ? '' : 'shade' );
    }

    function rowRollover(myId, isInRow) {
      // myId is our own integer id, not the DOM id
      // isInRow is 1 for onmouseover, 0 for onmouseout
      var row = document.getElementById('tr_' + myId);
      rowWithMouse = (isInRow) ? row : null;
      rowUpdateBg(row, myId);
    }

function vaia(dove) {
	var paginaurl=document.URL;
	var documento=paginaurl.split("/");
	var miourl=documento[documento.length-1];
	var posta=dove+"posta/"+miourl;
	var normale=dove+miourl;
	var index=dove+"index.shtm"
	switch(miourl)
	{
		//case "contatto.shtm": self.location.href=posta;
		//	break
		case "occasioni.asp": self.location.href=index;
			break		
		case "roll.asp": self.location.href=index;
			break		
		case "listino_roll.asp": self.location.href=index;
			break		
		case "isotec.asp": self.location.href=index;
			break		
		case "listino_iso.asp": self.location.href=index;
			break		
		case "carrelli.asp": self.location.href=index;
			break					
		case "index.shtm": self.location.href=index;
			break
		case "": self.location.href=index;
			break			
		default: self.location.href=normale;
	}
}
