function resizeme() {	
	
	if (document.body.clientHeight<680) {
			document.getElementById('main').style.height='680';
	}
	else {
		document.getElementById('main').style.height='100%';	
	}
	
		if (document.body.clientWidth<1000) {
		document.getElementById('main').style.width='1000';
		}
	else {
		document.getElementById('main').style.width='100%';
	}

}

window.onresize =function() {resizeme();};
window.onload =function() {	resizeme();};