function openwindow(iturl, startx, divid ){
	
	var framestr = '';
	framestr += "<div id='" + "openwindows"+ divid + "' style='position: absolute; z-index:2;left:" + startx + "px;' ><table border='0'><div><iframe src='" + iturl +"' width='300' height='200' frameborder='no' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe></td></div><div align='right'><a href='javascript:closewindows("+divid+");' target='_self'><img src='http://www.steelhome.cn/image/guanbi.gif' border='0'></a></div></table></div>";
	document.getElementById( 'tan_div' ).innerHTML += framestr;
}


//¿ÉÒÔ¹Ø±Õ 
function closeall(){
	clearTimeout(openwintimer);
	/*for(i=0; i<openwindowcount; i++){
		document.getElementById('tan_div').removeChild(document.getElementById("openwindows"+i));
	}*/
	document.getElementById( 'tan_div' ).innerHTML = '';
	//document.body.removeChild( document.getElementById( 'tan_div' ));
}

function closewindows(id){
		document.getElementById('tan_div').removeChild(document.getElementById("openwindows"+id));
}

