var maxCharAbstract = 120;
			
function checkSite(page,internal) {
	if (internal=="2") window.open(((page.substring(0,7)!="http://") ? "http://" : "") + page, "_blank");
	if (internal=="1") window.open("../../content/" + page + "/default.asp", "_blank");
}
			
function ctrlChars(cosa) {
	if (cosa.innerText.length > maxCharAbstract) {
		cosa.innerText = cosa.innerText.substring(0,maxCharAbstract);
	}
}

function getSearchPar(param) {
	var results = new Array();
	var input = unescape(location.search.substring(1));

	if (input) {
		var srchArray = input.split("&");
		var tempArray = new Array();
		for (var i=0; i<srchArray.length; i++) {
			tempArray = srchArray[i].split("=");
			if (tempArray[0]==param)  return tempArray[1];
		}
	}
	return null;
}

function openDialog(myREF, w, h){
		
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings  ='height='+h+',';
	settings +='width='+w+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars=yes,';
	settings +='resizable=yes';
	//return window.showModalDialog(myREF,"","dialogHeight: 400px; dialogWidth: 300px; dialogTop: 400px; dialogLeft: 500px; edge: Sunken; center: Yes; help: Yes; resizable: Yes; status: No;");
	win=window.open(myREF,"",settings);
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}

}

	
