function changeDiv(the_div,the_change) {
	var the_style = getStyleObject(the_div);
	if (the_style != false)	{
		the_style.display = the_change;
	}
}//end changeDiv

function changeTab(tabId, p_class) {
	document.getElementById('tab'+tabId).className = p_class;
	document.getElementById('tabText'+tabId).className = p_class + 'Link';
}//end changeTab

function hideDiv(the_div) {
	changeDiv(the_div, "none");
}//end hideSpecific

function showDiv(the_div) {
	changeDiv(the_div, "block");
}//end hideSpecific


function getStyleObject(objectId) {
	if (document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId).style;
	} 
	else if (document.all && document.all(objectId)) {
		return document.all(objectId).style;
	} 
	else {
		return false;
	}
}//end getStyleObject
function switchDiv(the_div) {
        var the_style = getStyleObject(the_div);
        if(the_style.display == "block") {
                the_style.display = "none";
        }
        else if(the_style.display == "none") {
                the_style.display = "block";
        }
}//end switchDiv
function getWindowSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	var size = new Array();
	size['width'] = myWidth;
	size['height'] = myHeight;
	return size;
}
