// CROSSWORD POPUP
	var xwW = (screen.availWidth && screen.availWidth<760) ?  screen.availWidth-12 : 760;
	var xwH = (screen.availHeight && screen.availHeight<540) ? screen.availHeight-(screen.height-screen.availHeight) : 540;
	var xwL = (screen.availWidth) ? Math.floor((screen.availWidth/2) - (xwW/2))-12 : 0;
	var xwT = (screen.availHeight) ? Math.floor((screen.availHeight/2) - (xwH/2))-(screen.height-screen.availHeight) : 0;
	var _XWORD_FEATURES = 'left='+xwL+',top='+xwT+',resizable=0,location=0,statusbar=0,menubar=0,width='+xwW+',height='+xwH+'';
// WORDSORT POPUP
	var wsW = (screen.availWidth && screen.availWidth<760) ?  screen.availWidth-12 : 760;
	var wsH = (screen.availHeight && screen.availHeight<540) ? screen.availHeight-(screen.height-screen.availHeight) : 540;
	var wsL = (screen.availWidth) ? Math.floor((screen.availWidth/2) - (wsW/2))-12 : 0;
	var wsT = (screen.availHeight) ? Math.floor((screen.availHeight/2) - (wsH/2))-(screen.height-screen.availHeight) : 0;
	var _WORDSORT_FEATURES = 'left='+wsL+',top='+wsT+',resizable=1,location=0,statusbar=0,menubar=0,width='+wsW+',height='+wsH+'';
// WORDBUILDER POPUP
	var wbW = (screen.availWidth && screen.availWidth<760) ?  screen.availWidth-12 : 760;
	var wbH = (screen.availHeight && screen.availHeight<540) ? screen.availHeight-(screen.height-screen.availHeight) : 540;
	var wbL = (screen.availWidth) ? Math.ceil((screen.availWidth/2) - (wbW/2))-12 : 0;
	var wbT = (screen.availHeight) ? Math.ceil((screen.availHeight/2) - (wbH/2))-(screen.height-screen.availHeight) : 0;
	var _WORDBUILDER_FEATURES = 'left='+wbL+',top='+wbT+',resizable=1,location=0,statusbar=0,menubar=0,width='+wbW+',height='+wbH+'';

var updateScreenDimensions = function(){
	// FOR CROSSWORD POPUP
	xwW = (screen.availWidth && screen.availWidth<760) ? screen.availWidth-12 : 760;
	xwH = (screen.availHeight && screen.availHeight<540) ? screen.availHeight-(screen.height-screen.availHeight) : 540;
	xwL = (screen.availWidth) ? Math.floor((screen.availWidth/2) - (xwW/2))-12 : 0;
	xwT = (screen.availHeight) ? Math.floor((screen.availHeight/2) - (xwH/2))-(screen.height-screen.availHeight) : 0;
	_XWORD_FEATURES = 'left='+xwL+',top='+xwT+',resizable=0,location=0,statusbar=0,menubar=0,width='+xwW+',height='+xwH+'';
	// FOR WORDSORT POPUP
	wsW = (screen.availWidth && screen.availWidth<760) ?  screen.availWidth-12 : 760;
	wsH = (screen.availHeight && screen.availHeight<540) ? screen.availHeight-(screen.height-screen.availHeight) : 540;
	wsL = (screen.availWidth) ? Math.floor((screen.availWidth/2) - (wsW/2))-12 : 0;
	wsT = (screen.availHeight) ? Math.floor((screen.availHeight/2) - (wsH/2))-(screen.height-screen.availHeight) : 0;
	_WORDSORT_FEATURES = 'left='+wsL+',top='+wsT+',resizable=1,location=0,statusbar=0,menubar=0,width='+wsW+',height='+wsH+'';
	// FOR WORDBUILDER POPUP
	wbW = (screen.availWidth && screen.availWidth<760) ? screen.availWidth-12 : 760;
	wbH = (screen.availHeight && screen.availHeight<540) ? screen.availHeight-(screen.height-screen.availHeight) : 540;
	wbL = (screen.availWidth) ? Math.ceil((screen.availWidth/2) - (wbW/2))-12 : 0;
	wbT = (screen.availHeight) ? Math.ceil((screen.availHeight/2) - (wbH/2))-(screen.height-screen.availHeight) : 0;
	_WORDBUILDER_FEATURES = 'left='+wbL+',top='+wbT+',resizable=1,location=0,statusbar=0,menubar=0,width='+wbW+',height='+wbH+'';
}