






































































































































































































































































































































































































































































































































































































































































































































































































































































































/* written by Andy Nguyen
 * you may mirror this page on your own host WITHOUT MODIFICATION
 * original URL: http://e.1asphost.com/tanonev/np/stars.html
 * please visit http://www.alpha-slash.com/
 */
function compute(strData) {
strData = strData.substring(0, strData.indexOf(":"));
var starArray = new Array();
var starCoords;
while (strData.indexOf("|") > -1) {
starCoords = strData.substring(0, strData.indexOf("|"));
starArray[starCoords.substring(0, starCoords.length - 2)] = starCoords;
strData = strData.substring(strData.indexOf("|") + 1);
}
starCoords = strData;
starArray[starCoords.substring(0, starCoords.length - 2)] = starCoords;

var dxArray = new Array([40, 80, 120, 160, 200], [60, 120, 130, 190, 110], [20, 80, 160, 140, 80], [140, 10, 120, 160, 80], [60, 120, 0, 60, 120], [50, 170, 200, 190, 140], [70, 140, 40, 70, 100], [10, 100, 100, 190, 200], [40, 20, 40, -50, -60], [40, -30, 10, 110, 120], [-70, 70, 0, 0, -130], [10, 120, 160, 170, 200]);
var dyArray = new Array([-30, -60, -60, -30, 0], [-20, 0, 40, 60, -90], [60, 80, 0, -60, -80], [-30, -80, -60, -70, 60], [-30, 0, 140, 170, 140], [70, 40, 0, -90, -10], [30, 0, -120, -140, -120], [-50, -130, 10, -50, 0], [40, -40, -80, -10, 120], [-70, -140, -200, -170, -90], [0, 0, -70, 70, 90], [-140, -60, -190, -20, 0]);

for (var i in starArray) {
var x = parseInt(i.substring(0, i.indexOf(",")));
var y = parseInt(i.substring(i.indexOf(",") + 1));
for (j = 0; j < 12; j++) {
if ((starArray[(x + dxArray[j][0]) + "," + (y + dyArray[j][0])] != undefined) && (starArray[(x + dxArray[j][1]) + "," + (y + dyArray[j][1])] != undefined) && (starArray[(x + dxArray[j][2]) + "," + (y + dyArray[j][2])] != undefined) && (starArray[(x + dxArray[j][3]) + "," + (y + dyArray[j][3])] != undefined) && (starArray[(x + dxArray[j][4]) + "," + (y + dyArray[j][4])] != undefined)) {
document.myForm.elements[j + 2].value = "(" + i + ")\n(" + (x + dxArray[j][0]) + "," + (y + dyArray[j][0]) + ")\n(" + (x + dxArray[j][1]) + "," + (y + dyArray[j][1]) + ")\n(" + (x + dxArray[j][2]) + "," + (y + dyArray[j][2]) + ")\n(" + (x + dxArray[j][3]) + "," + (y + dyArray[j][3]) + ")\n(" + (x + dxArray[j][4]) + "," + (y + dyArray[j][4]) + ")";
}
}
}
}













































































































































































































































































































































































































































































































































