function refer(ID) {

	var url = "/refer/";
	
	if (ID != "") {
		url = url + "/" + ID + "/";
	}

	openWindow(url, 'refer', '480', '480', 'yes');

}

function openWindow(url, name, width, height, scroll) {

	var screenWidth = (screen.width - width) / 2;
	var screenHeight = (screen.height - height) / 2;
	newWindow = window.open(url,name,'width=' + width + ',height=' + height + ',toolbar=no,scrollbars=' + scroll + ',resize=no,left=' + screenWidth + ',top=' + screenHeight + '');
	newWindow.focus();
	
}

