function openWindow ( url, name, width, height, chrome ) {
	if(chrome==1){
		// add chrome
		newWin = window.open(url, name, "height=" + height + ",width=" + width + ",menubar,resizable,scrollbars,status,toolbar");
		newWin.focus();
	}else if (chrome==2){
		newWin = window.open(url, name, "height=" + height + ",width=" + width + ",menubar=no,resizable,scrollbars,status,toolbar=no");	
		newWin.focus();
	}else{
		// no chrome
		newWin = window.open(url, name, "height=" + height + ",width=" + width + ",menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
		newWin.focus();
	}
}

function closeWindow () {
	close();
}
