

<!--Open a new window to display an image //-->


function openImageWindow(imageSrc) {
    var theImage = new Image();
	theImage.src = imageSrc;
    var msgWindow = window.open('','','Height=' + 320 + ',Width=' + 320 + 'resizable=no');
    var page='';
    msgWindow.document.open();
    msgWindow.document.write('<body bgcolor="black" onBlur="self.close()"><div align="center"><IMG SRC="' + imageSrc + '"></div></body>');
    msgWindow.document.close();
}



<!--RollOver image function for Banner icons //-->

if (document.images) {
   colour1_off = new Image
   colour2_off = new Image
   colour1_on = new Image
   colour2_on = new Image
   colour3_on = new Image
   colour4_on = new Image

   colour1_off.src="../images/smart_vr.gif"
   colour2_off.src="../images/banner-right.gif"
   colour1_on.src="../images/smart_vr_on.gif"
   colour2_on.src="../images/ampa_on.gif"
   colour3_on.src="../images/eamg-med_on.gif"
   colour4_on.src="../images/forum_on.gif"

}

function changeImage(imgField,newImg) {
		 if (document.images) {
		 document[imgField].src = eval(newImg + ".src")
		 }	 
}


<!--open a window for KnowledgeView.co.uk (defaults to all features (scrolling, navbar, etc.) //-->
function kv_Window(URL, popName) {
    kv_home = window.open(URL, popName);
	kv_home.focus();
}

<!--Generic pop-up window function - as used for Elaph services (email, chat, etc.) //-->
var window_handle; 
function open_popup(page, popUpName, theWidth, theHeight) {
    window_handle = window.open(page, popUpName, 'directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes, width='+ theWidth +', height='+ theHeight);
    window_handle.focus();

}





 
