function checkscreensize(target) {
var correctwidth=1024
var correctheight=768
if (screen.width!=coJectwidth||screen.height!=correctheight){
var txt = "This game was designed with a screen resolution of "+correctwidth+"*"+correctheight+". Your current resolution is "+screen.width+"*"+screen.height+". If possible, you may wish to change your screen resolution!"; 
var newT = document.createTextNode(txt); 
var d2 = document.getElementById(target); 
d2.parentNode.replaceChild(newT,d2);
}
}
