/* xNews JavaScript-Functions by Robert Klikics <rob@x-gfx.de> */

/* opens any url after confirming */
function exe(URL, txt) {
	
	if (confirm(txt)) 	window.location.href = URL;
	else 			alert ("Nothing Changed!");
}

/* check length of the newstext */
function len(max) {
	
	MessageLength 	= document.newstxt.news.value.length;
	message 	= "Max. chars: " + max;
	  
	alert(message + "\nUsed chars: " + MessageLength);	
}

/* bb-codes info */
function bb_code() {
	
	alert("[b]text[/b] = bold text\n[i]text[/i] = italic text\n[u]text[/u] = underlined text");	
}

/* add useful-links to mailfooter-form */
function addlinks(URL, signout_link, pagename) {

	document.sig.mail_footer.value += "\nHomepage: " +URL+ "\nSignout at: " +signout_link+ "\n";	
}