
// disable right click script
var message="Copyright 2004 Irishcorner.com and contributors. All rights reserved.";

///////////////////////////////////
function clickIE4(){
	if (event.button==2){
		alert(message);
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
			alert(message);
			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
} else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

//document.oncontextmenu=new Function("alert(message);return false");

// OPEN WINDOW FUNCTION FOR VIEWING LARGE VERSION OF IMAGE
function open_window(url,w,h) {
	var status_string = "resizable=no,location=yes,status=yes,menubar=yes,,toolbar=yes,scrollbars=yes,width="+w+",height="+h;
	open(url, "_blank", status_string);
}

function newWindow() {
	window.open("http://www.johneaglephotography.com","","height=450,width=550,right=20,top=20,toolbar=yes")
}

function visit(newTheme) {
  //--If the selected file name isn't blank, send it to reader.
  if (newTheme != "") {
    location.href=newTheme
  }
}


function changeMultiple()
{
	var val, rest_recipients;
	var no_of_recipients=document.pForm.no_of_recipients.options[document.pForm.no_of_recipients.selectedIndex].value;
	flag=0;

	rest_recipients=parseInt(no_of_recipients)+1;
	var select=no_of_recipients;

	for(i=2; i<=no_of_recipients; i++)
	{
	switch(i){
	case 2:
	document.getElementById("rname2").style.display="block";
	break;
	case 3:
	document.getElementById("rname3").style.display="block";
	break;
	case 4:
	document.getElementById("rname4").style.display="block";
	break;
	case 5:
	document.getElementById("rname5").style.display="block";
	break;
		}//for switch
	}//for i
	for(i=i;i<=25;i++)
	{
	switch(i){
	case 2:
	document.getElementById("rname2").style.display="none";
	break;
	case 3:
	document.getElementById("rname3").style.display="none";
	break;
	case 4:
	document.getElementById("rname4").style.display="none";
	break;
	case 5:
	document.getElementById("rname5").style.display="none";
	break;
		}//for switch
	}//for i


}

function e (z, h, w) {
	z = z - 5694;
	document.write('<div style="width:'+w+';height:'+h+';background:white url(http://www.irishcorner.com/card_images/'+z+'.jpg) no-repeat center center;"><img src="/images/spacer.gif" width="'+w+'" height="'+h+'" border=1></div>')
}

