//参数
var workkkkkk=true;
if(workkkkkk){

openwindowcount = 0;

function openwindow(iturl, startx){
	var windiv = document.createElement('div');
	windiv.id="openwindows"+openwindowcount;
	windiv.innerHTML = "<table width='306' height='295' border='0' cellpadding='0' cellspacing='0' background='/image/f.gif'><tr><td height='22' valign='top'><table width='100%' border='0' border='0' cellpadding='0' cellspacing='0'><tr><td width='84%' align='left' valign='top'><img src='/image/left.gif' border='0'></td><td width='16%' align='left' valign='top'><a href='javascript:closewindows("+openwindowcount+");' target='_self'><img src='/image/right.gif' border='0'></a></td></tr></table></td></tr><tr><td align='center' valign='top'><iframe src='" + iturl +"' width='300' height='250' frameborder='no' border='0' marginwidth='0' marginheight='0' scrolling='no'></td></table>";

	openwindowcount++;


	windiv.style.width = 5000;
	windiv.style.zIndex=2;
	windiv.style.left = startx;
	windiv.style.top = 2;
	if(navigator.appName.indexOf("Microsoft",0) != -1)
		windiv.style.position="absolute";  //is ie
 	else
	  windiv.style.position="fixed"; //not ie
	document.body.appendChild(windiv);
}


//可以关闭 
function closeall(){
	clearTimeout(openwintimer);
	for(i=0; i<openwindowcount; i++){
		document.body.removeChild(document.getElementById("openwindows"+i));
	}
}

function closewindows(id){
		document.body.removeChild(document.getElementById("openwindows"+id));
}
}
//if(workkkkkk)
