function swapIMG(imgid,swapimg){
	document.getElementById(imgid).src = swapimg;
}

function swapBG(imgid,bgimg,iefilter){
	document.getElementById(imgid).style.background = "url(" + bgimg + ")";
	if(iefilter) {//runtimeStyle
		document.getElementById(imgid).style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + bgimg + "',sizingMethod='crop')";
		//document.getElementById(imgid).style = "background: url('" + bgimg + "') no-repeat; *background-image:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + bgimg + "',sizingMethod='crop')";
	}
}
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}
/*popups*/
function openWin(url) 
{
 var width  = 320;
 var height = 240;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=yes';
 params += ', toolbar=no';
 newwin=window.open(url,'openwin', params);
 if (window.focus) {newwin.focus()}
 return false;
}
function redirectAfterTo(url,time){
	setTimeout('window.location.href="' + url + '"', time);
}
//from: http://www.nigraphic.com/blog/java-script/how-open-new-window-popup-center-screen
function PopupCenter(pageURL, title,w,h) {
	var left = (screen.width/2)-(w/2);
	var top = (screen.height/2)-(h/2);
	var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
} 
