	function openWin( page, title, width, height, top, left ) {
        	var yes         = 1;
                var no          = 0;
                var menubar     = no;  // The File, Edit, View Menus
                var scrollbars  = yes; // Horizontal and vertical scrollbars
                var locationbar = no;  // The location box with the site URL
                var directories = no;  // the "What's New", "What Cool" links
                var resizable   = no;  // Can the window be resized?
                var statusbar   = no;  // Status bar (with "Document: Done")
                var toolbar     = no;  // Back, Forward, Home, Stop toolbar

                features = "" +
                        "width=" + width + "," +
                        "height=" + height + "," +
                        "top=" + top + "," +
                        "left=" + left + "";
                features += "" +
                        (menubar ? ",menubars" : "") +
                        (scrollbars ? ",scrollbars" : "") +
                        (locationbar ? ",location" : "") +
                        (directories ? ",directories" : "") +
                        (resizable ? ",resizable" : "") +
                        (statusbar ? ",status" : "") +
                        (toolbar ? ",toolbar" : "");

                window.open( page, title, features );
		return false;
        }

        function openWindow(url,title,width,height){
                openWin( url, title, width, height, 50, 50 );
        }

	function popup(anchor) {
		return popup_s(anchor,680,490);
	}

	function popup_s(anchor, wid, hig){
		window.open(anchor.href, anchor.target,"width="+wid+",height="+hig+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0");
		return false;
	}

