function openWin(theURL,winName,features) {
	window.open(theURL,winName,features);
}
function closeWin() {
    var ua = navigator.userAgent;
    if (ua.indexOf('MSIE') >= 0){
        if(ua.indexOf('MSIE 5.0') == -1) {
            top.opener = '';
        }
    } else if (ua.indexOf('Gecko') >= 0){
        top.name = 'CLOSE_WINDOW';
        win = window.open('','CLOSE_WINDOW');
    }
    top.close();

}

