function windowClose(msg){
if(navigator.appName == "Microsoft Internet Explorer") {
if(navigator.appVersion.match(/7./i)=='7.') {
//alert( '当前浏览器是IE 7' )
if(confirm(msg)){
window.open('','_top');
window.top.close();
}
} else if(navigator.appVersion.match(/6./i)=='6.') {
//alert( '当前浏览器是IE 6' )
if(confirm(msg)){
window.opener=null;
window.close();
}
}
}
}