var d = document;
var wObj, op;

function winOpen(thewidth) {
	wObj = d.getElementById('divwin');
	op = 0;	

	if (typeof thewidth != "undefined") wObj.style.width = thewidth + "px"
	wObj.style.opacity = op;
	wObj.style.display = 'block'; 
			
	appear();	
}
		
function winClose() {
	wObj.style.display = 'none';
}
		
function appear() {
	if (op < 1) {
		op += 0.1;
		wObj.style.opacity = op;
		wObj.style.filter = 'alpha(opacity='+op*100+')';
		t = setTimeout('appear()', 30);
	}
}

