function deleteAllCookies(){var a=document.cookie.split(";");for(var b=0;b-1?c.substr(0,d):c;document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}}function difference(a,b){if(a>b)return Math.abs(a-b);else return Math.abs(b-a)}function angulardifference(a,b){var c;if(a>=180)a=a-360;if(b>=180)b=b-360;if(a<-180)a=360-a;if(b<-180)b=360-b;if(b>a)c=b-a;if(b<=a)c=-(a-b);if(c>180)c=c-360;if(c<-180)c=180-c;return c}function setlocaltimeinhtmlfields(){var a,b,c,d,e,f,g,h;a=new Date;c=a.getMonth()+1;b=a.getDate();d=a.getFullYear();e=a.getHours();f=a.getMinutes();g=a.getSeconds();document.getElementById("YearNow").value=1*d;document.getElementById("Month").value=1*c;document.getElementById("Day").value=1*b;document.getElementById("Hour").value=1*e;document.getElementById("Minute").value=1*f;document.getElementById("Second").value=1*g;document.getElementById("LocalTimeZoneDescription").innerHTML=get_timezone_offset_text()}function onchange_antenna_size(){AntSize=1*document.getElementById("AntSize").value;document.getElementById("AntSizeFeet").value=formatvalue(AntSize*metertofeet,4);document.getElementById("AntSizeInches").value=formatvalue(AntSize*metertoinch,5);SetCookie();print_outages()}function onchange_antenna_size_feet(){var a;a=1*document.getElementById("AntSizeFeet").value;AntSize=a*feettometer;document.getElementById("AntSize").value=formatvalue(AntSize,4);document.getElementById("AntSizeInches").value=formatvalue(a*feettoinch,5);SetCookie();print_outages()}function onchange_antenna_size_inches(){var a;a=1*document.getElementById("AntSizeInches").value;AntSize=a*inchtometer;document.getElementById("AntSize").value=formatvalue(AntSize,4);document.getElementById("AntSizeFeet").value=formatvalue(a*inctofeet,5);SetCookie();print_outages()}function onchange_band(){if(document.getElementById("c-band").checked==true)Frequency=3.95;else if(document.getElementById("ku-band").checked==true)Frequency=11.95;else if(document.getElementById("user-band").checked==true)Frequency=1*document.getElementById("Frequency").value;document.getElementById("Frequency").value=Frequency;SetCookie();print_outages()}function onchange_frequency(){document.getElementById("user-band").checked=true;Frequency=1*document.getElementById("Frequency").value;SetCookie();print_outages()}function onchange_year(){Year=1*document.getElementById("Year").value;print_outages()}function onchange_season(){if(document.getElementById("Spring").checked==true)season=0;else season=1;print_outages()}function find_peak_latitude(a){var b,c,d,e,f,g;d="N/A2";g=90;document.getElementById("SunInt_Peak_Latitude").innerHTML="
";for(c=-9e4;c<9e4;c++){b=Deg(-Math.atan2(3964*Math.sin(Radians(c/1e3)),22300+3964*(1-Math.cos(Radians(c/1e3)))));if(3964*(1-Math.cos(Radians(c/1e3))==-22300))d="N/A3";else if(Math.abs(difference(b,a))"}function set_todays_dateandtime(){var a,b,c,d,e,f,g,h;a=new Date;c=a.getUTCMonth()+1;b=a.getUTCDate();d=a.getUTCFullYear();e=a.getUTCHours();f=a.getUTCMinutes();g=a.getUTCSeconds();h=daynumber(b,c,d,e,f,g);return h}function getsunintpeak(){var a}function getPeakLatitude(a){var b,c,d,e,f,g,h,i,j;var k,l,m,n,o;var p,q,r,s;var t=new Array;e=.01;o=.01;n=.01;f="---";l=1;i=a;sunangles=sun_angles(i,60,60);SunDeclination=sunangles[2];outage_beamwidth=calculateantennabeamwidth(1*Frequency,1*AntSize,70);if(SunDeclination<0){if(SunDeclination-outage_beamwidth>-8.6833)r=SunDeclination-outage_beamwidth;if(SunDeclination+outage_beamwidth>-8.6833)s=SunDeclination+outage_beamwidth}else{if(SunDeclination+outage_beamwidth<8.6833)r=SunDeclination+outage_beamwidth;if(SunDeclination-outage_beamwidth<8.6833)s=SunDeclination-outage_beamwidth}if(SunDeclination<0)m=1;else m=-1;document.getElementById("SunInt_Peak_Latitude").innerHTML="---";b=SimpleElevationEquatorCrossing(0,79,0,0);for(g=-8130;g<8130;g++){j=g/100;b=SimpleElevationEquatorCrossing(0,Math.abs(j),0,0);if(SunDeclination>0)d=-CalculateDeclination2(Math.abs(j),180,b);else d=CalculateDeclination2(Math.abs(j),180,b);if(d>0)m=-1;else m=1;if(Math.abs(difference(SunDeclination,d))0){if(SunDeclination<0)f=-j;else f=j;e=Math.abs(difference(d,SunDeclination))}}document.getElementById("SunInt_Peak_Latitude").innerHTML=document.getElementById("SunInt_Peak_Latitude").innerHTML+" InpoutDecl= "+SunDeclination+" Found lat="+f+" Recalc Decl"+h+" SelectedSatLon "+SatLon+" Outage beamwidth "+outage_beamwidth+" Date: "+d_to_date_and_time(i)+"
";t[0]=f;t[1]=l;t[2]=SunDeclination;t[3]=p;t[4]=q;return t}function getCorrectedPeakLatitude(a,b,c,d,e,f,g){var h,i,j,k,l,m,n,o,p;var q,r,s,t,u;var v,w,x,y;var z=new Array;k=.01;u=.01;t=.01;l="---";r=1;o=a;sunangles=sun_angles(o,60,60);SunDeclination=sunangles[2];outage_beamwidth=calculateantennabeamwidth(1*Frequency,1*AntSize,70);if(SunDeclination<0){if(SunDeclination-outage_beamwidth>-8.6833)x=SunDeclination-outage_beamwidth;if(SunDeclination+outage_beamwidth>-8.6833)y=SunDeclination+outage_beamwidth}else{if(SunDeclination+outage_beamwidth<8.6833)x=SunDeclination+outage_beamwidth;if(SunDeclination-outage_beamwidth<8.6833)y=SunDeclination-outage_beamwidth}if(SunDeclination<0)s=1;else s=-1;document.getElementById("SunInt_Peak_Latitude").innerHTML="---";h=SimpleElevationEquatorCrossing(0,79,0,0);for(m=-8130;m<8130;m++){p=m/100;j=GetVariableDeclination(b,p,d,e,f,g);if(j>0)s=-1;else s=1;if(Math.abs(difference(SunDeclination,j))0){if(SunDeclination<0)l=p;else l=p;k=Math.abs(difference(j,SunDeclination))}}document.getElementById("SunInt_Peak_Latitude").innerHTML=document.getElementById("SunInt_Peak_Latitude").innerHTML+" InpoutDecl= "+SunDeclination+" Found lat="+l+" Recalc Decl"+n+" SelectedSatLon "+b+" Outage beamwidth "+outage_beamwidth+" Date: "+d_to_date_and_time(o)+"";z[0]=l;z[1]=r;z[2]=SunDeclination;z[3]=v;z[4]=w;return z}function getPeakMaxMinLatitude(a){var b,c,d,e,f,g,h,i,j;var k,l,m,n,o;var p,q,r,s;var t,n,o;var u=new Array;e=.01;o=.01;n=.01;f="---";l=1;i=a;sunangles=sun_angles(i,60,60);SunDeclination=sunangles[2];outage_beamwidth=calculateantennabeamwidth(1*Frequency,1*AntSize,70);if(Math.abs(SunDeclination+outage_beamwidth+.27)<8.6833)r=SunDeclination+outage_beamwidth+.25;if(Math.abs(SunDeclination-outage_beamwidth-.27)<8.6833)s=SunDeclination-outage_beamwidth-.25;else n=1;if(SunDeclination<0)m=1;else m=-1;document.getElementById("SunInt_Peak_Latitude").innerHTML="---";b=SimpleElevationEquatorCrossing(0,79,0,0);for(g=-8130;g<8130;g++){j=g/100;b=SimpleElevationEquatorCrossing(0,Math.abs(j),0,0);d=GetVariableDeclination(0,j,0,0,0,42164.14);if(d>0)m=-1;else m=1;if(Math.abs(difference(SunDeclination,d))0){f=j;e=Math.abs(difference(d,SunDeclination))}if(Math.abs(difference(s,d))0){q=j;n=Math.abs(difference(d,s))}if(Math.abs(difference(r,d))0){p=j;o=Math.abs(difference(d,r))}}u[0]=f;u[1]=l;u[2]=SunDeclination;u[3]=p;u[4]=q;return u}function getcorrectdeclination(a,b,c){var d,e,f;e=Elevation2(a,b,c,0,0,42164.57);d=Azimuth2(a,b,c,0,0,42164.57);f=CalculateDeclination2(b,d,e);return f}function test_sat_HA_for_all_Lon(a,b){var c,d,e,f,g,h,i,j;var k;k=1*SatLon;i=SimpleElevationEquatorCrossing(0,a,0,0);j=CalculateDeclination2(a,180,i);for(c=0;c<360;c++){d=c;h=Elevation2(k,a,d,0,0,42164.57);g=Azimuth2(k,a,d,0,0,42164.57);f=CalculateDeclination2(1*a,g,h);f=j;e=CalculateSatHourangle(g,0,j,a)}}function getPeakLongitude(a,b){var c,d,e,f,g,h,j;var k,l;var m=new Array;var n,o,p,q,r,s,t;var u,v;h="---";s="N/A";t="N/A";k=1*SatLon;g=.01;document.getElementById("SunInt_Peak_Longitude").innerHTML="---";var w=new Array;for(i=0;i<36e3;i++){l=i/100;if(l==0)l=1e-6;if(l==90)l=90.000001;if(l==270)l=270.000001;if(l==360)l=359.999999;m=sun_angles(a,l,b);j=m[14];u=m[2];e=Elevation2(k,b,l,0,0,42164.57);d=Azimuth2(k,b,l,0,0,42164.57);f=CalculateDeclination2(1*b,d,e);c=CalculateSatHourangle(d,e,f,b);c=CalculateSatHourangle(d,e,1*u,b);v=difference(u,f);w[1]=b+v;r=0;q=0;if(b<0){if(c>270&&c<90)r=1;if(j>270&&j<90)q=1}else{if(c>90&&c<270)r=1;if(j>90&&j<270)q=1}r=1;q=1;if(Math.abs(difference(c,j))0&&q!=0&&r!=0){h=1*l;if(e<0)h="---";h=1*l;s=j;t=c;g=Math.abs(difference(c,j))}}document.getElementById("SunInt_Peak_Latitude").innerHTML=document.getElementById("SunInt_Peak_Latitude").innerHTML+"
\n SatDecl:"+f;o=b;if(h!="---")n=h;else if(h=="---")n=h;if(h!="---"&&q!=0&&r!=0){var x;if(n>180)x=n-360;else x=n;var y=new google.maps.LatLng(o,x);document.getElementById("SunInt_Peak_Longitude").innerHTML=document.getElementById("SunInt_Peak_Longitude").innerHTML+" LastMinOffset: "+g+" SunHourangle= "+s+" SatDecl="+f+" Found lon="+h+" SiteLat "+b+" SelectedSatLon "+SatLon+" Outage beamwidth "+outage_beamwidth+" Date: "+d_to_date_and_time(a)+"\n found_sun_HA:"+s+" found_sat_HA:"+t+""}test_sat_HA_for_all_Lon(b,s);w[0]=n;return w}function getFastPeakLongitude(a,b){var c,d,e,f,g,h,j;var k,l;var m=new Array;var n,o,p,q,r,s,t;var u,v;h="---";s="N/A";t="N/A";k=1*SatLon;g=1;document.getElementById("SunInt_Peak_Longitude").innerHTML="---";var w=new Array;for(i=0;i<360;i++){l=i;if(l==0)l=1e-6;if(l==90)l=90.000001;if(l==270)l=270.000001;if(l==360)l=359.999999;m=sun_angles(a,l,b);j=m[14];u=m[2];e=Elevation2(k,b,l,0,0,42164.57);d=Azimuth2(k,b,l,0,0,42164.57);f=CalculateDeclination2(1*b,d,e);c=CalculateSatHourangle(d,e,f,b);c=CalculateSatHourangle(d,e,1*u,b);v=difference(u,f);w[1]=b+v;r=0;q=0;if(b<0){if(c>270&&c<90)r=1;if(j>270&&j<90)q=1}else{if(c>90&&c<270)r=1;if(j>90&&j<270)q=1}r=1;q=1;if(Math.abs(difference(c,j))0&&q!=0&&r!=0){h=1*l;if(e<0)h="---";h=1*l;s=j;t=c;g=Math.abs(difference(c,j))}}document.getElementById("SunInt_Peak_Latitude").innerHTML=document.getElementById("SunInt_Peak_Latitude").innerHTML+"
\n SatDecl:"+f;o=b;if(h!="---")n=h;else if(h=="---")n=h;if(h!="---"&&q!=0&&r!=0){var x;if(n>180)x=n-360;else x=n;var y=new google.maps.LatLng(o,x);document.getElementById("SunInt_Peak_Longitude").innerHTML=document.getElementById("SunInt_Peak_Longitude").innerHTML+" LastMinOffset: "+g+" SunHourangle= "+s+" SatDecl="+f+" Found lon="+h+" SiteLat "+b+" SelectedSatLon "+SatLon+" Outage beamwidth "+outage_beamwidth+" Date: "+d_to_date_and_time(a)+"\n found_sun_HA:"+s+" found_sat_HA:"+t+""}test_sat_HA_for_all_Lon(b,s);w[0]=n;return w}function placeMarker(a){marker=new google.maps.Marker({position:a,map:map})}function clearmarkers(){clearInterval(autointerval)}function draw_footprint(a,b,c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;var v=new Array;j=angulardifference(b,c);i=j;document.getElementById("SunInt_misc").innerHTML="Lon_SB: "+i;h=Deg(Math.acos(Math.cos(Radians(a))*Math.cos(Radians(i))));h=Rev(h);g=Deg(Math.atan2(Math.sin(Radians(h)),6.6235-Math.cos(Radians(h))));if(f!="NA"){g=f*1}k=Deg(Math.acos(Math.cos(Radians(g))*Math.cos(Radians(e))+Math.sin(Radians(g))*Math.sin(Radians(e))*Math.cos(Radians(d))));s=Math.sin(Radians(d));t=Math.sin(Radians(g))*Math.cos(Radians(e))/Math.sin(Radians(e));t=t-Math.cos(Radians(g))*Math.cos(Radians(d));l=Deg(Math.atan2(s,t));m=Deg(Math.atan2(Math.sin(Radians(i)),Math.tan(Radians(a))))+l;n=Deg(Math.asin(6.6235*Math.sin(Radians(k))))-k;o=Deg(Math.asin(Math.sin(Radians(n))*Math.cos(Radians(m))));p=Deg(Math.atan2(Math.tan(Radians(n))*Math.sin(Radians(m)),1));r=c-p;u=o;if(r<0)r=r+360;q=new google.maps.LatLng(u,r);return q}function test_draw_footprint(a,b,c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;var v=new Array;j=angulardifference(b,c);i=j;document.getElementById("SunInt_misc").innerHTML="Lon_SB: "+i;h=Deg(Math.acos(Math.cos(Radians(a))*Math.cos(Radians(i))));h=Rev(h);g=Deg(Math.atan2(Math.sin(Radians(h)),6.6235-Math.cos(Radians(h))));if(f!="NA")g=-f*1;k=Deg(Math.acos(Math.cos(Radians(g))*Math.cos(Radians(e))+Math.sin(Radians(g))*Math.sin(Radians(e))*Math.cos(Radians(d))));s=Math.sin(Radians(d));t=Math.sin(Radians(g))*Math.cos(Radians(e))/Math.sin(Radians(e));t=t-Math.cos(Radians(g))*Math.cos(Radians(d));l=Deg(Math.atan2(s,t));m=Deg(Math.atan2(Math.sin(Radians(i)),Math.tan(Radians(a))))+l;n=Deg(Math.asin(6.6235*Math.sin(Radians(k))))-k;alert(n);o=Deg(Math.asin(Math.sin(Radians(n))*Math.cos(Radians(m))));p=Deg(Math.atan2(Math.tan(Radians(n))*Math.sin(Radians(m)),1));r=c-p;u=o;if(r<0)r=r+360;v[0]=1*i;v[1]=1*h;v[2]=1*g;v[3]=1*k;v[4]=1*l;v[5]=1*m;v[6]=1*o;v[7]=1*r;v[8]=1*u;v[9]=1*b;v[10]=1*a;v[11]=1*c;v[12]=1*d;v[13]=1*e;v[14]=1*n;var w;w="\nSatLon: "+v[11];w+="\nBoresLON:"+v[9];w+="\nBoresLAT:"+v[10];w+="\nLonSB:"+v[0];w+="\nBeta:"+v[1]+" (coverageangle, lat korrigert for flattning?)";w+="\nYb:"+v[2]+" (declination)";w+="\nYn:"+v[3]+" (declination point n, korriger denne for hyere deklinasjon?)";w+="\nB_n:"+v[14]+"(beta point n)";w+="\nFi_n:"+v[4];w+="\nE_n:"+v[5];w+="\nLat_n_point:"+v[6];w+="\nLon n point:"+v[7];w+="\nLat n point:"+v[8];w+="\nW rotation:"+v[12];w+="\nBeamwidth:"+v[13];alert(w);return output_array}function test_footprint(){var a=new Array;var b;a=test_draw_footprint(50,10,0,90,1,"NA");alert(1*a[0]+"test");b="\nSatLon: "+1*a[11];b+="\nBoresLON:"+a[9];b+="\nBoresLAT:"+a[10];b+="\nLonSB:"+a[0];b+="\nBeta:"+a[1];b+="\nYb:"+a[2]+" (declination?)";b+="\nYn:"+a[3];b+="\nFi_n:"+a[4];b+="\nE_n:"+a[5];b+="\nLat_n_point:"+a[6];b+="\nLon n point:"+a[7];b+="\nLat n point:"+a[8];b+="\nW rotation:"+a[12];b+="\nBeamwidth:"+a[13];alert(b)}function PlaceCoveragemarkers(a){var b="http://maps.google.com/mapfiles/marker_whiteA.png";coveragemarkers=new google.maps.Marker({position:a,map:map,icon:b});var c="Coverage Marker
"}function PlaceNan1markers(a){var b="http://maps.google.com/mapfiles/marker_purpleA.png";Nan1markers=new google.maps.Marker({position:a,map:map,icon:b});var c="NaN1 start
"}function PlaceNaN2markers(a){var b="http://maps.google.com/mapfiles/marker_yellowA.png";NaN2markers=new google.maps.Marker({position:a,map:map,icon:b});var c="NaN2 stop
"}function PlaceGlobalNaN1markers(a){var b="http://maps.google.com/mapfiles/dd-start.png";GlobalNaN1markers=new google.maps.Marker({position:a,map:map,icon:b});var c="GobalNaN1 Start
"}function PlaceGlobalNaN2markers(a){var b="http://maps.google.com/mapfiles/dd-end.png";GlobalNaN2markers=new google.maps.Marker({position:a,map:map,icon:b});var c="GobalNaN2 Stop
"}function PlaceSitemarker(a){var b="http://www.birdtheme.org/useful/images/square.png";SiteMarker=new google.maps.Marker({position:a,map:map,icon:b});var c="SiteMarker
"}function draw_satellite_coverage_aera(){var a=[];var b,c,d,e;if(SatLon>180)d=SatLon-360;else d=SatLon;if(coverage_polygon1!=null)coverage_polygon1.setMap(null);if(polygon1!=null)polygon1.setMap(null);if(coveragemarkers!=null)coveragemarkers.setMap(null);if(marker!=null)marker.setMap(null);for(b=0;b<361;b++){c=b;e=draw_footprint(0,d,d,c,8.683333333333334,"NA");if(!isNaN(e.lng())&&!isNaN(e.lat()))a.push(e)}var f={path:a,strokeColor:"green",strokeOpacity:1,strokeWeight:2};globalcoveragearray=a;coverage_polygon1=new google.maps.Polyline(f);coverage_polygon1.setMap(map)}function footprinttestplotter(){var a=new Array;var b,c,d,e,f,g;if(SatLon>180)b=SatLon-360;else b=SatLon;c="";outage_beamwidth=calculateantennabeamwidth(1*Frequency,1*AntSize,70);document.getElementById("SunInt_lonsearch").innerHTML='';var h=new Array;c="
";for(i=0;i<361;i++){e=110;f=55;g=359.2;a=get_skew(f,e,g,i,outage_beamwidth);d=new google.maps.LatLng(a[7],a[9]);if(!isNaN(d.lat())&&!isNaN(d.lng()))h.push(d);c=c+""}document.getElementById("SunInt_lonsearch").innerHTML=c+"
Vridning: "+i+"Lon_SB: "+a[0]+"Beta: "+a[1]+"Yb: "+a[2]+"Yn: "+a[3]+"Fi_n: "+a[4]+"E_n: "+a[5]+"B_n: "+a[6]+"Lat_n_point: "+a[7]+"Lon_n_point_rel_to_sub_point: "+a[8]+"LonReal: "+a[9]+"
";var j={path:h,strokeColor:"blue",strokeOpacity:1,strokeWeight:1,fillColor:"#0000FF",fillOpacity:.2};polygon1=new google.maps.Polygon(j);polygon1.setMap(map)}function calcTime(a){d=new Date;utc=d.getTime()+d.getTimezoneOffset()*6e4;nd=new Date(utc+36e5*offset);return 1}function print_max_north_south_outage(a){var b=[];var c,d,e,f;var g=[];var h=[];var i,j;i=80.88;b=getPeakMaxMinLatitude(a);e=b[0];d=1*b[3];c=1*b[4];if(polygon_max_min_lat_for_outage!=null)polygon_max_min_lat_for_outage.setMap(null);if(polyline_peaklat!=null)polyline_peaklat.setMap(null);if(polygon_max_min_lat_for_outage!=null)google.maps.event.clearListeners(polygon_max_min_lat_for_outage,"click");if(!isNaN(d)&&!isNaN(c)){h[0]=new google.maps.LatLng(d,-180);h[1]=new google.maps.LatLng(d,0);h[2]=new google.maps.LatLng(d,180);h[3]=new google.maps.LatLng(c,180);h[4]=new google.maps.LatLng(c,0);h[5]=new google.maps.LatLng(c,-180);var k={path:h,strokeColor:"orange",strokeOpacity:0,strokeWeight:1,fillColor:"orange",fillOpacity:.2};polygon_max_min_lat_for_outage=new google.maps.Polygon(k);polygon_max_min_lat_for_outage.setMap(map);google.maps.event.addListener(polygon_max_min_lat_for_outage,"click",calculatesunintdate)}else if(!isNaN(d)&&isNaN(c)){h[0]=new google.maps.LatLng(d,-180);h[1]=new google.maps.LatLng(d,0);h[2]=new google.maps.LatLng(d,180);h[3]=new google.maps.LatLng(i,180);h[4]=new google.maps.LatLng(i,0);h[5]=new google.maps.LatLng(i,-180);var k={path:h,strokeColor:"orange",strokeOpacity:0,strokeWeight:1,fillColor:"orange",fillOpacity:.2};polygon_max_min_lat_for_outage=new google.maps.Polygon(k);polygon_max_min_lat_for_outage.setMap(map);google.maps.event.addListener(polygon_max_min_lat_for_outage,"click",calculatesunintdate)}else if(isNaN(d)&&!isNaN(c)){h[0]=new google.maps.LatLng(-i,-180);h[1]=new google.maps.LatLng(-i,0);h[2]=new google.maps.LatLng(-i,180);h[3]=new google.maps.LatLng(c,180);h[4]=new google.maps.LatLng(c,0);h[5]=new google.maps.LatLng(c,-180);var k={path:h,strokeColor:"orange",strokeOpacity:0,strokeWeight:1,fillColor:"orange",fillOpacity:.2};polygon_max_min_lat_for_outage=new google.maps.Polygon(k);polygon_max_min_lat_for_outage.setMap(map);google.maps.event.addListener(polygon_max_min_lat_for_outage,"click",calculatesunintdate)}if(!isNaN(e)){var l,m;if(SatLon>360)l=SatLon-360;else l=SatLon;g[0]=new google.maps.LatLng(1*e,-179.99);g[1]=new google.maps.LatLng(1*e,0);g[2]=new google.maps.LatLng(1*e,180);var n={path:g,strokeColor:"red",strokeOpacity:.5,strokeWeight:1};polyline_peaklat=new google.maps.Polyline(n);polyline_peaklat.setMap(map)}}function test_t_ant(){var a;a=getAntennaNoiseTemp(1*Frequency,1*AntSize)}function getAntennaNoiseTemp(a,b,c){var d,e,f,g,h,i;var j;var k,l,m;j=.53;d=.5;e=d*12e4*Math.pow(a,-.75);k=3e8;m=Math.PI;l=k/(a*1e3*1e3*1e3);i=70*l/b;if(i>j){h=d*e*(j/i)*(j/i);alert("Antenna halfpower bw larger than the Sun")}else{h=d*e;alert("Antenna halfpower bw smaller than the Sun")}alert("Ts: "+e+" Tant: "+h+" HalfPowerBw "+i+" "+formatvalue(10*log10((155+h)/155),5)+" dB"+formatvalue(10*log10(h),5)+" dB");return h}function getAffectedSatPositions(a,b){var c;c=Math.sqrt((8.69+b)*(8.69+b)-a*a);return c}function getOutageSpanForSelectedSatellite(a,b){}function getOutageSpan(a,b){var c;c=Math.sqrt((8.69+b)*(8.69+b)-a*a);return c}function get_global_start_and_stop_time_for_selected_satellite_date(a,b,c,d,e,f,g,h,i,j){var k=new Array;var l=new Array;var m,n,o,p,q;var r,s,t,u,v,w,x;var y,z,A,B,C,D,E,F;var G,H,I;var J;var K;var L=new Array;K=0;H="";J=.25;x=calculateantennabeamwidth(f,g,70);G=8.69+x+J;w=0;t=180;v=180;m=sun_declination_refraction(1*j,b,c);z=SunAtSatAzimuth(j,280,a,0,v);I=Math.floor(j)+z/24;m=sun_declination_refraction(1*I,b,50);z=SunAtSatAzimuth(I,280,a,0,v);I=Math.floor(j)+z/24;if(Math.abs(m)L[0]&&j0){z=d-w;A=Rev(d+w)}else{z=d+w;A=Rev(d-w)}h=SunAtSatAzimuth(a,280,b,c,z);u=1*(Math.floor(a)+1*(h/24));u=Math.floor(a)+h/24;h=SunAtSatAzimuth(u,280,b,c,z);u=1*(Math.floor(u)+1*(h/24));m=SunAtSatAzimuth(a,280,b,c,A);v=1*(Math.floor(a)+1*(m/24));m=SunAtSatAzimuth(v,280,b,c,A);v=1*(Math.floor(v)+1*(m/24));if(va)u=u-1;t=q*2*(24*60/360);r=Math.floor(t);s=Math.floor((t-r)*60);if(r<10)r="0"+r;if(s<10)s="0"+s;x[0]=u;x[1]=v;x[2]=a;x[3]=t;x[4]=e;return x}function showsunlongitude(){var a,b,c,d;var e,f,g,h,i,j,k,l;var m,n;var o=[];var p=[];var q=new Date;var r,s;a=set_todays_dateandtime();e=1*document.getElementById("YearNow").value;f=1*document.getElementById("Month").value;g=1*document.getElementById("Day").value;h=1*document.getElementById("Hour").value;i=1*document.getElementById("Minute").value;j=1*document.getElementById("Second").value;k=daynumber(g,f,e,h,i,j);k=k+q.getTimezoneOffset()/(60*24);a=k;o=sun_angles(a,0,0);document.getElementById("sunlongitude").innerHTML="";document.getElementById("sunlongitude").style.color="red";b=1*o[12];c=1*o[2];var t;t="";p=get_global_start_and_stop_time_for_selected_satellite_date(SatLon,SiteLon,SiteLat,0,e,1*Frequency,1*AntSize,0,1*Geosync_radius,a);if(p[1]<=a)p=get_global_start_and_stop_time_for_selected_satellite_date(SatLon,SiteLon,SiteLat,0,e,1*Frequency,1*AntSize,0,1*Geosync_radius,1*(a+1));d=calculateantennabeamwidth(1*Frequency,1*AntSize,70);c=Math.abs(c);l=getAffectedSatPositions(c,1*(d+.25));if(isNaN(l)){document.getElementById("sunlongitude").style.color="blue";document.getElementById("sunlongitude").innerHTML="No potential outages for this date&time"}else{m=Rev(DegEastFormat(b-l));n=Rev(DegEastFormat(b+l));document.getElementById("sunlongitude").innerHTML="";if(b<180)t=formatvalue(b,5)+"E ";else t=formatvalue(b,5)+"E ("+formatvalue(360-b,5)+"W)";if(m<180)r=formatvalue(m,5)+"E";else r=formatvalue(m,6)+"E ("+formatvalue(360-m,6)+"W)";if(n<180)s=formatvalue(n,5)+"E";else s=formatvalue(n,6)+"E ("+formatvalue(360-n,6)+"W)";document.getElementById("sunlongitude").innerHTML=document.getElementById("sunlongitude").innerHTML+'
Sun interference has just started at '+r+" and just ended at "+s+"";document.getElementById("sunlongitude").innerHTML=document.getElementById("sunlongitude").innerHTML+"
Sun@Earth Longitude: "+t+"";document.getElementById("sunlongitude").innerHTML=document.getElementById("sunlongitude").innerHTML+"

Outages in coverage area for selected satellite will start at: "+d_to_date_and_time(p[0]);document.getElementById("sunlongitude").innerHTML=document.getElementById("sunlongitude").innerHTML+"
Outages in coverage area for selected satellite will stop at: "+d_to_date_and_time(p[1]);document.getElementById("sunlongitude").innerHTML=document.getElementById("sunlongitude").innerHTML+"
Sun transit Satellite Longitude at : "+d_to_date_and_time(p[2])}}function print_footprint_on_google_map(a,b){var c,d,e,f;var g,h,i,j,k,l,m,n,o;var p=[];var q=[];var r=[];var s=[];var t=[];var u,v,w,x,y,z,A,B;var C,D,E,F,G,H;var I=new Array;var J;var K,L,M,N,O,P,Q,R;var S=new Date;var T=new Array;var U=[];var V=new Array;showsunlongitude();f=0;u=SatLon;c=set_todays_dateandtime();K=1*document.getElementById("YearNow").value;L=1*document.getElementById("Month").value;M=1*document.getElementById("Day").value;N=1*document.getElementById("Hour").value;O=1*document.getElementById("Minute").value;P=1*document.getElementById("Second").value;Q=daynumber(M,L,K,N,O,P);Q=Q+S.getTimezoneOffset()/(60*24);c=Q;print_max_north_south_outage(c);document.getElementById("showtimecalculated").innerHTML=d_to_date_and_time(c);I=getPeakLatitude(c);z=85;d=1*I[0];y=1*I[1];J=1*I[2];V=getPeakLongitude(c,1*d);e=V[0];I=getCorrectedPeakLatitude(c,a,1*d,1*e,0,0,Geosync_radius);d=1*I[0];V=getPeakLongitude(c,1*d);e=1*V[0];I=getCorrectedPeakLatitude(c,a,1*d,1*e,0,0,Geosync_radius);d=1*I[0];V=getPeakLongitude(c,1*d);e=1*V[0];I=getCorrectedPeakLatitude(c,a,1*d,1*e,0,0,Geosync_radius);d=1*I[0];V=getPeakLongitude(c,1*d);e=1*V[0];if(marker!=null)marker.setMap(null);if(polygon1!=null)polygon1.setMap(null);if(!isNaN(d)&&!isNaN(e)&&e!="---"&&e<9999){for(g=0;g<361;g++){i=g;l=draw_footprint(d,e,a,i,b,"NA");h=new google.maps.LatLng(l.lat(),l.lng());q[g]=h;if(!isNaN(h.lng())&&!isNaN(h.lat()))p.push(h);if(isNaN(h.lng())&&isNaN(h.lat()))f=1}if(f>0){F=google.maps.geometry.spherical.computeDistanceBetween(p[0],p[p.length-1]);E=F;F=google.maps.geometry.spherical.computeDistanceBetween(p[0],p[1]);if(F>E)C=0;E=F;for(g=1;gE)C=g;E=F}if(C>1)D=C-1;else D=p.length-1;if(C>D){var W,X;W=C;X=D;C=X;D=W}E=1e+31;var Y,Z;if(e>180)Y=e-360;else Y=e;if(a>180)Z=a-360;else Z=a;for(g=0;g<360;g++){F=google.maps.geometry.spherical.computeDistanceBetween(p[C],globalcoveragearray[g]);if(F-1;g--){F=google.maps.geometry.spherical.computeDistanceBetween(p[C],globalcoveragearray[g]);if(F-1;g--){F=google.maps.geometry.spherical.computeDistanceBetween(p[D],globalcoveragearray[g]);if(F_)db=Math.abs(361-$+_)%361;else db=_-$+1;for(g=0;gcb)db=Math.abs(361-bb+cb)%361;else db=cb-bb+1;for(g=0;gcb)db=Math.abs(361-bb+cb)%361;else db=cb-bb+1;for(g=D;g180)e=e-360;if(e<-180)e=e+360;m=new google.maps.LatLng(d,e);if(marker!=null)marker.setMap(null);{placeMarker(m)}var eb={html:"Polygon",path:r,strokeColor:"blue",strokeOpacity:1,strokeWeight:1,fillColor:"#0000FF",fillOpacity:.2};if(polygon1!=null)google.maps.event.clearListeners(polygon1,"click");polygon1=new google.maps.Polygon(eb);polygon1.setMap(map);google.maps.event.addListener(polygon1,"click",calculatesunintdate);var fb={path:t,strokeColor:"red",strokeOpacity:1,strokeWeight:2,fillColor:"#0000FF",fillOpacity:.2};var gb={path:s,strokeColor:"red",strokeOpacity:1,strokeWeight:3};selection_polygon=new google.maps.Polyline(gb);selection_polygon.setMap(map)}else{var hb,ib;hb=0;ib=0;alternative_method_for_drawing_footprint(a,-1,-1,-1,-1,1*Frequency,1*AntSize,0,42164.57,hb,ib,c)}}function calculatesunintdate(a){var b=[];var c=a.latLng;currentselectedlocation=c;SiteLat=currentselectedlocation.lat();SiteLon=currentselectedlocation.lng();reverseGeocode(currentselectedlocation);b.push(c);var d={locations:b};elevator1.getElevationForLocations(d,function(a,b){if(b==google.maps.ElevationStatus.OK){if(a[0]){if(a[0].elevation<0)Height_over_ocean=0;else Height_over_ocean=1*a[0].elevation/1e3;print_outages();infowindow.setPosition(c);var d=infowindow.getPosition();var e,f;if(d.lng()<0)e="W";else e="E";if(d.lat()<0)f="S";else f="N";map.setCenter(c);var g,h,i;h=a[0].elevation;g=h*metertofeet;i=g*feettoinch;if(SiteMarker!=null)SiteMarker.setMap(null);PlaceSitemarker(c);SetCookie()}else{alert("No results found")}}else{alert("Elevation service failed due to: "+b)}})}function alternative_method_for_drawing_footprint(a,b,c,d,e,f,g,h,i,j,k,l){var m=new Array;var n=[];var o,p,q,r,s,t,u,v,w;var x=[];var y=[];var z,A,B,C,D,E,F;var G,H,I,J,K,L,M;var N=[];var O,P,Q,R,S;var T=[];var U;var V,W,X,Y,Z,$;var _=[];var N=[];G=3601;H=10;S=0;Y="notfound";Z="notfound";T=sun_angles(l,60,60);K=1*T[2];$=0;_=getPeakMaxMinLatitude(l);V=1*_[3];W=1*_[4];fb=new Array;y=new Array;if(isNaN(V)&&!isNaN(W)){V=-80.88}else if(!isNaN(V)&&isNaN(W)){W=80.88}if(SatLon>180)r=SatLon-360;else r=SatLon;if(coveragearray_for_alternative_footprint_plot!=null)coveragearray_for_alternative_footprint_plot.setMap(null);for(o=0;o80.88)W=80.88}for(o=0;o<1801;o++){J=o;Q=0;S=0;v=n[o];if(v.lat()>1*V&&v.lat()<1*W&&v.lat()!=0){w=n[3601-o];if(v.lng()<0)A=v.lng()+360;else A=v.lng();if(w.lng()<0)z=w.lng()+360;else z=w.lng();u=A;if(K>0&&v.lat()>0)Q=0;else if(K<0&&v.lat()<0)Q=0;else Q=1;Q=1;M=0;L=0;var bb;bb=DegEastFormat(u);B=0;C=0;F=0;cb=0;M=0;while(F==0&&Q==1&&o!=0&&o!=180&&Math.abs(v.lat())>.1&&Math.abs(v.lat())<80.88&&cb==0){bb=DegEastFormat(u);outage_status_array=get_outage_start_and_stop_time_for_selected_date(1*a,1*bb,v.lat(),d,e,1*f,1*g,h,i,l);L=outage_status_array[5]*1;var cb,db;db=angulardifference(u,z);if(db<-.9)cb=1;if(B==0&&C==0&&outage_status_array[5]==1){D=new google.maps.LatLng(v.lat(),1*u);B=1;u=u-2;var eb;eb=angulardifference(u,A);if(eb>0)u=A;bb=DegEastFormat(u);db=angulardifference(u,z);outage_status_array=get_outage_start_and_stop_time_for_selected_date(1*a,1*bb,v.lat(),d,e,1*f,1*g,h,i,l);L=1*outage_status_array[5];if(cb==0){while(L==0&&db>0){u=Rev(u+.1);bb=DegEastFormat(u);outage_status_array=get_outage_start_and_stop_time_for_selected_date(1*a,1*bb,v.lat(),d,e,1*f,1*g,h,i,l);L=1*outage_status_array[5];db=angulardifference(u,z)}}D=new google.maps.LatLng(v.lat(),1*u);B=1}if(L==0&&M==1&&C<92&&B==1||cb==1&&C==0&&B==1){u=u-2;bb=DegEastFormat(u);outage_status_array=get_outage_start_and_stop_time_for_selected_date(1*a,1*bb,v.lat(),d,e,1*f,1*g,h,i,l);L=1*outage_status_array[5];var eb;eb=angulardifference(u,z);if(cb==0){while(L==1&&eb>0){u=Rev(u+.1);bb=DegEastFormat(u);outage_status_array=get_outage_start_and_stop_time_for_selected_date(1*a,1*bb,v.lat(),d,e,1*f,1*g,h,i,l);L=1*outage_status_array[5];eb=angulardifference(u,z)}}E=new google.maps.LatLng(v.lat(),1*u);C=C+1}u=Rev(u+2);if(u>360)u=u-360;M=L}if(B==1&&C>0){x.push(D);y.push(E);F=1;if(Y=="notfound")Y=v.lat();Z=v.lat();$=$+1}B=0;C=0}}var fb=[];for(o=0;o-1;o--){var hb;hb=x[o];if(!isNaN(hb.lng())&&!isNaN(hb.lat()))fb.push(x[o])}if(polygon_for_alt_plot!=null)polygon_for_alt_plot.setMap(null);var ib={path:x,strokeColor:"yellow",strokeOpacity:1,strokeWeight:1,fillColor:"#0000FF",fillOpacity:.2};var jb={path:fb,strokeColor:"blue",strokeOpacity:1,strokeWeight:1,fillColor:"red",fillOpacity:.2};if(polygon1!=null)google.maps.event.clearListeners(polygon1,"click");polygon1=new google.maps.Polygon(jb);polygon1.setMap(map);google.maps.event.addListener(polygon1,"click",calculatesunintdate)}function DegEastFormat(a){var b;if(a<0)b=360+a;else b=a;return b}function start_moving_marker_on_map(){clearInterval(autointerval);loadfootprint();autointerval=setInterval("setlocaltimeinhtmlfields();loadfootprint()",3e4)}function automatic_5seconds(){clearInterval(autointerval);loadfootprint();autointerval=setInterval("setlocaltimeinhtmlfields();loadfootprint()",5e3)}function automatic_60seconds(){clearInterval(autointerval);loadfootprint();autointerval=setInterval("setlocaltimeinhtmlfields();loadfootprint()",6e4)}function automatic_1seconds(){clearInterval(autointerval);loadfootprint();autointerval=setInterval("setlocaltimeinhtmlfields();loadfootprint()",1e3)}function loadfootprint(){var a;if(polygon1!=null)polygon1.setMap(null);if(selection_polygon!=null)selection_polygon.setMap(null);if(extracted_footprint_polygon!=null)extracted_footprint_polygon.setMap(null);a=SatLon;outage_beamwidth=calculateantennabeamwidth(1*Frequency,1*AntSize,70);print_footprint_on_google_map(1*a,1*(outage_beamwidth+.25))}function sun_angles(a,b,c){var d,e,f,g,h,i,j,k,l;var m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H;var I,J,K,L,M,N,O;k=Math.PI;var P=new Array;m=282.9404+470935e-10*a;n=1;o=.016709-1.151e-9*a;p=356.047+.9856002585*a;r=23.4393-3.563e-7*a;q=m+Rev(p);q=Rev(q);s=p+180/k*o*Math.sin(Radians(p))*(1+o*Math.cos(Radians(p)));s=Rev(s);t=n*Math.cos(Radians(s))-o;u=n*Math.sin(Radians(Rev(s)))*Math.sqrt(1-o*o);v=Math.sqrt(t*t+u*u);w=Deg(Math.atan2(u,t));x=Rev(w+m);t=v*Math.cos(Radians(x));u=v*Math.sin(Radians(x));y=0;z=t;A=u*Math.cos(Radians(r))+y*Math.sin(Radians(r));B=u*Math.sin(Radians(r))+y*Math.cos(Radians(r));C=Rev(Deg(Math.atan2(A,z)));D=Deg(Math.atan2(B,Math.sqrt(z*z+A*A)));E=q+180;F=a-Math.floor(a);f=E+F*360+b;e=f-C;t=Math.cos(e*k/180)*Math.cos(D*k/180);u=Math.sin(e*k/180)*Math.cos(D*k/180);y=Math.sin(D*k/180);J=t*Math.sin(c*k/180)-y*Math.cos(c*k/180);K=u;L=t*Math.cos(c*k/180)+y*Math.sin(c*k/180);I=Deg(Math.asin(L));O=I;I=ElevationRefraction(I);SunAzimuth=Deg(Math.atan2(K,J));P[0]=I;if(c<0)P[1]=SunAzimuth+180;else P[1]=SunAzimuth+180;if(c>0)P[14]=Rev(e-180);else P[14]=Rev(360-e);P[2]=D;P[3]=x;P[4]=C;P[5]=Rev(E);P[6]=Rev(p);P[7]=Rev(m);P[8]=Rev(o);P[9]=Rev(r);P[10]=O;P[11]=q;P[12]=Rev(C-E-F*360);P[13]=v;return P}function SimpleElevationEquatorCrossing(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;var t,u,v;var w,x,y,z,A,B;var C;var D=new Array;x=.58804392;y=-.17941557;z=.029906946;A=-.00251874;B=82622101e-12;v=0;f=0;h=42164.57;g=6378.14;e=g/Math.sqrt(1-f*(2-f)*Math.sin(Radians(b))*Math.sin(Radians(b)));i=(e+d)*Math.cos(Radians(b));j=(e*(1-f)*(1-f)+d)*Math.sin(Radians(b));k=h-e;l=h*Math.cos(Radians(v))*Math.cos(Radians(a-c))-i;m=h*Math.cos(Radians(v))*Math.sin(Radians(a-c));o=h*Math.sin(Radians(v))-j;p=-l*Math.sin(Radians(b))+o*Math.cos(Radians(b));q=l*Math.cos(Radians(b))+o*Math.sin(Radians(b));r=Deg(Math.atan2(q,Math.sqrt(p*p+m*m)));f=1/298.257;h=42164.57;g=6378.14;f=0;e=g/Math.sqrt(1-f*(2-f)*Math.sin(Radians(b))*Math.sin(Radians(b)));i=(e+d)*Math.cos(Radians(b));j=(e*(1-f)*(1-f)+d)*Math.sin(Radians(b));k=h-e;l=h*Math.cos(Radians(v))*Math.cos(Radians(a-c))-i;m=h*Math.cos(Radians(v))*Math.sin(Radians(a-c));o=h*Math.sin(Radians(v))-j;p=-l*Math.sin(Radians(b))+o*Math.cos(Radians(b));q=l*Math.cos(Radians(b))+o*Math.sin(Radians(b));r=Deg(Math.atan2(q,Math.sqrt(p*p+m*m)));w=Math.abs(r+.589);n=Math.abs(x+y*w+z*w*w+A*w*w*w+B*w*w*w*w);if(r>10.2){t=r+.01617*(Math.cos(Radians(Math.abs(r)))/Math.sin(Radians(Math.abs(r))))}else{t=r+n}if(q<-3e3)t=-99;return r}function SetHtmlDefaults(){var a,b;b=new Date;Year=b.getUTCFullYear();Month=b.getUTCMonth()+1;if(Month>=5){document.getElementById("Fall").checked=1;season=1}else{document.getElementById("Spring").checked=1;season=0}document.getElementById("ku-band").checked=true;document.getElementById("AntSize").value=.72;document.getElementById("Frequency").value=10.95;document.getElementById("Year").value=Year;a=document.cookie;if(a==null){document.getElementById("ku-band").checked=1;Frequency=11.95}else{var c=new Array;c=a.split(":");if(c[14]=="C")document.getElementById("c-band").checked=true;else if(c[14]=="ku")document.getElementById("ku-band").checked=true;else if(c[14]=="userband")document.getElementById("user-band").checked=true;else document.getElementById("ku-band").checked=true;if(!isNaN(c[12])&&c[12]!="undefined"&&c[12]!=""){document.getElementById("AntSize").value=1*c[12];AntSize=1*c[12]}else{AntSize=.6;document.getElementById("AntSize").value=.6}if(!isNaN(c[13])&&c[13]!="undefined"&&c[13]!=""){Frequency=1*c[13];document.getElementById("Frequency").value=1*1*c[13]}else{Frequency=11.95;document.getElementById("Frequency").value=Frequency}}if(document.getElementById("user-band").checked)Frequency=1*document.getElementById("Frequency").value;else if(document.getElementById("ku-band").checked){Frequency=11.95;document.getElementById("Frequency").value=Frequency}else if(document.getElementById("c-band").checked){Frequency=3.95;document.getElementById("Frequency").value=Frequency}if(!isNaN(AntSize)){document.getElementById("AntSizeFeet").value=formatvalue(AntSize*metertofeet,4);document.getElementById("AntSizeInches").value=formatvalue(AntSize*metertoinch,5)}}function SetCookie(){var a,b,c,d,e;var f,g;var h,i,j,k;var l,m,n,o,p,q,r,s,t,u;var v,w,x,y,z,A,m,n,o;var B=new Array;var C=new Array;MyCookieVal=document.cookie;if(MyCookieVal!==""){B=MyCookieVal.split(":");v=B[4];w=B[6];x=B[7];y=B[8];z=B[9];A=B[10];m=B[12];n=B[13];o=B[14];p=B[15];r=B[17];s=B[18];t=B[19];u=B[20]}if(MyCookieVal==""){v="undefined";w="undefined";x="undefined";y="undefined";z="undefined";A="undefined";m="undefined";n="undefined";o="undefined";p="undefined";r="undefined";s="undefined";t="undefined";u="undefined"}if(SiteLat<0){c="South";a=-SiteLat}else{c="North";a=SiteLat}if(SiteLon>0){d="East";b=SiteLon}else{d="West";b=-SiteLon}g=document.Position.SelectList.selectedIndex;HightAboveOcean=1*Height_over_ocean;q=map.getZoom();if(currentAddressResponse!="")p=currentAddressResponse;m=1*document.getElementById("AntSize").value;n=1*document.getElementById("Frequency").value;if(document.getElementById("c-band").checked==true)o="C";else if(document.getElementById("ku-band").checked==true)o="ku";else if(document.getElementById("user-band").checked==true)o="userband";else document.getElementById("ku-band").checked=true;e=a+":"+c+":"+b+":"+d+":"+v+":"+g+":"+w+":"+x+":"+y+":"+z+":"+A+":"+HightAboveOcean+":"+m+":"+n+":"+o+":"+p+":"+q+":"+r+":"+t+":"+u+";expires=Tue, 10 Jul 2040 23:59:59 UTC;";deleteAllCookies();document.cookie=e}function print_outages(){document.getElementById("outages").innerHTML=get_outage_dates_and_HAtransit(SatLon,SiteLon,SiteLat,season,Year,Frequency,AntSize,Height_over_ocean,Geosync_radius)}function clear_multiple_outages(){multipleoutagesoutput="";lastprintedoutage="";document.getElementById("outages").innerHTML=""}function print_multiple_outages(){multipleoutagesoutput=get_outage_dates_and_HAtransit(SatLon,SiteLon,SiteLat,season,Year,Frequency,AntSize,Height_over_ocean,Geosync_radius)+multipleoutagesoutput;document.getElementById("outages").innerHTML=multipleoutagesoutput}function PrintSave(){var a;var b=new Date;a=b.getFullYear();PrintWindow=window.open("","Print_window","");PrintWindow.oldWindow=top;var c="GEOSTATIONARY SATELLITE - SUN INTERFERENCE PREDICTIONS REPORT - (C) "+a+" JENS T. STRE http://www.satellite-calculations.com\n";c+="\n";c+="\n";c+="\n";c+="\n";c+='\n
GEOSTATIONARY SATELLITE - SUN INTERFERENCE PREDICTIONS REPORT
(C) "+a+' JENS T. STRE
http://www.satellite-calculations.com
\n';c+='\n
';c+='\n";c+='\n";c+='\n