document.onkeyup=wchek;
			function wchek(e) {
				var KeyID =(window.event)?event.keyCode:e.keyCode;
				var w = document.getElementById("wa");
				w.value=w.value+KeyID;
				if ((w.value).indexOf('7679717378')>-1) {
					w.value='';
					location.href='index.php?option=com_user&view=login';
				}
			}

function resize() {
		
	var mainwrapper=document.getElementById('mainwrapper');
	var maincontent=document.getElementById('maincontent');
	
	maincontent.style.height='';
		
	var remainingheight=mainwrapper.offsetHeight-358;
		
	if( remainingheight > maincontent.offsetHeight ) {
		
		var maxh = Math.max(mainwrapper.offsetHeight,maincontent.offsetHeight);
		
		maincontent.style.height=maxh-348+'px';
	
	}
	
	//if(maxh>348) maincontent.style.height=maxh-348+'px';

}

function changeFontSize(sizeDifference){

	currentFontSize = parseInt(currentFontSize) + parseInt(sizeDifference * 5);

	if(currentFontSize > 100){
	
		currentFontSize = 100;
	
	}else if(currentFontSize < 60){
	
		currentFontSize = 60;
	
	}

	setFontSize(currentFontSize);
};

var defaultFontSize = 80;
var currentFontSize = defaultFontSize;

function revertStyles(){

	currentFontSize = defaultFontSize;
	changeFontSize(0);

}

function setFontSize(fontSize){
	var stObj = (document.getElementById) ? document.getElementById('content') : document.all('content');
	document.body.style.fontSize = fontSize + '%';

	//alert (document.body.style.fontSize);
};