/******************************
/ Function: open_win
/ Args: url - URL to open
/		w - New window width
/		h - New window height
/ Description:
/ Open a URL in a new window
/ with an assigned width and
/ height
******************************/

function open_win(url,n,w,h) {
	agent = navigator.userAgent;
	windowName = n;
		
	params  = "";
	params += "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=1,";
	params += "width=" + w + ",";
	params += "height=" + h;
		   
	win = window.open(url, windowName , params);
		
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
		win = window.open(url, windowName , params);
	}	
	if (!win.opener) {
		win.opener = window;
	}
	return;
}

/**************************************
/ Function: show_email
/ Args: foo - email name
/		bar - display name
/ 		show_mailto - 1/0 to show link
/ Description: 
/ Display an email address through
/ javascript
**************************************/

function show_email(foo, bar, show_mailto) {
	domain = "rodpub.com"
	// setup mailto
	if (show_mailto == 1) {
		document.write("<a href='");
		document.write("mailto:");
		document.write(foo + "@");
		document.write(domain);
		document.write("'>");
	}
	// show mail or name
	if (bar == "") {
		document.write(foo + "@");
		document.write(domain);
	} else {
		document.write(bar);
	}
	// close mailto
	if (show_mailto == 1) {
		document.write("</a>");
	}
}
		
		