function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}MM_reloadPage(true);function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}function percentage(a1,a2,a3){var total=a1+a2+a3;var pArray=new Array();if(total==0){pArray[0]="0%";pArray[1]="0%";pArray[2]="0%";return pArray;}pArray[0]=Math.round(a1/total*100*Math.pow(10,2))/Math.pow(10,2)+"%";pArray[1]=Math.round(a2/total*100*Math.pow(10,2))/Math.pow(10,2)+"%";pArray[2]=Math.round(a3/total*100*Math.pow(10,2))/Math.pow(10,2)+"%";return pArray;}function p(b1,b2,b3){var a =new Array();a = percentage(b1,b2,b3);document.write(a[0] + "&nbsp;|&nbsp;" + a[1] + "&nbsp;|&nbsp;" + a[2]);}function percentage2(total,a1){if(total==0){return document.write("0%");}var p=Math.round(a1/total*100*Math.pow(10,2))/Math.pow(10,2)+"%";document.write(p);}function gsum(a1,a2,a3){document.write(a1+a2+a3);}function percentage3(a1,a2,a3,a123){var total=a1+a2+a3;if(total==0){return document.write('<td width="54%" class="wsdc_text2"><TABLE cellSpacing=1 cellPadding=0 width="96%" align=left bgColor=#767676 border=0><TBODY><TR><TD bgColor=#ffffff height="7px"><IMG height="7" src="pages/html/images/vote_co.gif" width="0%"></TD></TR></TBODY></TABLE></td><td width="20%" align="right" class="wsdc_text2">0%</td>');}var p=Math.round(a123/total*100*Math.pow(10,2))/Math.pow(10,2)+"%";document.write('<td width="54%" class="wsdc_text2"><TABLE cellSpacing=1 cellPadding=0 width="96%" align=left bgColor=#767676 border=0><TBODY><TR><TD bgColor=#ffffff height="7px"><IMG height="7" src="pages/html/images/vote_co.gif" width="'+p+'"></TD></TR></TBODY></TABLE></td><td width="20%" align="right" class="wsdc_text2">'+p+'</td>');}function getimage(total,a1){var per;if(total==0){return per = "0%";}per = Math.round(a1/total*100*Math.pow(10,2))/Math.pow(10,2)+"%";document.write('<IMG height="7" src="pages/html/images/vote_co.gif" width="'+per+'">');}function getCount(organId){XMLHttp.sendReq('get', "wlwzbmhy.shtml?sddwId="+organId+"&method=sddw",'', setCount); }function setCount(obj){if(obj.status==200){if(obj.responseText.indexOf(",")!=-1){var a = obj.responseText.split(',');alert(a[0] + "--" + a[1] + "--" + tagId);document.getElementById("test").innerText = percentage2(a[0]+a[1],a[1]);}}}function light(cdate){var d1 = new Date();var d2 = new Date(cdate.replace(/-/g, "/"));if(parseInt((Date.parse(d1) - Date.parse(d2)) / (86400000))  <= 5){document.write('<img src="pages/html/images/green_light.jpg" width="10" height="14" alt="green">');}if(parseInt((Date.parse(d1) - Date.parse(d2)) / (86400000)) > 5 && parseInt((Date.parse(d1) - Date.parse(d2)) / (86400000)) <= 21){document.write('<img src="pages/html/images/yellow_light.jpg" width="10" height="14" alt="yellow">');}if(parseInt((Date.parse(d1) - Date.parse(d2)) / (86400000)) > 21){document.write('<img src="pages/html/images/red_light.jpg" width="10" height="14" alt="red">');}}function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }}function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

