function setFontSize(fSize) { document.body.style.fontSize = fSize+'%'; } function finishedEditing(gotoPage) { strippedFontSize = document.body.style.fontSize.substring(0,document.body.style.fontSize.length-1) document.location.href="http://www.skwebdevelopment.com"+gotoPage+"&customise=no&fontSize="+strippedFontSize; } function getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if (node == null) node = document; if (tag == null) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); for (i = 0, j = 0; i < elsLen; i++) { if (pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; } // Google code function rwt(el,ct,cd,sg) { el.href="/url?sa=t&ct="+escape(ct)+"&cd="+escape(cd)+"&url="+escape(el.href).replace(/\+/g,"%2B")+"&ei=HEcoQ-i0NaGKFILspbgG"+sg;el.onmousedown=""; return true; } function qs(el) { if(window.RegExp && window.encodeURIComponent) { var ue=el.href; var qe=encodeURIComponent(document.f.q.value); if(ue.indexOf("q=")!=-1){ el.href=ue.replace(new RegExp("q=[^&$]*"),"q="+qe); } else{ el.href=ue+"&q="+qe; } } return 1; } // Dropdown Code function toggleObj(menu) { return (navigator.appName == "Microsoft Internet Explorer")?this[menu]:document.getElementById(menu); } function togglevisible(treepart,img,visGraph,hidGraph) { if (this.toggleObj(treepart).style.visibility == "hidden") { this.toggleObj(treepart).style.position="relative"; this.toggleObj(treepart).style.top="0px"; this.toggleObj(treepart).style.left="0px"; this.toggleObj(treepart).style.width=""; this.toggleObj(treepart).style.visibility=""; if(img!='') { this.toggleObj(img).src="http://www.skwebdevelopment.com/images/"+visGraph; } } else { this.toggleObj(treepart).style.position="absolute"; this.toggleObj(treepart).style.left="20%"; this.toggleObj(treepart).style.width="0"; this.toggleObj(treepart).style.visibility="hidden"; if(img!='') { this.toggleObj(img).src="http://www.skwebdevelopment.com/images/"+hidGraph; } } return false; } function checkMe(id) { checkIt = document.getElementById(id).checked; if(checkIt) { document.getElementById(id).checked = false; } document.getElementById(id).checked = true; }