




var myXmlreq = false;
function createArticleReputation(pk) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/articles/reputation/index.cfm?id='+pk+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var reputationcount = myXmlreq.responseXML.getElementsByTagName("count")[0].childNodes[0].nodeValue;
 var reputationdone = myXmlreq.responseXML.getElementsByTagName("reputationdone")[0].childNodes[0].nodeValue;
 var reperrormessage = myXmlreq.responseXML.getElementsByTagName("reperrormessage")[0].childNodes[0].nodeValue;
 if ( reputationdone == 0 ) {
 document.getElementById('reputationerror').innerHTML = reperrormessage;
 document.getElementById('reputationerror').style.display = "block";
 }
 document.getElementById('reputationcount').innerHTML = reputationcount;
 }
 }
}
function createTestReputation(pk, type) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/tests/reputation/index.cfm?fk='+pk+'&opv='+type+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var reputationcount = myXmlreq.responseXML.getElementsByTagName("count")[0].childNodes[0].nodeValue;
 var negreputationcount = myXmlreq.responseXML.getElementsByTagName("countn")[0].childNodes[0].nodeValue;
 var reputationdone = myXmlreq.responseXML.getElementsByTagName("reputationdone")[0].childNodes[0].nodeValue;
 var reperrormessage = myXmlreq.responseXML.getElementsByTagName("reperrormessage")[0].childNodes[0].nodeValue;
 if ( reputationdone == 0 ) {
 document.getElementById('reputationerror').innerHTML = reperrormessage;
 document.getElementById('reputationerror').style.display = "block";
 }
 document.getElementById('reputationcount').innerHTML = reputationcount;
 document.getElementById('negreputationcount').innerHTML = negreputationcount;
 }
 }
}

function getCookie(name) {
 var dc = document.cookie;
 var prefix = name + "=";
 var begin = dc.indexOf("; " + prefix);
 if (begin == -1) {
 begin = dc.indexOf(prefix);
 if (begin != 0) return null;
 } else {
 begin += 2;
 }
 var end = document.cookie.indexOf(";", begin);
 if (end == -1) end = dc.length;
 return unescape(dc.substring(begin + prefix.length, end));
}
function setCookie(name, value) {
 var expiration = new Date();
 var sevenDays = expiration.getTime() + (7 * 24 * 60 * 60 * 1000);
 expiration.setTime(sevenDays);
 var curCookie = name + "=" + escape(value) + ";expires=" + escape(expiration.toGMTString()) + ";";
 document.cookie = curCookie;
}

var UserID = getCookie("NPREMIUMID");
var UserName = getCookie("PREMIUM_USERNAME");
var StatUPS = getCookie("PREMIUM_USERNAME");

if(UserName != null)
{
 UserName = UserName.replace(/\+/,' ');
}
var LoginBoxInfos = getCookie("LGB_INFOS");
var DateObj = new Date();
if(!LoginBoxInfos)
{
 var MessageNumber = 0;
 var AlertNumber = 0;
 var FriendsOnline = 0;
 var LastLBCheck = null;
 var StatUPS = '';
}
else
{
 getLBValuesFromCookie();
}

function getLoginboxOverCookie() {
 
 if(!UserID || UserID == 0)
 {
 
 document.getElementById('LoginKasten').innerHTML = '<div id="top_premium"><br /><span><a href="/index.cfm?pid=1590" class="logout">Registrieren</a> | <a href="/index.cfm?pid=103&op=10" class="logout">Login</a></span></div>';
 }
 else
 {
 
 CheckDate = DateObj.getTime() - (5 * 60 * 1000);
 
 if(LastLBCheck == null || LastLBCheck <= CheckDate)
 {
 getLoginboxValues();
 }
 
 document.getElementById('LoginKasten').innerHTML = '<div id="top_premium"><span><a href="/index.cfm?pid=975&pk=' + UserID + '">Hallo ' + UserName + '</a> | <a class="logout" href="/index.cfm?pid=103&amp;opv=999">Logout</a></span><br/> <span><a class="news" href="/index.cfm?pid=1090">Nachrichten (' + MessageNumber + ')</a> | <a class="alerts" href="/index.cfm?pid=1090">Alerts (' + AlertNumber + ')</a> | <a class="friends" href="/index.cfm?pid=1096">Freunde (' + FriendsOnline + ')</a></span></div>';
 }
}

function getLoginboxValues() {
 var rnd = Math.round(Math.random()*1000000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/login/_dyn_ajax_loginboxvalues.cfm?cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 
 MessageNumber = myXmlreq.responseXML.getElementsByTagName("messages")[0].childNodes[0].nodeValue;0;
 AlertNumber = myXmlreq.responseXML.getElementsByTagName("alerts")[0].childNodes[0].nodeValue;0;
 FriendsOnline = myXmlreq.responseXML.getElementsByTagName("friends")[0].childNodes[0].nodeValue;0;
 LastLBCheck = DateObj.getTime();
 StatUPS = myXmlreq.responseXML.getElementsByTagName("statups")[0].childNodes[0].nodeValue;0;
 setLBValuesToCookie();
 }
 }
}

function getLBValuesFromCookie() {
 
 var aLBValues = new Array();
 
 aLBValues = LoginBoxInfos.split(';');
 
 MessageNumber = aLBValues[0];
 
 AlertNumber = aLBValues[1];
 
 FriendsOnline = aLBValues[2];
 
 LastLBCheck = aLBValues[3];
 
 StatUPS = aLBValues[4];
}

function setLBValuesToCookie() {
 LoginBoxInfos = MessageNumber + ';' + AlertNumber + ';' + FriendsOnline + ';' + LastLBCheck + ';' + StatUPS;
 setCookie('LGB_INFOS',LoginBoxInfos);
}

function getLoginbox() {
 var rnd = Math.round(Math.random()*1000000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/login/_dyn_ajax_loginbox.cfm?cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var loginboxcontent = myXmlreq.responseXML.getElementsByTagName("content")[0].childNodes[0].nodeValue;
 document.getElementById('LoginKasten').innerHTML = loginboxcontent;
 }
 }
}
// JW | nbsp GmbH | Communitybilder bewerten
function MM_createCommunityImageReputation(pk) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/galleries/reputation/index.cfm?fk='+pk+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var reputationcount = myXmlreq.responseXML.getElementsByTagName("count")[0].childNodes[0].nodeValue;
 var reputationdone = myXmlreq.responseXML.getElementsByTagName("reputationdone")[0].childNodes[0].nodeValue;
 var reperrormessage = myXmlreq.responseXML.getElementsByTagName("reperrormessage")[0].childNodes[0].nodeValue;
 if ( reputationdone == 0 ) {
 document.getElementById('reputationerror').innerHTML = reperrormessage;
 document.getElementById('reputationerror').style.display = "block";
 }
 document.getElementById('reputationcount').innerHTML = reputationcount;
 }
 }
}

function createQuestionReputation(pk) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/questions/reputation/index.cfm?id='+pk+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var reputationcount = myXmlreq.responseXML.getElementsByTagName("count")[0].childNodes[0].nodeValue;
 var reputationdone = myXmlreq.responseXML.getElementsByTagName("reputationdone")[0].childNodes[0].nodeValue;
 var reperrormessage = myXmlreq.responseXML.getElementsByTagName("reperrormessage")[0].childNodes[0].nodeValue;
 if ( reputationdone == 0 ) {
 document.getElementById('reputationerror').innerHTML = reperrormessage;
 document.getElementById('reputationerror').style.display = "block";
 }
 document.getElementById('reputationcount').innerHTML = reputationcount;
 }
 }
}


function rateComment(postid, rating)
{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest)
 {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject)
 {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq )
 {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/articles/ratecomment/index.cfm?id='+postid+'&rating='+rating+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var top = myXmlreq.responseXML.getElementsByTagName("top")[0].childNodes[0].nodeValue;
 var flop = myXmlreq.responseXML.getElementsByTagName("flop")[0].childNodes[0].nodeValue;
 var ratingdone = myXmlreq.responseXML.getElementsByTagName("ratingdone")[0].childNodes[0].nodeValue;
 var errormessage = myXmlreq.responseXML.getElementsByTagName("errormessage")[0].childNodes[0].nodeValue;
 if(ratingdone == 0)
 {
 document.getElementById('ratemesssage'+postid).innerHTML = errormessage;
 document.getElementById('ratemesssage'+postid).style.display = "block";
 }
 document.getElementById('toprating'+postid).innerHTML = top;
 document.getElementById('floprating'+postid).innerHTML = flop;
 }
 }
}

function rateContrib(contribid, rating)
{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest)
 {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject)
 {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq )
 {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/contributions/ratecontributions/index.cfm?id='+contribid+'&rating='+rating+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var top = myXmlreq.responseXML.getElementsByTagName("top")[0].childNodes[0].nodeValue;
 var flop = myXmlreq.responseXML.getElementsByTagName("flop")[0].childNodes[0].nodeValue;
 var ratingdone = myXmlreq.responseXML.getElementsByTagName("ratingdone")[0].childNodes[0].nodeValue;
 var errormessage = myXmlreq.responseXML.getElementsByTagName("errormessage")[0].childNodes[0].nodeValue;
 if(ratingdone == 0)
 {
 document.getElementById('ratemessage'+contribid).innerHTML = errormessage;
 document.getElementById('ratemessage'+contribid).style.display = "block";
 }
 document.getElementById('topcount'+contribid).innerHTML = top;
 document.getElementById('flopcount'+contribid).innerHTML = flop;
 }
 }
}

function rateBlog(pkblogs, rating)
{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest)
 {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject)
 {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq )
 {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/community/blogs/rateblog.cfm?id='+pkblogs+'&rating='+rating+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var top = myXmlreq.responseXML.getElementsByTagName("top")[0].childNodes[0].nodeValue;
 var flop = myXmlreq.responseXML.getElementsByTagName("flop")[0].childNodes[0].nodeValue;
 var ratingdone = myXmlreq.responseXML.getElementsByTagName("ratingdone")[0].childNodes[0].nodeValue;
 var errormessage = myXmlreq.responseXML.getElementsByTagName("errormessage")[0].childNodes[0].nodeValue;
 if(ratingdone == 0)
 {
 document.getElementById('ratemessage'+pkblogs).innerHTML = errormessage;
 document.getElementById('ratemessage'+pkblogs).style.display = "block";
 }
 document.getElementById('topcount'+pkblogs).innerHTML = top;
 document.getElementById('flopcount'+pkblogs).innerHTML = flop;
 }
 }
}


function rateClubnews(pkclubnews, rating)
{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest)
 {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject)
 {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq )
 {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/community/clubnews/rateClubnews.cfm?id='+pkclubnews+'&rating='+rating+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var top = myXmlreq.responseXML.getElementsByTagName("top")[0].childNodes[0].nodeValue;
 var flop = myXmlreq.responseXML.getElementsByTagName("flop")[0].childNodes[0].nodeValue;
 var ratingdone = myXmlreq.responseXML.getElementsByTagName("ratingdone")[0].childNodes[0].nodeValue;
 var errormessage = myXmlreq.responseXML.getElementsByTagName("errormessage")[0].childNodes[0].nodeValue;
 if(ratingdone == 0)
 {
 document.getElementById('ratemessage'+pkclubnews).innerHTML = errormessage;
 document.getElementById('ratemessage'+pkclubnews).style.display = "block";
 }
 document.getElementById('topcount'+pkclubnews).innerHTML = top;
 document.getElementById('flopcount'+pkclubnews).innerHTML = flop;
 }
 }
}


function rateFAQAnswer(postid, rating)
{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest)
 {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject)
 {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq )
 {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/questions/rateanswer/index.cfm?id='+postid+'&rating='+rating+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var top = myXmlreq.responseXML.getElementsByTagName("top")[0].childNodes[0].nodeValue;
 var flop = myXmlreq.responseXML.getElementsByTagName("flop")[0].childNodes[0].nodeValue;
 var ratingdone = myXmlreq.responseXML.getElementsByTagName("ratingdone")[0].childNodes[0].nodeValue;
 var errormessage = myXmlreq.responseXML.getElementsByTagName("errormessage")[0].childNodes[0].nodeValue;
 if(ratingdone == 0)
 {
 document.getElementById('ratemessage'+postid).innerHTML = errormessage;
 document.getElementById('ratemessage'+postid).style.display = "block";
 }
 document.getElementById('toprating'+postid).innerHTML = top;
 document.getElementById('floprating'+postid).innerHTML = flop;
 }
 }
}

function rateToplist(postid, rating)
{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest)
 {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject)
 {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq )
 {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/toplists/ratetoplist/index.cfm?id='+postid+'&rating='+rating+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var top = myXmlreq.responseXML.getElementsByTagName("top")[0].childNodes[0].nodeValue;
 var flop = myXmlreq.responseXML.getElementsByTagName("flop")[0].childNodes[0].nodeValue;
 var ratingdone = myXmlreq.responseXML.getElementsByTagName("ratingdone")[0].childNodes[0].nodeValue;
 var errormessage = myXmlreq.responseXML.getElementsByTagName("errormessage")[0].childNodes[0].nodeValue;
 if(ratingdone == 0)
 {
 document.getElementById('ratemessage').innerHTML = errormessage;
 document.getElementById('ratemessage').style.display = "block";
 }
 document.getElementById('toprating').innerHTML = top;
 document.getElementById('floprating').innerHTML = flop;
 }
 }
}



var myXmlreq = false;
function setProductUserRating(pk) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/games/userrating.cfm?id='+pk+'&rating='+document.sampleForm.sliderValue6h.value+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var userratingcount = myXmlreq.responseXML.getElementsByTagName("userratingcount")[0].childNodes[0].nodeValue;
 var userrating = myXmlreq.responseXML.getElementsByTagName("rating")[0].childNodes[0].nodeValue;
 var errormessage = myXmlreq.responseXML.getElementsByTagName("errormessage")[0].childNodes[0].nodeValue;
 if ( errormessage != '' ) {
 document.getElementById('userratingerror').innerHTML = errormessage;
 document.getElementById('userratingerror').style.display = "block";
 document.getElementById('userratingerror').style.color = "#FF0000";
 document.getElementById('userratingerrorspacer').style.display = "block";
 }
 else {
 
 document.getElementById('userratingerror').innerHTML = "Sie haben Ihre Bewertung f&uuml;r dieses Spiel soeben erfolgreich abgegeben!";
 document.getElementById('userratingerror').style.display = "block";
 document.getElementById('userratingerror').style.color = "#00AA00";
 document.getElementById('userratingerrorspacer').style.display = "block";
 }
 document.getElementById('userratingcount').innerHTML = userratingcount;
 document.getElementById('userrating').innerHTML = userrating;
 
 }
 }
}

var myXmlreq = false;
function getZodiacsign(date) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/community/check_zodiacsign.cfm?dateofbirth='+document.changePersonalData.dateofbirth.value, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var zodiacsign = myXmlreq.responseXML.getElementsByTagName("name")[0].childNodes[0].nodeValue;
 for(var i = 0; document.changePersonalData.zodiacsign.options.length > i; i++)
 {
 if(document.changePersonalData.zodiacsign.options[i].value == zodiacsign)
 {
 document.changePersonalData.zodiacsign.options[i].selected = true;
 }
 }
 }
 }
}

var myXmlreq = false;
function putImageinGallery(pkimages) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/galleries/putimageingallery.cfm?id='+pkimages+'&cacheconfuse='+document.changePersonalData.dateofbirth.value, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var zodiacsign = myXmlreq.responseXML.getElementsByTagName("name")[0].childNodes[0].nodeValue;
 for(var i = 0; document.changePersonalData.zodiacsign.options.length > i; i++)
 {
 if(document.changePersonalData.zodiacsign.options[i].value == zodiacsign)
 {
 document.changePersonalData.zodiacsign.options[i].selected = true;
 }
 }
 }
 }


}


var myXmlreq = false;
function mp3Rating(ppk,pval) {
 try{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/downloads/mp3/filerating.cfm?pk='+ppk+'&op='+pval+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var tmpval=myXmlreq.responseText.split("|");
 var up=tmpval[0];
 var down=tmpval[1];
 document.getElementById("vote_up_nr_mp3_"+ppk).innerHTML = up;
 document.getElementById("vote_down_nr_mp3_"+ppk).innerHTML = down;
 }
 }
 }catch(e){}
}


var myXmlreq = false;
function mp3Inform() {
 try{
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 var val;
 val=document.getElementById("mp3game_url").value;
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/downloads/mp3/informdownload.cfm?url='+val+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 document.getElementById("urlmp3label").innerHTML=myXmlreq.responseText;
// document.getElementById("mp3game_url").value="http://";
// document.getElementById("urlmp3label").style.display="none";
 document.getElementById("mp3game_url").style.display="none";
 document.getElementById("mp3game_url_submit").style.display="none";
 }
 }
 }catch(e){}
}

var myXmlreq = false;
function getFolderlist(folderid) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/community/showabothreads.cfm?folderid='+folderid+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var success = myXmlreq.responseXML.getElementsByTagName("success")[0].childNodes[0].nodeValue;
 var content = myXmlreq.responseXML.getElementsByTagName("stmpcontent")[0].childNodes[0].nodeValue;
 document.getElementById('threadlist').innerHTML = content;
 document.getElementById('threadlist').style.display = "block";
 }
 }
}

function createGamePollVote(pk) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/gamepolls/index.cfm?id='+pk+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var votingdone = myXmlreq.responseXML.getElementsByTagName("votingdone")[0].childNodes[0].nodeValue;
 var reperrormessage = myXmlreq.responseXML.getElementsByTagName("reperrormessage")[0].childNodes[0].nodeValue;
 if ( votingdone == 0 ) {
 document.getElementById('gamepollerror').innerHTML = reperrormessage;
 document.getElementById('gamepollerror').style.display = "block";
 }
 var countlist=myXmlreq.responseXML.getElementsByTagName("count");
 for (var i = 0; i<countlist.length; i++) {
 countPK = countlist[i].getAttribute("pk");
 countVal = countlist[i].childNodes[0].nodeValue;
 document.getElementById('votecount_'+countPK).innerHTML = countVal;
 }
 var percentlist=myXmlreq.responseXML.getElementsByTagName("percent");
 for (var i = 0; i<percentlist.length; i++) {
 percentPK = percentlist[i].getAttribute("pk");
 percentVal = percentlist[i].childNodes[0].nodeValue;
 document.getElementById('votepercent_'+percentPK).innerHTML = percentVal;
 }
 }
 }
}
function MM_window(theURL,wname,features) { window.open(theURL,wname,features); }

function MM_preloadStyles() { var d=document; if(d.Styles){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadStyles.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Style; d.MM_p[j++].src=a[i];}}}

function MM_ArticlePrint(pk) { MM_window('/_misc/articles/print/article_print.cfm?pk=' + pk + '&op=prn','ArtikelDrucken','width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_ArticleSend(pk,fk,pid) { MM_window('/_misc/articles/send/article_send.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'ArtikelSenden','width=600,height=350,resizable=no,scrollbars=yes,menubar=no'); }

function MM_PDF(pk,fk,op,pid) { MM_window('/_misc/pdfs/download.cfm?pk=' + pk + '&fk=' + fk + '&op=' + op + '&pid=' + pid,'PDFDownload','width=720,height=500,resizable=no,scrollbars=yes'); }

function MM_ArticleFeedback(pk,pid) { MM_window('/_misc/articles/feedback/article_feedback.cfm?pk=' + pk + '&pid=' + pid,'ArtikelFeedback','width=580,height=290,resizable=no,scrollbars=yes'); }

function MM_Notification(pk,pid) { MM_window('/_misc/articles/notification/index.cfm?pk=' + pk + '&pid=' + pid, 'Downloadbenachrichtigung','width=600,height=300,resizable=no,scrollbars=yes'); }

function MM_GameDescription(pk,pid) { MM_window('/_misc/games/description.cfm?pk=' + pk + '&pid=' + pid, 'Beschreibung', 'width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_GameRequirements(pk,pid) { MM_window('/_misc/games/requirements.cfm?pk=' + pk + '&pid=' + pid, 'Anforderungen', 'width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_GameLogo(pk,pid) { MM_window('/_misc/games/logo.cfm?pk=' + pk + '&pid=' + pid, 'Spielelogo', 'width=400,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_Edition(pk, fk, pid) { MM_window('/_misc/games/edition.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Edition', 'width=548,height=500,resizable=no,scrollbars=no,menubar=no'); }

function MM_USK(pk, pid) { MM_window('/_misc/games/usk.cfm?pk=' + pk + '&pid=' + pid, 'USK', 'width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_Gallery(pk, fk, pid) { MM_window('/_misc/galleries/detail.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Galerie', 'width=900,height=900,resizable=yes,scrollbars=yes,menubar=no,top=0,left=0'); }

function MM_GalleryInteractive(pk, fk, pid) { MM_window('/_misc/galleries/detail_interactive.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Galerie', 'width=900,height=900,resizable=yes,scrollbars=yes,menubar=no,top=0,left=0'); }

function MM_Wallpaper(pk, fk, conv, pid) { MM_window('/_misc/wallpaper/detail.cfm?pk=' + pk + '&fk=' + fk + '&conv=' + conv + '&pid=' + pid, 'Wallpapers', 'width=900,height=900,resizable=yes,scrollbars=yes,menubar=no,top=0,left=0'); }



function MM_RatingBox(pk, pid) { MM_window('/_misc/games/ratingweighting.cfm?pk=' + pk + '&pid=' + pid, 'RatingBox', 'width=548,height=490,resizable=no,scrollbars=yes,menubar=no'); }

function MM_ContentAlert(contenttype, pk, pid) { MM_window('/_misc/contentalert/index.cfm?contenttype=' + contenttype + '&pk=' + pk + '&pid=' + pid, 'ContentAlert', 'width=548,height=500,resizable=no,scrollbars=no,menubar=no'); }

function MM_Image(contenttype, pk, fk, addid, pid){ MM_window('/_misc/images/detail.cfm?contenttype=' + contenttype + '&pk=' + pk + '&fk=' + fk + '&addid=' + addid + '&pid=' + pid, 'Bild', 'width=945,height=800,resizeable=yes,scrollbars=yes,menubar=no');}

function MM_GameImage(contenttype, pk, fk, addid, pid){ MM_window('/_misc/games/gamesimages.cfm?pk=' + pk + '&pid=' + pid + '&addid=' + addid + '&contenttype=' + contenttype, 'CommunityImage', 'width=548,height=500,resizable=yes,scrollbars=yes,menubar=no');}

function MM_Readme(pk, pid) { MM_window('/_misc/articles/readme/readme.cfm?pk=' + pk + '&pid=' + pid, 'Readme', 'width=530,height=800,resizeable=no,scrollbars=yes,menubar=no'); }

function MM_Download(pk, fk, pid) { MM_window('/_misc/downloads/detail.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Download', 'width=548,height=500,resizeable=yes,scrollbars=yes,menubar=no'); }

function MM_DownloadVideo(pk, fk, pid) { MM_window('/_misc/videos/detail.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Download', 'width=548,height=500,resizeable=yes,scrollbars=yes,menubar=no'); }

function MM_DownloadVideoArchiv(pk, fk, pid) { MM_window('/_misc/downloads/videos/detailarchiv.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Download', 'width=548,height=500,resizeable=yes,scrollbars=yes,menubar=no'); }

function MM_Podcast(pk, fk, pid) { MM_window('/_misc/downloads/podcasts/detail.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Download', 'width=548,height=500,resizeable=yes,scrollbars=yes,menubar=no'); }

function MM_Betatest(pk, pid) { MM_window('/_misc/betatest/betatest.cfm?pk=' + pk + '&pid=' + pid, 'Betatestschluessel','width=400,height=200,resizable=no,scrollbars=yes'); }

function MM_Popup(pk, pid) { MM_window('/_misc/popup/detail.cfm?pk=' + pk + '&pid=' + pid, 'Download', 'width=548,height=500,resizeable=no,scrollbars=no,menubar=no'); }

function MM_DLExclusive(pk, fk, pid) { MM_window('/_misc/downloads/exklusivartikel/exclartdetail.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Download', 'width=548,height=500,resizeable=no,scrollbars=no,menubar=no'); }

function MM_Cover(pk,attribs, pid) { MM_window('/_misc/cover/detail.cfm?pk=' + pk + '&pid=' + pid, 'Cover', attribs); }

function MM_CurrIssue(pk,fk) { MM_window('/_misc/issues/detail.cfm?pk=' + pk + '&fk=' + fk); }

function MM_UserGallery(pk, fk, pid) { MM_window('/_misc/galleries/detail_usergallery.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'Galerie', 'width=1000,height=1000,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_PicSelect(fk,id,pid) { MM_window('/_misc/galleries/_picselect.cfm?fk=' + fk + '&id=' + id + '&pid=' + pid, 'Bildauswahl', 'width=900,height=900,resizable=yes,scrollbars=yes,menubar=no,top=0,left=0'); }

function MM_GameSearch(pid,op) { MM_window('/_misc/games/gamesearch.cfm?pid=' + pid + '&pkpages=' + pid + '&op=' + op, 'Search', 'width=514,height=600,resizeable=no,scrollbars=no,menubar=no'); }

function MM_MyGames(pk, pid, opv) { MM_window('/_misc/games/mygames.cfm?pk=' + pk + '&pid=' + pid + '&opv=' + opv, 'MeineSpiele', 'width=400,height=300,resizable=no,scrollbars=yes,menubar=no'); }

function MM_IgnoreUser(pk, pid) { MM_window('/_misc/community/ignore/ignoreuser.cfm?pk=' + pk + '&pid=' + pid, 'Benutzerignorieren', 'width=548,height=500,resizeable=no,scrollbars=no,menubar=no'); }

function MM_Friend(pk, pid) { MM_window('/_misc/community/friends/newfriend.cfm?pk=' + pk + '&pid=' + pid, 'Freund', 'width=548,height=500,resizeable=no,scrollbars=no,menubar=no'); }

function MM_AcceptFriend(pk, hash) { MM_window('/_misc/community/friends/newfriend.cfm?pk=' + pk + '&hash=' + hash, 'Freundakzeptieren', 'width=548,height=500,resizeable=no,scrollbars=no,menubar=no'); }

function MM_LanGal(pk,fk) { MM_window('/_misc/galleries/detail_lanpartygallery.cfm?pk=' + pk + '&fk=' + fk, 'Galerie'); }

function MM_GenerateConributionPDF(contribFK) { MM_window('/_misc/contributions/pdf/generate_pdf.cfm?pk=' + contribFK,'contribution_pdf','width=720,height=550,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_CommunityImage(pk, pid) { MM_window('/_misc/community/communityimage.cfm?pk=' + pk + '&pid=' + pid, 'CommunityImage', 'width=548,height=500,resizable=yes,scrollbars=no,menubar=no'); }

function MM_DownloadContributionFile(pk, fk, pid) { MM_window('/_misc/downloads/contributions/detail.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'DownloadContributions', 'width=548,height=500,resizeable=yes,scrollbars=yes,menubar=no'); }

function MM_Wazap(pk, pid) { MM_window('/_misc/wazap/index.cfm?pk=' + pk + '&pid=' + pid, 'Wazap', 'width=548,height=500,resizable=no,scrollbars=no,menubar=no'); }

function MM_PodcastLink(pk,fk,pid) { MM_window('/_misc/downloads/podcasts/podcast_link.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'PodcastKopieren','width=600,height=350,resizable=no,scrollbars=yes,menubar=no'); }

function MM_ContributionPrint(pk) { MM_window('/_misc/contributions/print/contribution_print.cfm?pk=' + pk + '&op=prn','TippDrucken','width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_ContributionSend(pk,fk,pid,fkproducts) { MM_window('/_misc/contributions/send/contribution_send.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid + '&fkprod=' + fkproducts, 'TippSenden','width=600,height=350,resizable=no,scrollbars=yes,menubar=no'); }

function OpenWissensquiz(pk, pid) { MM_window('/_misc/quiz/index.cfm?pk=' + pk + '&pid=' + pid,'Quiz','width=550,height=450,toolbar=no,locationbar=no,directories=no,scrollbars=no,status=no,menubar=yes,resizable=no'); }

function MM_Watchblog(pk, pid) { MM_window('/_misc/community/blogs/watchblog.cfm?pk=' + pk + '&pid=' + pid, 'Benutzerignorieren', 'width=548,height=500,resizeable=no,scrollbars=no,menubar=no'); }

function MM_MyAlerts(pk, fk) { MM_window('/_misc/alerts/index.cfm?pk=' + pk + '&fk=' + fk, 'Benachrichtigungen', 'width=500,height=548,resizable=yes,scrollbars=no,menubar=no'); }

function MM_Ecard(pk, pid, opv) { MM_window('/_misc/ecard/index.cfm?pk=' + pk + '&pid=' + pid + '&opv=' + opv , 'Grusskarte', 'width=500,height=300,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_InMyGallery(fk) { MM_window('/_misc/galleries/putimageingallery.cfm?id='+fk , 'EigeneGalerie', 'width=400,height=300,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_TestPreview(pk,fk,pid) { MM_window('/_misc/usertest/preview/preview.cfm?pk='+pk + '&fk='+fk+ '&pid=' +pid , 'Vorschau', 'width=560,height=900,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_ChoicePreview(pk,fk,pid) { MM_window('/_misc/usertest/preview/choicepreview.cfm?pk='+pk + '&fk='+fk+ '&pid=' +pid , 'Vorschau', 'width=560,height=900,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_GameFanPages(pk,pid) { MM_window('/_misc/games/gamesfanpages.cfm?pk=' + pk + '&pid=' + pid, 'Fanseiten', 'width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_UpsDescription(pk,pid) { MM_window('/_misc/community/upsdescription.cfm?pk=' + pk + '&pid=' + pid, 'Beschreibung', 'width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_CautionUserSearch(pid, op) { MM_window('/_misc/community/cautions/user_search.cfm?pid=' + pid + '&op=' + op, 'UserSuche', 'width=400,height=300,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_ArticlePrintLT(pk) { MM_window('/_misc/usertest/usertest_print.cfm?pk=' + pk + '&op=prn','LesertestDrucken','width=548,height=500,resizable=no,scrollbars=yes,menubar=no'); }

function MM_ArticleSendLT(pk,fk,pid) { MM_window('/_misc/usertest/usertest_send.cfm?pk=' + pk + '&fk=' + fk + '&pid=' + pid, 'LesetestSenden','width=600,height=350,resizable=yes,scrollbars=yes,menubar=no'); }

function MM_ArticleFeedbackLT(pk,pid) { MM_window('/_misc/usertest/usertest_feedback.cfm?pk=' + pk + '&pid=' + pid,'LesertestFeedback','width=580,height=290,resizable=no,scrollbars=yes'); }

function MM_GenerateUsertestPDF(fk) { MM_window('/_misc/usertest/pdf/index.cfm?pk=' + fk,'usertest_pdf','width=720,height=550,resizable=yes,scrollbars=yes,menubar=no'); }
function ClearFormField(FF, FFValue) { if(FF.value == FFValue) { FF.value = ''; } else if(FF.value == '') { FF.value = FFValue; } }
function SelectFormField(fieldname) { fieldname.focus(); fieldname.style.border = '1px solid #ff0000'; }
// nbsp / MB / 2007-04-04 HH:mm / JS-Funktionen Preloads Images (eingefuegt von os - nbsp GmbH)
function nbspPreloadImages()
{
 var d=document;
 if(d.images)
 {
 if(!d.MM_p) d.MM_p=new Array();
 var i,j=d.MM_p.length,a=nbspPreloadImages.arguments;
 for(i=0; i<a.length; i++)
 if (a[i].indexOf("#")!=0)
 {
 d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
 }
 }
}

function MM_GC_GenrecheckBox(checkboxvalue) { if(checkboxvalue == true) {document.compareform.genrecheck.value = 1; } else {document.compareform.genrecheck.value = 0; } }
function MM_GC_ClaimBox(checkboxvalue) { if(checkboxvalue == true) {document.compareform.claim.value = 1; } else {document.compareform.claim.value = 0; } }
function MM_GC_TechnicsBox(checkboxvalue) { if(checkboxvalue == true) {document.compareform.technics.value = 1; } else {document.compareform.technics.value = 0; } }
function MM_GC_MultiplayerBox(checkboxvalue) { if(checkboxvalue == true) {document.compareform.multiplayer.value = 1; } else {document.compareform.multiplayer.value = 0; } }
function MM_GC_RatingsBox(checkboxvalue) { if(checkboxvalue == true) {document.compareform.ratings.value = 1; } else {document.compareform.ratings.value = 0; } }
function MM_GC_GSSubmit()
 {
 if(document.compareform.genrecheck.value == 0 && document.compareform.claim.value == 0 && document.compareform.technics.value == 0 && document.compareform.multiplayer.value == 0 && document.compareform.ratings.value == 0)
 {
 alert("Bitte w" + String.fromCharCode(228) + "hlen Sie mindestens einen Bereich f" + String.fromCharCode(252) + "r den Spielevergleich aus!")
 }
 else
 {
 document.compareform.submit();
 }
 }
function MM_GC_fillSelect(liste, ziel, init){
 var liste1 = liste.split(",");
 if (init == 1){
 deleteSelectOptions(ziel);
 }
 for (i=0; i<liste1.length; i++){
 addSelectOption(ziel, liste1[i]);
 }
}
function MM_GC_FillSelect(listobject,newlistobject,maxentrys)
{
 // Standardmaessig 5 anzeigen
 if (typeof maxentrys == "undefined")
 var maxentrys = 5;
 for (i = 0; i < listobject.length; ++i)
 if (listobject.options[i].selected == true)
 {
 // Pruefung ob schon maxentrys Elemtente in der Liste sind
 if(newlistobject.length == maxentrys)
 {
 alert("Es sind maximal " + maxentrys + " Eintr" + String.fromCharCode(228) + "ge m" + String.fromCharCode(246) + "glich!");
 break;
 }
 else
 {
 var insertelement = 1;
 // Pruefung ob ID schon in der Liste ist
 for (j = 0; j < newlistobject.length; ++j)
 {
 if (newlistobject.options[j].value == listobject.options[i].value)
 {
 alert("Eintrag " + listobject.options[i].text + " bereits in der Liste!");
 insertelement = 0;
 }
 }
 if (insertelement == 1)
 newlistobject.options[newlistobject.length] = new Option(listobject.options[i].text,listobject.options[i].value);
 }
 }
}
function MM_GC_RemoveSelect(listobject)
{
 var listlen = listobject.length-1;
 for (i = listlen; i >= 0; --i)
 if (listobject.options[i].selected == true)
 {
 // Objekt loeschen
 listobject.options[i] = null;
 }
}
function MM_GC_Open(pk,listobject)
{
 var gameids = '';
 var limiter = '';
 var widthperentry = 146;
 if(listobject.length > 0)
 {
 // Alle Eintraege
 for (i = 0; i < listobject.length; ++i)
 {
 gameids = gameids + limiter + listobject.options[i].value;
 limiter = ',';
 }
 windowwidth = (listobject.length*widthperentry) + 312;
 MM_window('/_misc/games/gamecompare.cfm?pk=' + pk + '&opv=' + gameids, 'GameCompare', 'width=' + windowwidth + ',height=600,top=100,left=100,resizable=yes,scrollbars=yes,menubar=no');
 }
 else
 {
 alert("Bitte mindestens ein Spiel zum Vergleich ausw" + String.fromCharCode(228) + "hlen!");
 }
}
//GP
function MM_GCGP_Open(pk,listobject)
{
 var gameids = '';
 var limiter = '';
 var widthperentry = 146;
 if(listobject.length > 0)
 {
 // Alle Eintraege
 for (i = 0; i < listobject.length; ++i)
 {
 gameids = gameids + limiter + listobject.options[i].value;
 limiter = ',';
 }
 windowwidth = (listobject.length*widthperentry) + 312;
 MM_window('/_misc/games/gp_gamecompare.cfm?pk=' + pk + '&opv=' + gameids, 'GameCompare', 'width=' + windowwidth + ',height=600,top=100,left=100,resizable=yes,scrollbars=yes,menubar=no');
 }
 else
 {
 alert("Bitte mindestens ein Spiel zum Vergleich ausw" + String.fromCharCode(228) + "hlen!");
 }
}
//F�r Gamepro um gleiche Spiele auf Platformen zu vergleichen
function MM_GPPL_Open(pk,pklist)
{
 //alert("pklist: " + pklist);
 var gameids = '';
 var widthperentry = 146;
 if(pklist)
 {
 windowwidth = (1*widthperentry) + 312;
 MM_window('/_misc/games/gp_gamecompare.cfm?pk=' + pk + '&opv=' + pklist, 'GameCompare', 'width=' + windowwidth + ',height=400,top=100,left=100,resizable=no,scrollbars=yes,menubar=no');
 }
 else
 {
 alert("Kein Wertungskasten vorhanden!");
 }
}

function MM_AC_Open(pk,listobject,pid,rating,technical)
{
 var articleids = '';
 var limiter = '';
 var widthperentry = 146;
 var windowheight = 500;
 if(listobject.length > 0)
 {
 // kw nbsp 31.10.2770 - Fensterhoehe ermitteln und setzen
 if(rating == 1 && technical == 0){
 windowheight = 800;
 }
 if(rating == 0 && technical == 1){
 windowheight = 530;
 }
 if(rating == 1 && technical == 1){
 windowheight = 800;
 }
 // Alle Eintraege
 for (i = 0; i < listobject.length; ++i)
 {
 articleids = articleids + limiter + listobject.options[i].value;
 limiter = ',';
 }
 windowwidth = (listobject.length*widthperentry) + 312;
 MM_window('/_misc/articles/hardwarecompare/hardware_compare.cfm?pid=' + pid + '&pk=' + pk + '&opv=' + articleids + '&rating=' + rating + '&technical=' + technical, 'HardwareCompare', 'width=' + windowwidth + ',height='+windowheight+',top=100,left=100,resizable=no,scrollbars=yes,menubar=no');
 }
 else
 {
 alert("Bitte mindestens ein Produkt zum Vergleich ausw" + String.fromCharCode(228) + "hlen!");
 }
}
function MM_sendComment()
{
 if(document.commentsform.comment.value != '')
 {
 document.getElementById('notexterror').style.display = 'none';
 
 
 document.sendcommentsform.comment.value = document.commentsform.comment.value;
 document.sendcommentsform.submit();
 
 
 }
 else
 {
 document.getElementById('notexterror').style.display = 'block';
 }
}


function CheckTA(el,l,ta){
 if (el.value.length <= l && typeof ta != "undefined") {
 document.getElementById(ta).innerHTML="[" + el.value.length + "/" + l + "]"; }
 else { el.value=el.value.substring(0,l) }
}

function MM_ClearFormField(TmpF,TmpValue)
{
 if(TmpF.value == TmpValue)
 {
 TmpF.value = '';
 }
 else if(TmpF.value == '')
 {
 TmpF.value = TmpValue;
 }
}


function showhideElement(item)
{
 var e=document.getElementById(item);
 if(!e)return true;
 if(e.style.display=="none"){
 e.style.display="block"
 } else {
 e.style.display="none"
 }
 return true;
}

function GS_HardwareCompare()
{
 if(document.ratingform.rating.checked == false && document.ratingform.technical.checked == false)
 {
 alert("Bitte w" + String.fromCharCode(228) + "hlen Sie mindestens einen Bereich f" + String.fromCharCode(252) + "r den Produktvergleich aus!")
 }
 else
 {
 document.ratingform.submit();
 }
}

function ups_showcolor(id){
 var element = document.getElementById(id);
 element.parentNode.className = "buttoncolor";
}
function ups_hidecolor(id){
 var element = document.getElementById(id);
 element.parentNode.className = "button";
}

function changesettings(pk) {
 var rnd = Math.round(Math.random()*100000);
 // make request
 if (window.XMLHttpRequest) {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject) {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq ) {
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/tests/userhardware/index.cfm?fk='+pk+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 if ( myXmlreq.status == 200 ) {
 var cpu = myXmlreq.responseXML.getElementsByTagName("cpu")[0].childNodes[0].nodeValue;
 var gr = myXmlreq.responseXML.getElementsByTagName("gr")[0].childNodes[0].nodeValue;
 var ram = myXmlreq.responseXML.getElementsByTagName("ram")[0].childNodes[0].nodeValue;
 var os = myXmlreq.responseXML.getElementsByTagName("os")[0].childNodes[0].nodeValue;
 var reputationdone = myXmlreq.responseXML.getElementsByTagName("reputationdone")[0].childNodes[0].nodeValue;
 var reperrormessage = myXmlreq.responseXML.getElementsByTagName("reperrormessage")[0].childNodes[0].nodeValue;
 if ( reputationdone == 0 ) {
 document.getElementById('reputationerror').innerHTML = reperrormessage;
 document.getElementById('reputationerror').style.display = "block";
 }
 document.getElementById('CPU').value = cpu;
 document.getElementById('GR').value = gr;
 document.getElementById('RAM').value = ram;
 document.getElementById('OS').value = os;
 }
 }
}


function CustomizeBox(src,pk,action)
{
 var rnd = Math.round(Math.random()*100000);
 var err = 0;
 // make request
 if (window.XMLHttpRequest)
 {
 myXmlreq = new XMLHttpRequest();
 }
 else if (window.ActiveXObject)
 {
 try { myXmlreq = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e1) {
 try { myXmlreq = new ActiveXObject("Microsoft.XMLHTTP"); }
 catch (e2) {}
 }
 }
 if ( myXmlreq )
 {
 var tmp = 'http://'+window.location.hostname+'/_misc/boxcustomizing/index.cfm?id='+pk+'&a='+action+'&src='+src+'&cacheconfuse='+rnd;
 myXmlreq.open('GET', 'http://'+window.location.hostname+'/_misc/boxcustomizing/index.cfm?id='+pk+'&a='+action+'&src='+src+'&cacheconfuse='+rnd, false);
 myXmlreq.send(null);
 
 if ( myXmlreq.status == 200 ) {
 try {
 var success = myXmlreq.responseXML.getElementsByTagName("success")[0].childNodes[0].nodeValue;
 var error = myXmlreq.responseXML.getElementsByTagName("error")[0].childNodes[0].nodeValue;
 window.location.reload();
 }
 catch (err) {
 err = 1;
 alert("Leider ist ein Fehler aufgetreten.\n" + tmp);
 }
 }
 }
}
function MoveIt(action,object)
{
}

function navAllInactive(tb) { oNav = document.getElementById(tb); oLis = oNav.getElementsByTagName('LI'); for (i = 0; i < oLis.length; i++) { oLis[i].className = ''; } }

function reloadStatistic (code,id) {
 if(!id) { 
 var id = "";
 } else {
 id = "." + id;
 }
 var get_rand = "d=" + (Math.random()*100000);
 var get_referer = "r=" + escape(document.referrer);
 var countIVW = new Image();
 var lowercode = code.toLowerCase();
 countIVW.src = "http://gastar.ivwbox.de/cgi-bin/ivw/CP/" + code + "?" + get_referer + "&" + get_rand;
 var countSitestat = new Image();
 countSitestat.src = "http://de.sitestat.com/idgcom-de/gamestar/s?ajax_elemente." + lowercode + id + ".home&" + get_rand;
}


