function rollbg(objectID, toClass) {
	document.getElementById(objectID).className=toClass;
}
function getNewHTTPObject(){
	var xmlhttp;
	/** Special IE only code ... */
	/*@cc_on
	@if (@_jscript_version >= 5) try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (E){
			xmlhttp = false;
		}
	}
	@else
	xmlhttp = false;
	@end @*/
	/** Every other browser on the planet */
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined'){
		try{
			xmlhttp = new XMLHttpRequest();
		}
		catch (e){
			xmlhttp = false;
		}
	}
	return xmlhttp;
}

function setSession(path,varname,varval){
	var v=getNewHTTPObject(); 
	v.open('GET',path+'?name='+varname+'&value='+varval, true); 
	v.send(''); 
}
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;
	}
	dimensions=new Array();
	dimensions[0]=myWidth;
	dimensions[1]=myHeight;
	return dimensions;
}
function getElementSize(element) {
	var myWidth = 0, myHeight = 0;
	myWidth = element.offsetWidth;
	myHeight = element.offsetHeight;
	dimensions=new Array();
	dimensions[0]=myWidth;
	dimensions[1]=myHeight;
	return dimensions;
}
function placeSite(){
	/*
	if (document.getElementById('listingHolder')) {
		var dimensions=getWindowSize(); 
		var headerHeight=getElementSize(document.getElementById('header')); 
		var footerHeight=getElementSize(document.getElementById('footer')); 
		var centerHeight=getElementSize(document.getElementById('center')); 
		var listingsHeight=getElementSize(document.getElementById('listingHolder')); 
		var targetH=(dimensions[1]-((footerHeight[1]+headerHeight[1]))-(centerHeight[1]-listingsHeight[1])); 
		var targetH=(dimensions[1]-250); 
		alert(targetH);
		
		document.getElementById('listingHolder').style.height=targetH+'px'; 
		document.getElementById('listingHolder').style.overflow='auto'; 
	}
	*/
}