                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
var popupWin;

// example of the openFPWindow Function below:
// <a href="javascript:openFPWindow('URL here','title of window here','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=590,height=420')">
function openFPWindow(URL,name,attrib) {
  if (popupWin) {
	if (!popupWin.closed) {
		popupWin.close();
	}
   }
	popupWin = window.open(URL,name,attrib);
	popupWin.focus();
}

function doSwap(location, image) {
        document[location].src=image;
}




function doubleSwap(location1, image1, location2, image2) {
        doSwap(location1, image1)
        doSwap(location2, image2)
}


	
	function doThis(text){
	  document.getElementById("mine").innerHTML=text;
	  document.getElementById("mine").className="S1";
	}
	
	function doBoth(location,image,text) {
		doSwap(location, image);
		doThis(text);
		
	}





