
/* - gc-openmap.js - */
function openMap(mapsetid,template,parameters){
var baseURL='http://urbanistica.spezianet.it/gisclient/';
	if(!template){
		alert("manca il template per il mapset");
		return;
	}
  	var winWidth = window.screen.availWidth-8;
		var winHeight = window.screen.availHeight-55;
		var winName = 'mapset_'+mapsetid;
		if(!parameters) parameters='';
		if(template.indexOf('?')>0)
			template=template + '&';
		else
			template=template + '?';
		var mywin=window.open(baseURL + template + "mapset=" + mapsetid + parameters, winName,"width=" + winWidth + ",height=" + winHeight + ",menubar=no,toolbar=no,scrollbar=auto,location=no,resizable=yes,top=0,left=0,status=yes");
		mywin.focus();
}

