// JavaScript Document

	window.onload = function(){
		setSize();
	}
	window.onresize = function(){
		setSize();
	}
	
	function setSize(){
		if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		  winW = window.innerWidth;
		  winH = window.innerHeight;
		 }
		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		  winW = document.body.offsetWidth;
		  winH = document.body.offsetHeight;
		 }
		}
		maxW = 1225;
		if(winW>maxW){
			setW = maxW;
		}else{
			setW = winW;
		}
		 document.getElementById('wrapper').style.width = winW-25+"px";
		 document.getElementById('backwrap').style.height = winH+"px";
		 document.getElementById('backwrap').style.width = (setW-25)+"px";
		 document.getElementById('backwrap').style.margin = "auto";
	}
	

	
	function showdiv(thediv){
		document.getElementById(thediv).style.display = '';	
	}	
	function hidediv(thediv){
		document.getElementById(thediv).style.display = 'none';	
	}
	
	function clearfield(thefield){
		document.getElementById(thefield).value = '';	
	}