window.defaultStatus="*KXsRX  |  just 'cause it ain't movin' doesn't mean it's dead*";
// makes a popup-window for the repress-poll.

function PollPop(){
window.open("KXpoll.php", "KXpollPOP", "width=575px, height=275px, toolbar=no, scrollbars=no");
}

// navigation of the records.

RX=new Array("KX2001","KX2002","KX2003","KX2004","KX2005","KXX01","KX2006" ,"KX2007","KX2008","KX2009","CI01");

function go(x){
  parent.KXsRXmain.location="RXframes.html";
  setTimeout("parent.KXsRXmain.RXtxt.location='"+(RX[x])+".html'; parent.KXsRXmain.RXimg.location='"+(RX[x])+"img.html'; parent.KXsRXmain.RXtop.location='"+(RX[x])+"top.html'", 100);
 }

// adds a hypertext link to the body of a news-item.

var linkUrl;
var linkTxt;
function addTxt(){
		 linkTxt=prompt("Please enter the text to be displayed","");
		 if (linkTxt!=null && linkTxt!=""){
		 top.document.getElementById("newBody").value+='<a href="'+linkUrl+'" target="_blank">'+linkTxt+'</a>';
		 }
}
function addLink(){
		 linkUrl=prompt("Please enter the full URL","");
		 if (linkUrl!=null && linkUrl!=""){
		 addTxt();
		 }
}

function replaceImg(){
		 top.document.getElementById("neCol2b").write("");
		 top.document.getElementById("neImgRow").write("<div id=neCol1>replacement file:<input type='hidden' name'MAX_FILE_SIZE' value='2000000'></div>");
		 top.document.write("<div id=neCol2><input type='file' name='newImg' id='newImg' size='80' value=''></div>");
}

// makes a popup-window for each image added to a news-item.

function makePop(y, w, h){

var winFeatures='width='+w+', height='+h+', toolbar=no, scrollbars=yes';
var winSize='width='+w+', height='+h+'';

var popWin=window.open("", "KXflyPOP", winFeatures);

curImg=popWin.document;
curImg.write("<html><head><title>KXsRX flyer popup</title><link rel=stylesheet type=text/css href=KXstyle.css></head>");
curImg.write("<body class=type1>");
curImg.write("<center><i>(click on the image to close this window)</i><br><br><a href='javascript:self.close()'><img src=KXimg/fly/");
curImg.write(y);
curImg.write(" width=90%></a>");
curImg.write ("</center></body></html>");
curImg.close();
KXflyPOP.resizeTo(winSize);
}