function divswap(divname) {
$('infoarea').innerHTML=$(divname).innerHTML;
} 

function swap(i,imgid) {
SampleID=$(imgid);
if(document.all) SampleID.filters.item(0).Apply();SampleID.src = i;
if(document.all) SampleID.filters.item(0).Play();
}

function navCart(htmval) {
	$('Domain_Cart_DisplaySmall').innerHTML=htmval;
}

function loadMap() {
	window.maploaded=true;
}

function icx_windowopen() {
	var launchURL = 'http://roomplanner.icovia.com/domaininc/resources/icovia.aspx';
	var planID = "";
	if(planID.length > 20){
		launchURL = 'http://roomplanner.icovia.com/domaininc/resources/launch.swf?planID='+planID;
	}
	
	var newWindow = null;
	newWindow=window.open(launchURL ,'RP','height=550,width=800,top='+((screen.height/2)-(300))+',left='+((screen.width/2)-(400))+',status=no,toolbar=no,scrollbars=no,resizable=yes,menubar=no'); void(0);
	
	var popUpMsg = "You appear to have a pop-up blocker that prevents the Room Planner from opening. Please enable pop-ups for this site and try again. Thank you.";
	if(!newWindow){
		alert(popUpMsg);
	}
	
}

function openWindow(dest,aw,ah,target) { 
	if (!aw) aw = 620;
	if (!ah) ah = 510;
	if (!target) target='infowindow'
	Win = window.open(dest,target,'width=' + aw + ',height=' + ah + ',resizable=1,scrollbars=yes,menubar=no,status=no,toolbar=no,location=no,directories=no' );
	Win.focus();
	return void(0);
}

function printWindow(aw,ah) {
	dest = window.location + "";
	if (dest.indexOf("?") > 0) {
		openWindow(window.location + '&print',aw,ah,'printpreview');
	} else {
		openWindow(window.location + '?print',aw,ah,'printpreview');
	}
}