// javscript file var locateCgi = ""; var theUrl = ""; function setLocatCgi(loc) { locateCgi = loc; theUrl = loc+"website/gallery.cgi"; } var theChat="streamtalk/web_chat_index.php"; var theMembers="members/web_main.php"; var theNotices="notices/index.php"; var theApply="db_apply/web.survey.php?show=full"; var theNewApply="db_apply_two/web.survey.php?show=full"; var theResources="resources/web_main.php"; var theBulletin="bulletin/web_main.php"; var theBiographer="biographer/web_main.php"; var theCatalogue="catalogue/index.php"; var theImagestore="db_imagestore/index.php"; function openImagestore(){ resourcesGof = window.open(theImagestore,'Imagestore','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=803,height=553'); } function openCatalogue(){ resourcesGod = window.open(theCatalogue,'Catalogue','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=800,height=550'); } function openBiographer(){ resourcesGoc = window.open(theBiographer,'Biographer','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=800,height=500'); } function openBulletin(){ resourcesGob = window.open(theBulletin,'Bulletin','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=800,height=500'); } function openResources(){ resourcesGoa = window.open(theResources,'Resources','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=800,height=500'); } function openApplicationTwo() { reNewApply = window.open(theNewApply,'Application','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=500,height=600'); } function openApplicationOne() { reApply = window.open(theApply,'Application','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=580,height=600'); } function openNotices(){ noticesGo = window.open(theNotices,'Noticeboards','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=580,height=580'); } function openGallery(){ reWin = window.open(theUrl,'Gallery','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=650,height=600'); } function openChat(){ chatTalk = window.open(theChat,'Chat','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=600,height=480'); } function openMembers(){ membersGo = window.open(theMembers,'Members','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=830,height=500'); } function SubmitContent() { document.mailgate.button.disabled = true; document.mailgate.button.value = 'Please Wait'; document.mailgate.submit(); } function DropDownMenu(entered) { var theUrl2 = theUrl; var theChat2 = "streamtalk/web_chat_index.php"; var theMembers2 ="members/web_main.php"; with (entered) { ref=options[selectedIndex].value; splitcharacter=ref.lastIndexOf("&"); if (splitcharacter!=-1) {loc=ref.substring(0,splitcharacter); target=ref.substring(splitcharacter+1,1000).toLowerCase();} else {loc=ref; target="_self";}; lowloc=loc.toLowerCase(); if (lowloc=="false") {return;} if (target=="_self") {document.location=loc;} else {if (target=="_top") {top.location=loc;} else {if (target=="_chat") {window.open(theChat2,'Chat','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=600,height=480');} else{if (target=="_gallery") {window.open(theUrl2,'Gallery','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=650,height=600');} else{if (target=="_members") {window.open(theMembers2,'Members','toolbar=0,scrollbars=1,location=0,status=1,menubar=0,resizable=1,width=1000,height=500');} else {if (target=="_video") {window.open("video/index.html","Video_Console","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,top=100,left=100,width=242,height=400");} else {if (target=="_audio") {window.open("audio/index.html","Audio_Console","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,top=50,left=50,width=242,height=400");} else {parent.frames[target].location=loc;}; } } } } } } } } function preloadImages() { if(document.images) { if(!document.imageArray) document.imageArray = new Array(); var i,j = document.imageArray.length, args = preloadImages.arguments; for(i=0; i 0) { var field = document.forms[0]; for (i = 0; i < field.length; i++) { if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) { document.forms[0].elements[i].focus(); break; } } } } window.onerror = myOnError msgArray = new Array() urlArray = new Array() lnoArray = new Array() function myOnError(msg, url, lno) { msgArray[msgArray.length] = msg urlArray[urlArray.length] = url lnoArray[lnoArray.length] = lno // displayErrors() return true } function displayErrors() { win2=window.open('','window2','scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=600,height=300,top=100,left=100') win2.document.writeln('Javascript Error Report

') for (var i=0; i < msgArray.length; i++) { win2.document.writeln('Error in file: ' + urlArray[i] + '
') win2.document.writeln('Line number: ' + lnoArray[i] + '
') win2.document.writeln('Message: ' + msgArray[i] + '

') win2.document.writeln('Please report this to your web developer

') } win2.document.close() }