function swapImage(imageID, imagePath) {
	var imgID;
	imgID = document.getElementById(imageID);
	imgID.src = imagePath;
}

function openForm(file) {
	formWindow = window.open (file,'formwindow','height=600,width=815,scrollbars=1,resizeable=0,toolbar=0,location=0');
	}
	
function openXNU(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,width=800,height=620');
self.name = "mainWin";
}

function openBlog(file) {
	blogWindow = window.open (file,'blogwindow','height=600,width=815,scrollbars=1,resizeable=0,toolbar=1,location=0');
	}

function openMedia(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
	
function pickURL(_args) {
   var ran_num = Math.floor(Math.random()*arguments.length);
   var randurl = arguments[ran_num];
   //alert(ran_num);
   if (ran_num == 0) {
	window.open (randurl,'formwindow','height=600,width=815,scrollbars=1,resizeable=0,toolbar=0,location=0');
    } else {
	u='/forms/moreinfo_split.php';
	window.location.href=u;
    }
	}

