function hpo_toolbox_checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

bw=new hpo_toolbox_checkBrowser();

function gotoUrl(url) {
	document.tx_hpotool_form_lstpages.action = url;
	document.tx_hpotool_form_lstpages.submit();
	return false;
}

function imprime(url){
	
	//var url = window.location ;

	//url += '&print=1';
	//alert(url);
	var win = open( url, 'plateform_preview','directories=no,location=no,menubar=no,status=no,toolbar=no');
	
   	if (win) {
        if (!bw.ns5)
			win.resizeTo(700, 600);
        win.focus();
		win.print();
	}
	
	return false;
}