function getbrowserwidth() {
    	if (navigator.userAgent.indexOf("MSIE") > 0)	{
        		return(screen.width);
       	} else {
            	return(window.screen.width);
       	}	
}
        
function getbrowserheight() {
	if (navigator.userAgent.indexOf("MSIE") > 0) {
		return(screen.height);
    } else {
		return(window.screen.height);
	}
}
				
var popup = new Object()

function CenterPopup(URL, popname, width, height, scrollbars) {
									
	// get center of browser window
        var X = getbrowserwidth()/2;
        var Y = getbrowserheight()/2;
                    	
        popup = window.open(URL, popname, 
                    		'scrollbars=' + scrollbars + ',' +
                    		'width=' + width + ',' +
                    		'height=' + height + ',' +
                    		'top=' + ((Y - (height/2))) + ',' +
                    		'left=' + ((X - (width/2))) 
                    		);
                    	
        popup.focus();
}

function reload(retailer) {

    document.retailers.retailerName.value = retailer;
	document.retailers.submit();

}
