// JavaScript Document function setchange() { // This function Copyright 2007 Adam Smith // adam@precisedesign.com | www.precisedesign.com // You may use this function on your web pages, provided this credit stays intact. var inputs=document.getElementsByTagName("input"); for (var i=0;i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i]+javascript[^>]+>\s*()?\s*<\/script>)/))) break; block = search.substr(0, search.indexOf(RegExp.$1)); search = search.substring(block.length + RegExp.$1.length); var oScript = document.createElement('script'); oScript.text = block; document.getElementsByTagName("head").item(0).appendChild(oScript); } } else { document.getElementById('cover_div').className = ""; alert('There was a problem with the request.'); } } } function getc(url,formname) { var params = ' '; document.getElementById('cover_div').className = "fade_on"; pageurl = pagehost+'/'+url; if (document.getElementById('printlink')) { document.getElementById('printlink').href = url+'&print=yes'; } if (formname != '' && formname != null) { params = ''; var elem = document.forms[formname].elements; count = 0; for(var i = 0; i < elem.length; i++) { if (elem[i].type != 'button' && elem[i].type != 'submit') { count++; if (count > 1) { params += "&"; } if (elem[i].type == 'checkbox' || elem[i].type == 'radio') { if (elem[i].checked == true) { params += elem[i].name+"="+encodeURIComponent(elem[i].value); } } else { params += elem[i].name+"="+encodeURIComponent(elem[i].value); } } } //alert(params); var file_name = document.location.href; var end = (file_name.indexOf("?") == -1) ? file_name.length : file_name.indexOf("?"); pageurl = pagehost+'/'+file_name.substring(file_name.lastIndexOf("/")+1, end)+'?'+params; if (document.getElementById('printlink')) { document.getElementById('printlink').href = '?'+params+'&print=yes'; } } makePOSTRequest(url,params); } function chkWidth(getimage, maxwidth){ if (getimage.width > maxwidth) { oldwidth = getimage.width; oldheight = getimage.height; newheight = parseInt(oldheight * maxwidth / oldwidth); getimage.width = maxwidth; getimage.height = newheight; //alert("New width = "+maxwidth+" New height = "+newheight); getimage.style.marginLeft = 0; getimage.style.marginRight = 0; } } /*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var menuwidth='150px' //default menu width var menubgcolor='#868686' //menu bgcolor var disappeardelay=350 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? var ie4=document.all var ns6=document.getElementById&&!document.all function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top="-500px" if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)
'; document.getElementById(divid).appendChild(newspan); currentnum++; } function remitem(divid,x) { var oldspan = document.getElementById(divid+x); document.getElementById(divid).removeChild(oldspan); }