function NewWindow(mypage, myname, w, h, scroll) {

	var winl = (screen.width - w) / 2;

	var wint = (screen.height - h) / 2;

	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'

	win = window.open(mypage, myname, winprops)

	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}



function Is() {

    var agent = navigator.userAgent.toLowerCase();

    this.major = parseInt(navigator.appVersion);

    this.minor = parseFloat(navigator.appVersion);

    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));

    this.ns2 = (this.ns && (this.major == 2));

    this.ns3 = (this.ns && (this.major == 3));

    this.ns4b = (this.ns && (this.minor < 4.04));

    this.ns4 = (this.ns && (this.major >= 4));

    this.ns6 = (this.ns && (this.major == 6));	

    this.ie   = (agent.indexOf("msie") != -1);

    this.ie3  = (this.ie && (this.major == 2));

    this.ie4  = (this.ie && (this.major >= 4));

    this.op3 = (agent.indexOf("opera") != -1);

    this.win   = (agent.indexOf("win")!=-1);

    this.mac   = (agent.indexOf("mac")!=-1);

    this.unix  = (agent.indexOf("x11")!=-1);	

}

var is = new Is();



function showLayer(id)	

{	

		if(document.getElementById)

		{

			this.css = eval(document.getElementById(id).style);

			this.css.visibility = 'visible'				

		}

		if(document.layers)

		{

			this.css = eval(document.layers[id]);

			this.css.visibility = 'show';

		}

		if(document.all)

		{

			document.all[id].style.visibility = 'visible';

		}			

}0



function hideLayer(id)	

{	

		if(document.getElementById)

		{

			this.css = eval(document.getElementById(id).style);

			this.css.visibility = 'hidden'

		}

		if(document.layers)

		{

			this.css = eval(document.layers[id]);		

			this.css.visibility = 'hide';

		}

		if(document.all)

		{	

			document.all[id].style.visibility = 'hidden';

		}

}



/*

Disable right click script II (on images)- By Dynamicdrive.com

For full source, Terms of service, and 100s DTHML scripts

Visit http://www.dynamicdrive.com

Modified here to disable IE image hover menu and

truly disable right click in FF by jscheuer1 in

http://www.dynamicdrive.com/forums

*/



var clickmessage="Copyright Singapore Philatelic Museum"



function disableclick(e) {

if (document.all) {

if (event.button==2||event.button==3) {

if (event.srcElement.tagName=="IMG"){

alert(clickmessage);

return false;

}

}

}

else if (document.layers) {

if (e.which == 3) {

alert(clickmessage);

return false;

}

}

else if (document.getElementById)

if (e.which==3&&e.target.tagName=="IMG")

setTimeout("alert(clickmessage)",0)

}



function associateimages(){

for(i=0;i<document.images.length;i++)

document.images[i].onmousedown=disableclick;

}



if (document.all){

document.onmousedown=disableclick

for (var i_tem = 0; i_tem < document.images.length; i_tem++)

document.images[i_tem].galleryimg='no'

}

else if (document.getElementById)

document.onmouseup=disableclick

else if (document.layers)

associateimages()





<!--



//Disable right click script III- By Renigade (renigade@mediaone.net)

//For full source code, visit http://www.dynamicdrive.com



var message="";

///////////////////////////////////

function clickIE() {if (document.all) {(message);return false;}}

function clickNS(e) {if 

(document.layers||(document.getElementById&&!document.all)) {

if (e.which==2||e.which==3) {(message);return false;}}}

if (document.layers) 

{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}

else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}



document.oncontextmenu=new Function("return false")

// -->
