function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function emptyField(control, text) {
  if (text == document.forms[0][control].value) {  
		document.forms[0][control].value = ""; 
  }
}
function updateNewLines(control) {
	text  = document.getElementById(control).value;
	split = text.split('\n');
	if (split.length > 3) {
	  new_text = split[0] + '\n' + split[1] + '\n' + split[2].substring(0, (split[2].length - 1));
	  document.getElementById(control).value = new_text;
	}
}
function setLink() { 
  document.getElementById("tbxLink").value = window.opener.location;
}
