
function placeit(id,left,top,width,height,z,vis,color,deco,other) {
	if (id=="writinginto") return '<STYLE>\n'
	else if (id=="finishwriting") return '</STYLE>'
	var tmpr = (left!=null && top!=null)? '#'+id+' {position:absolute; left:'+left+'px; top:'+top+'px;' : '#'+id+' {position:relative;'
	if (arguments.length>=4 && width!=null) tmpr += ' width:'+width+'px;'
	if (arguments.length>=5 && height!=null) {
		tmpr += ' height:'+height+'px;'
		if (arguments.length<10 || other.indexOf('clip')==-1) tmpr += ' clip:rect(0px '+width+'px '+height+'px 0px);'
	}
	if (arguments.length>=6 && z!=null) tmpr += ' z-index:'+z+';'
	if (arguments.length>=7 && vis!=null) tmpr += ' visibility:'+vis+';'
	if (arguments.length>=8 && color!=null) tmpr += (document.layers)? ' layer-background-color:'+color+';' : ' background-color:'+color+';'
	if (arguments.length==9 && deco!=null) tmpr += ' text-decoration:'+deco+';'
	if (arguments.length==10 && other!=null) tmpr += ' '+other
	tmpr += '}\n'
	return tmpr
}
function writingdy(tmpr,showAlert) {
	tmpr = placeit('writinginto')+tmpr+placeit('finishwriting')
	document.write(tmpr)
	if (showAlert) alert(tmpr)
}
//*************** refreshing***************//

function findbr() {
	divwid = (is.ns)? window.innerWidth : document.body.offsetWidth-20
	divhig = (is.ns)? window.innerHeight : document.body.offsetHeight-4
}
function resizeit() {
	if ((is.ns && (divwid!=window.innerWidth || divhig!=window.innerHeight)) || is.ie)
	document.location.href = document.location.href
}



