function checkDiv(checkedagain){
	if (typeof(window.innerHeight) == 'number') {
		win_height = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			win_height = document.documentElement.clientHeight;

		}
		else {
			if (document.body && document.body.clientHeight) {
				win_height = document.body.clientHeight;
			}
		}
	}
	if (document.all) {
		doc_height = document.body.offsetHeight;
	} else if (document.layers) {
		doc_height = document.body.document.height;
	} else {
		doc_height = document.body.offsetHeight;
	}
	document.getElementById('Quick_Estimate').style.left = document.getElementById('Main_Table').offsetLeft+document.getElementById('Banner_4').offsetLeft+document.getElementById('Banner_4').offsetWidth-document.getElementById('Quick_Estimate').offsetWidth+"px";
	
}
function open_close(){
	form_height = document.getElementById('Quick_text').offsetHeight+document.getElementById('Quick_T').offsetHeight+document.getElementById('Quick_B').offsetHeight;
	div_height = document.getElementById('Quick_Form').offsetHeight;
	if(div_height>=form_height){
		action = "close";	
	} else {
		action = "open";	
	}
	if(typeof(open_close_int) != "undefined"){
		if(document.getElementById('Opener').value == "Closed"){
			action = "close";	
		} else {
			action = "open";	
		}
		clearInterval(open_close_int);
	}
	open_close_int  = setInterval("open_close_fnct('"+action+"')", 10);	
}
function open_close_fnct(action){
	div_height = document.getElementById('Quick_Form').offsetHeight;
	form_height = document.getElementById('Quick_text').offsetHeight+document.getElementById('Quick_T').offsetHeight+document.getElementById('Quick_B').offsetHeight;
	if(action == "close"){
		newheight = div_height-20;
		newaction = "Open";
	} else {
		newheight = div_height+20;
		newaction = "Closed";
	}
	document.getElementById('Quick_Form').style.height = newheight+"px";
	div_height = document.getElementById('Quick_Form').offsetHeight;
	if(div_height <= 1 || div_height >= form_height){
		document.getElementById('Opener').value = newaction;
		clearInterval(open_close_int);	
	}
}