\n');
}
return result;
}
function DetectObject(ClassID, Name) {
if (ie) {
if (IEDetectObject(ClassID)) {
return true;
} else {
return false;
}
}
}
function writeDetectProp(property, Name)
{
document.write("
");
if (Name)
document.write(Name);
else
document.write(property);
document.write("
");
if (eval(property))
document.write(eval(property));
else
document.write("not available");
document.write("
");
}
function writePlugins()
{ // The number of plugins
var numPlugins = 0;
if (navigator.plugins)
numPlugins = navigator.plugins.length;
for (var i=0; i < numPlugins; i++)
{
currentPlugin = navigator.plugins[i];
writeDetectProp("currentPlugin.name");
writeDetectProp("currentPlugin.description");
writeDetectProp("currentPlugin.filename");
// The number of mime-types associated with this plugin
numTypes = currentPlugin.length
// Write the mime-types
for (j = 0; j < numTypes; j++)
{
writeDetectProp("currentPlugin[j].type")
writeDetectProp("currentPlugin[j].enabledPlugin")
writeDetectProp("currentPlugin[j].description")
writeDetectProp("currentPlugin[j].suffixes")
}
}
}
if (ie) {
acro3 = DetectObject("PDF.PdfCtrl.3", "Adobe Acrobat Viewer 3");
acro4 = DetectObject("PDF.PdfCtrl.4", "Adobe Acrobat Viewer 4");
acro5 = DetectObject("PDF.PdfCtrl.5", "Adobe Acrobat Viewer 5");
acro6 = DetectObject("PDF.PdfCtrl.6", "Adobe Acrobat Viewer 6");
acro7 = DetectObject("PDF.PdfCtrl.7", "Adobe Acrobat Viewer 7");
//acro7 = new ActiveXObject('AcroExch.Document');
flash4 = DetectObject("ShockwaveFlash.ShockwaveFlash.4", "Flash 4");
flash5 = DetectObject("ShockwaveFlash.ShockwaveFlash.5", "Flash 5");
flash6 = DetectObject("ShockwaveFlash.ShockwaveFlash.6", "Flash 6");
quickt = DetectObject("QuickTimeCheckObject.QuickTimeCheck.1", "QuickTime");
winmp = DetectObject("MediaPlayer.MediaPlayer.1","Windows Media Player")
}
function msieversion()
// return Microsoft Internet Explorer (major)
// version number, or 0 for others.
// This function works by finding the "MSIE "
// string and extracting the version number
// following the space, up to the decimal point
// for the minor version, which is ignored.
{
var ua = window.navigator.userAgent
var msie = ua.indexOf ( "MSIE " )
if ( msie > 0 ) // is Microsoft Internet Explorer; return version number
return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
else
return 0 // is other browser
}
function CheckPlugins(){
setCookie('test', 'test');
test = getCookie('test');
if (test == 'test') {
//COOKIES.value = 'Correctly Enabled.';
cookies = true;
} else {
//COOKIES.value = 'NOT ENABLED!'
cookies = false;
}
if (ie) {
var nRPVersion = IERPCtl.RealPlayerVersion;
if ( nRPVersion != null ) {
realone = true;
} else {
realone = false;
}
}
if ((navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"]) {
//document.writeln("Correctly Installed.");
}
} else {
if (flash4 | flash5 | flash6) {
//document.writeln("Correctly Installed.");
} else {
//document.writeln("Incorrectly Installed or NOT INSTALLED.");
}
}
if (navigator.mimeTypes && navigator.mimeTypes["audio/x-pn-realaudio-plugin"]){
//REAL.value = 'Correctly Installed.';
realone = true;
} else {
if (realone) {
//REAL.value = 'Correctly Installed.';
realone = true;
} else {
//REAL.value = 'Incorrectly Installed or NOT INSTALLED.';
realone=false;
}
}
if (navigator.mimeTypes && (navigator.mimeTypes["pdf"] || navigator.mimeTypes["application/pdf"])){
//ADOBE.value = 'Correctly Installed.';
adobe = true;
} else {
if (acro3 | acro4 | acro5 | acro6 | acro7) {
//ADOBE.value = 'Correctly Installed.';
adobe = true;
} else {
//ADOBE.value = 'Incorrectly Installed or NOT INSTALLED.';
adobe = false;
}
}
/*
if ( msieversion() >= 6 ) {
INTERNET_EXP.value = 'Installed';
}
else {
INTERNET_EXP.value = 'Not installed';
}
*/
}
function dLogin(){
/*CheckPlugins();*/
if (navigator.platform == "MacPPC") {
document.getElementById('mediatype').options[1].selected = true;
}
if (ie && win){
if (msieversion() < 6){
var ie_ver = confirm(".\r\nContinue to Login?");
if (ie_ver == false) return;
}
if (document.getElementById('mediatype').value=="RM"){
if(realone==false){
if (!confirm("RealPlayer is required.\r\nPlease install RealPlayer or choose Windows Media.\r\nContinue to Login anyway?"))
return;
}
}
if (document.getElementById('mediatype').value=="WM"){
if(winmp==false){
if (!confirm("Windows Media Player is required.\r\nPlease install Windows Media Player or choose Real Media.\r\nContinue to Login anyway?"))
return;
}
}
if(adobe){
if (!confirm("Adobe Acrobat Reader 5.0 or higher is required to view some lecture handouts.\r\nPlease install Adobe Acrobat Reader 5.0 or higher.\r\If you already have Adobe Acrobat Reader installed then please disregard this message.\r\nContinue to Login anyway?" + ' ' + adobe))
return;
}
}
else{
if (document.getElementById('mediatype').value=="RM"){
//if(realone==false){
if (pluginlist.indexOf("RealPlayer") >= 0) {
// Real player installed
}
else { // Real player not yet installed
if (navigator.platform == "MacPPC") {
//if (!confirm("RealPlayer is required.\r\nPlease install RealPlayer.\r\nContinue to Login anyway?"))
alert("RealPlayer is required.\r\nPlease install RealPlayer.");
URL = "http://forms.real.com/real/player/blackjack.html?platform2=Mac%20OS%20X&product=RealPlayer%2010.0&proc=g3&lang=en&show_list=0&src=blackjack";
window.open(URL,"","top=0, Left=0, toolbar=yes,directories=no, menubar=yes, status = yes, scrollbars=yes, location=yes, resizable=yes, maximized=1");
return;
} else {
if (!confirm("RealPlayer is required.\r\nPlease install RealPlayer or choose Windows Media.\r\nContinue to Login anyway?"))
return;
}
}
}
if(adobe){
if (!confirm("Adobe Acrobat Reader 5.0 or higher is required to view some lecture handouts.\r\nPlease install Adobe Acrobat Reader 5.0 or higher.\r\If you already have Adobe Acrobat Reader installed then please disregard this message.\r\nContinue to Login anyway?" + ' ' + adobe))
return;
}
}
var error = new Boolean(false);
var errorString = "";
if (document.getElementById('username').value==""){
error = true;
errorString += "Please enter a Username.\r\n";
}
if (document.getElementById('password').value==""){
error = true;
errorString += "Please enter a Password.\r\n";
}
if (document.getElementById('school').value==""){
error = true;
errorString += "Please enter a School #.\r\n";
}
if (error == true){
alert(errorString);
}
else{
//var URL = '<%=Application("CLASSROOM_ROOT_SITE")%>/Master_Client/Player/User_Login.aspx?MClientID=1&dlogin=true&un='
var URL = 'http://8.6.89.92/CLASSROOM/Master_Client/Player/User_Login.aspx?MClientID=1&dlogin=true&un='
URL += document.getElementById('username').value + '&pw='
URL += document.getElementById('password').value + '&sn='
URL += document.getElementById('school').value + '&media='
URL += document.getElementById('mediatype').value
//alert(URL);
window.open(URL,"","top=0, Left=0, toolbar=no,directories=no, menubar=no, status = yes, scrollbars=yes, location=no, resizable=yes, maximized=1");
}
}
KDS provides dynamic online
Professional Development for Georgia’s
K-12 educators. You can earn state-approved Professional Learning
Units (PLUs) anytime, anywhere through the convenience of the
award-winning KDS Classroom. Simply click on the appropriate button below
for more information
Georgia Approved Professional Learning Units (PLUs)