function longMonthArray() { this[0] = "January"; this[1] = "February"; this[2] = "March"; this[3] = "April"; this[4] = "May"; this[5] = "June"; this[6] = "July"; this[7] = "August"; this[8] = "September"; this[9] = "October"; this[10] = "November"; this[11] = "December"; return (this); } function shortMonthArray() { this[0] = "Jan"; this[1] = "Feb"; this[2] = "Mar"; this[3] = "Apr"; this[4] = "May"; this[5] = "Jun"; this[6] = "Jul"; this[7] = "Aug"; this[8] = "Sep"; this[9] = "Oct"; this[10] = "Nov"; this[11] = "Dec"; return (this); } function longDayArray() { this[0] = "Sunday"; this[1] = "Monday"; this[2] = "Tuesday"; this[3] = "Wednesday"; this[4] = "Thursday"; this[5] = "Friday"; this[6] = "Saturday"; return (this); } function shortDayArray() { this[0] = "Sun"; this[1] = "Mon"; this[2] = "Tue"; this[3] = "Wed"; this[4] = "Thu"; this[5] = "Fri"; this[6] = "Sat"; return (this); } function getShortYear(year) { shortyear = year%100; if (shortyear < 10) shortyear = "0"+shortyear; return shortyear } function getLongYear(year) { if (year > 1900) return year return year+1900; } function writeDateLong(format) { shortDays = new shortDayArray(); longDays = new longDayArray(); shortMonths = new shortMonthArray(); longMonths = new longMonthArray(); d = new Date(); day = d.getDate(); month = d.getMonth(); year = d.getYear(); if (format == 0) str = shortDays[d.getDay()] + " " + shortMonths[month] +". " + day + ", "+getLongYear(year); else if (format == 1) str = shortDays[d.getDay()] + " " + longMonths[month] + " " + day + ", "+getLongYear(year); else if (format == 2) str = longDays[d.getDay()] + " " + longMonths[month] + " " + day + ", "+getLongYear(year); else if (format == 3) str = longMonths[month] + " " + day + ", "+getLongYear(year); else if (format == 4) str = shortDays[d.getDay()] + " " + day + " " + shortMonths[month] +". " +getLongYear(year); else if (format == 5) str = shortDays[d.getDay()] + " " + day + " " + longMonths[month] + " " +getLongYear(year); else if (format == 6) str = longDays[d.getDay()] + " " + day + " " + longMonths[month] + " " + getLongYear(year); else if (format == 7) str = day + " " + longMonths[month] + ", "+getLongYear(year); else { month++; shortyear = getShortYear(year); if (format == 8) str = month + "/" + day + "/" + shortyear; else if (format == 9) str = month + "/" + day + "/" + getLongYear(year); else if (format == 10) str = day + "/" + month + "/" + shortyear; else if (format == 11) str = day + "/" + month + "/" + getLongYear(year); else if (format == 12) str = shortyear + "/" + month + "/" + day; else if (format == 13) str = shortyear + "/" + month + "/" + day; else { if (day < 10) day = "0"+day if (month < 10) month = "0"+month if (format == 14) str = month + "/" + day + "/" + shortyear; else if (format == 15) str = month + "/" + day + "/" + getLongYear(year); else if (format == 16) str = day + "/" + month + "/" + shortyear; else if (format == 17) str = day + "/" + month + "/" + getLongYear(year); else if (format == 18) str = shortyear + "/" + month + "/" + day; else if (format == 19) str = shortyear + "/" + month + "/" + day; } } document.writeln(str); } function writeDate() { writeDateLong(0); } function writeTimeLong(format) { d = new Date(); hour=d.getHours(); min=d.getMinutes(); sec=d.getSeconds(); if (hour < 10) hour = "0"+hour; if (min < 10) min = "0"+min; if (sec < 10) sec = "0"+sec; if (format == 0) str = hour+":"+min+":"+sec; else if (format == 1) str = hour+":"+min; document.writeln(str); } function writeTime() { writeTimeLong(0); } var order= "Important NAAS NEWS" function swnl(order){ window.self.status=order; return true; } //var screen= "NAAS System"; //var call=swnl(order) function benjamin (screen){ window.self.status=screen; return true; } function bobby (soup){ window.self.status=soup; return true; } var logx="NAAS Log-out button" var home="NAAS-NEWS Home page" var naasr="U.S. Education Report" var awards="Access NAAS HTML Applications" var link="Link Exchange" var consumer="Read about valuable Consumer News!" var permission="E-mail or write to Publisher for re-prints." var use="Using an NAAS Award" var legal="All NAAS EAS\/N2 Rules apply" var feeds="What students, educators, and past scholarship recipients." var senior="Awards for high school seniors" var swnl="Subscribe to Scholarship Watch!" var bee_bee="No endorsements of any university" var hello="Central NAAS home page." var bio="NAAS biological profile" var survey="Please take the N.A.A.S. Survey." var deny="Beware of copy-cats and imitators!" var mail="Send your questions, comments, and suggestions." var news="Order subscription to Scholarship Watch" var finaid="Program summary" var apo="For Armed Services Dependents" var college="Awards for College students" var access="NAAS User ID required" var highschool="For high school seniors" var gec_001="General NAAS Contact" var gec_002="Special NAAS Contact form" var site="Purchase NAAS SITE License" var george="See Important NAAS NEWS" var _mail="I want forms via the U.S. mail." var hotlinks="NAAS Hotlinks table!" function id_check() { lead="***Official Notice******\n" lead+="You have accessed a link\n" lead+="that requires an NAAS User ID\n" lead+="and password. Please complete\n" lead+="NAAS User ID page.\n" lead+="****************************\n" alert (lead) return true; } function gec_002_() { gec_xx =":::USE OF NAAS EAS\/N2 Form GEC 002:::\>\n" gec_xx+="Form GEC 002 is required for all special\n" gec_xx+="contacts or communications with NAAS.\n" alert (gec_xx); return true; } function gec_001_() { gec_xx =":::USE OF NAAS EAS\/N2 Form GEC 001:::\>\n" gec_xx+="Form GEC 001 is required for all general\n" gec_xx+=" contacts or communications to NAAS.\n" alert (gec_xx); return true; } function pmb() { lead ="NAAS Awards are demanding::>\n"; lead+="NAAS Awards are prestigious::>\n"; lead+="NAAS Awards require character::>\n"; lead+="NAAS Awards require integrity::>\n"; lead+="NAAS Awards require effort::>\n"; lead+="NAAS Awards require motivation::>\n"; lead+="NAAS Awards require real intelligence::>\n"; lead+="NAAS Awards represent pure competition::>\n"; alert (lead); return true; } function uses_() { lead ="**********************************\n"; lead+="Know how you can benefit from an\n"; lead+="NAAS Award.\n" lead+="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" lead+="Know how your school or institution\n" lead+="can benefit from an NAAS Award.\n" lead+="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" lead+="Know how your organization can\n" lead+="benefit from an NAAS Award.\n" lead+="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" lead+="Know how to make your financial aid\n" lead+="book, CD, DVD, or newsletter complete with an\n" lead+="NAAS Award listing.\n" alert (lead); return true; } function thanks() { lead ="Thank you for your interest in NAAS\n" lead+="products and services.\n" lead+="======================\n" lead+="Please proceed to our NAAS-User\n" lead+="Subscription area.\n" lead+="**********************\n" lead+="We appreciate your patronage.\n"; alert (lead); return true; } function links_() { gec_xx =":::Exchange or Trade links with NAAS:::\>\n" gec_xx+="Receive Free listing in NAAS and\n" gec_xx+="Scholarship Watch periodicals.\n" gec_xx+="Receive Free listing in NAAS website.\n" gec_xx+="Watch your exposure grow!!\n" alert (gec_xx) return true; } var back ="Back to previous page" var log="Log out button" function log_out(){ lead ="\<:::Log-out Message:::\>:\n" lead+=" You are now logging out of the\n" lead+=" of NAAS NEWS System.\n" lead+="**********************************\n" lead+="Thank you.\n" lead+="Sincerely yours, \nFrom TEAM NAAS\n" alert (lead) return true; } function back_(){ lead ="\<:::Returning to previous page:::\>:\n" lead+="**********************************\n" lead+="Thank you.\n" lead+="Sincerely yours, \nFrom TEAM NAAS\n" alert (lead) return true; } //runs with converted news.php, tnews.php pages; use CHMOD to execute only.