=0) { top.location.href="http://www.apo.com.au/illegal.htm"}
function convertBulk4()
{
snl = ' var nl = getNewLine() ' + nl + nl+
' function getNewLine() { ' + nl +
' var agent = navigator.userAgent ' + nl +
' if (agent.indexOf("Win") >= 0) ' + nl +
' return "\\r\\n" ' + nl +
' else ' + nl +
' if (agent.indexOf("Mac") >= 0) ' + nl +
' return "\\r" ' + nl +
' return "\\n" ' + nl +
' } ' + nl
op = ''+nl+nl+snl+nl+nl+
' i = document;'+nl
cl = nl+''
convertBulk()
convertBulk1()
convertBulk1a()
convertBulk2()
convertBulk2a()
convertBulk3()
var theNl = document.setup.bulkvalue.value
o = theNl.split(" i.write('")
document.setup.bulkvalue.value = o.join(" i.write(nl+'")
/* if(document.setup.onestep.checked) {
print = op + document.setup.bulkvalue.value + nl +cl
setTimeout("clearMe()",10)
document.setup.pt2.value = print
fnl = document.setup.pt2.value + nl
t = confirm("Click O.K to print this code or click Cancel to Test this code or exit")
if(t==true) {
w = window.open("")
i = w.document;
i.write("Ctrl+A (select) - Ctrl+C (copy) - Ctrl+V (paste)"+nl+fnl+nl+" ");
i.close()
}
if(t==false) {
u = confirm("Click O.K to test this code")
if(u==true) {
w = window.open("")
i = w.document;
i.write("Test"+nl+fnl+nl+"");
i.close()
}
}
}
if(!document.setup.onestep.checked) {
*/
print = document.setup.bulkvalue.value
setTimeout("clearMe()",10)
document.setup.pt2.value = snl + nl + nl + print
//}
}
function clearMe()
{
document.setup.bulk.value = nl+nl+"Converted...("+document.setup.bulkvalue.value.length+" bytes)"
//setTimeout("forGood()",3000)
}
function forGood()
{
document.setup.bulk.value =""
}
function oneStep()
{
if(document.setup.onestep.checked) {
alert("This will convert your code into a complete document.write "+
"script and it will write to the page as soon as it loads. "+
"Ignore Part 1 and Part 3 in this case as it will already be housed "+
"inside script tags. \n\nUncheck the box to use it in a new window situation "+
"and complete Part 1, 2 then 3.")
}
}
function Doc3()
{
if(document.setup.linkmid.value=='') {aboutLink();}
if(document.setup.linkmid.value!='') {
sc = ''
prompt1 = nl + document.setup.linkstart.value + document.setup.linkmid.value + document.setup.linkend.value + nl
print = nl+ " }"+nl+sc +nl+nl+prompt1
document.setup.pt3.value = print
fnl = document.setup.pt1.value + nl + document.setup.pt2.value + nl + document.setup.pt3.value
w = window.open("")
i = w.document;
i.write("Ctrl+A (select) - Ctrl+C (copy) - Ctrl+V (paste)"+nl+fnl+nl+" ");
i.close()
}
}
function Doc3a()
{
if(document.setup.linkmid.value=='') {aboutLink();}
if(document.setup.linkmid.value!='') {
sc = ''
prompt1 = nl + document.setup.linkstart.value + document.setup.linkmid.value + document.setup.linkend.value + nl
print = nl+ " }"+nl+sc +nl+nl+prompt1
document.setup.pt3.value = print
fnl = document.setup.pt1.value + nl + document.setup.pt2.value + nl + document.setup.pt3.value
w = window.open("")
i = w.document;
i.write("Test"+nl+fnl+nl+" ");
i.close()
}
}
function userInfo()
{
t=confirm("Click Browse to locate a webpage you wish to convert. Click SRC (nav) or Source (ie) to view the source code. Once the source code appears use these keyboard commands. Ctrl+A (Select All) then Ctrl+C (Copy) the paste into the textarea with Ctrl+V."+
"\n\n_____________________________________________________________________\nSTEPS:"+
"\n1. Click Function and insert a unique function name for each conversion."+
"\n2. Click Target to direct the code to appear in a frame or new window."+
"\n3. If making the code appear in an open window, set the windows variables\n and attributes."+
"\n4. Click the Set Part 1 button (re click this each time you change any settings)."+
"\n5. Paste your code into the textarea if you haven't already done so and press Convert."+
"\n6. Select a link method then press Test to view the result or Print to print the code."+
"\n_____________________________________________________________________\n\nAny Javascript in your document will be "+
"re written in javascript, note that there "+
"are limitations to converting javascript to javascript.\n\n"+
"Occasionally IE will produce an alert if the document is large but this shouldn't"+
" stop the test from working. Navigator should be closed and re opened if tests aren't producing accurate results. \n\nClick OK to register the JavaScripter today!")
if(t==true) {top.location.href="http://www.apo.com.au/anthill/js27.htm"}
}
function info1()
{
ID = getCookie('username')
if(ID=="") ID = ''
if(ID==null) ID = ''
else ID = ID+':\n'
alert(ID+"You deliver the code using the form buttons only for this script.")
}