getCookieVal ();
function getCookieVal (offset) {

var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name)  {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)  {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; 
}
return null;
}
function SetCookie (name, value)  {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

if(GetCookie('WHATLang') == "english" ){
var Delmsg = "A Reindeer has been dispatched to collect all of Santa's Cookies in your PC System Cache.\n\nPlease, DO NOT FORGET to leave extra cookies on Chrismas for Santa and the Reindeers.\n\n               Merry Christmas and Prosperous New Year!\n\nCome back soon!\nLove Santa";
}

if(GetCookie('WHATLang') == "spanish" ){
var Delmsg = "Uno de los Renos ha sido enviado a recojer todas las galletas de Papá Santa en su PC Sistema Cache.\n\n NO SE LE OLVIDE de dejar galletitas adicionales en Navidad para Papá Santa y los Renos.\n\n              ¡Feliz Navidad y Prospero Año Nuevo!\n\n¡Vuélvase pronto!\nCariños, Papá Santa";
}

if(GetCookie('WHATLang') != null || GetCookie('WHATLang') != "") {DeleteCookieB ();}

function DeleteCookieB () { 
var exp = new Date();
exp.setTime (exp.getTime() - 1000000000);  // This cookie is history
var cval = GetCookie ('WHATLang');
document.cookie ='WHATLang' + "=" + cval + "; expires=" + exp.toGMTString();    
}

if(GetCookie('MPLAY_notplay') != null || GetCookie('MPLAY_notplay') != "") {DeleteCookie9 ();}

function DeleteCookie9 () { 
var exp = new Date();
exp.setTime (exp.getTime() - 1000000000);  // This cookie is history
var cval = GetCookie ('MPLAY_notplay');
document.cookie ='MPLAY_notplay' + "=" + cval + "; expires=" + exp.toGMTString();    
}

if(GetCookie('MPLAYWIN_stats') == "closed") {DeleteCookie2 (); DeleteCookie12 (); DeleteCookie13 ();}

function DeleteCookie2 () { 
var exp = new Date();
exp.setTime (exp.getTime() - 1000000000);  // This cookie is history
var cval = GetCookie ('MUSICDate');
document.cookie ='MUSICDate' + "=" + cval + "; expires=" + exp.toGMTString();    
}

function DeleteCookie12 () { 
var exp = new Date();
exp.setTime (exp.getTime() - 1000000000);  // This cookie is history
var cval = GetCookie ('MPLAYWIN_stats');
document.cookie ='MPLAYWIN_stats' + "=" + cval + "; expires=" + exp.toGMTString();    
}

function DeleteCookie13 () { 
var exp = new Date();
exp.setTime (exp.getTime() - 1000000000);  // This cookie is history
var cval = GetCookie ('MPLAYON_stats');
document.cookie ='MPLAYON_stats' + "=" + cval + "; expires=" + exp.toGMTString();    
}

alert(Delmsg);
