function rating(){
	popupsize();
	x = (screen.width - width) / 2;
	y = (screen.height - height) / 2;
	window.moveTo(x,y);
}
function popupsize(){
	if( typeof( window.innerWidth ) == 'number' ) {
		width = window.innerWidth;
		height = window.innerHeight;
	}
	else if( document.documentElement &&( document.documentElement.clientWidth || document.documentElement.clientHeight )){
		width = document.documentElement.clientWidth;
		height = document.documentElement.clientHeight;
	}
	else if( document.body && (document.body.clientWidth || document.body.clientHeight)){
		width = document.body.clientWidth;
		height = document.body.clientHeight;
	}
}
function dspl(obj,value){
	document.getElementById(obj).value=value;
}
function swthumbs(x){	
	allthumbs = new Array();
	allthumbs = x.split(",");
	id = allthumbs.shift();
	step = 2;
	sw_thumbs();
}
function sw_thumbs(){
	if(allthumbs[0] == "RESET" || (allthumbs[0] == "ANIM" && allthumbs[2] == "")){
		document.getElementById(id).src=allthumbs[1];
		return true;
	}
	setTimeout("sw_thumbs()",500);
	document.getElementById(id).src=allthumbs[step];
	if (step<(allthumbs.length-1)){
		step++;
	}
	else{
		step=2;
	}
}
