function newWindow(pop) {
popWindow = window.open(pop, "popup", "scrollbars=yes,toolbar=yes,width=440,height=520")
popWindow.focus()
}

function newSlideshow(location) {
slideWindow = window.open(location, "slideshow", "scrollbars=yes,resizable=yes,toolbar=no,location=no,status=no,menubar=no,width=600,height=650")
slideWindow.focus()
}

function newFullsize(fullSize) {
fullWindow = window.open(fullSize, "fullSizetext", "scrollbars=yes,resizable=yes,toolbar=yes,location=yes,status=yes,menubar=yes,width=612,height=400")
fullWindow.focus()
}


function changeWindowSize(windowWidth,windowHeight) {
		window.resizeTo(windowWidth,windowHeight);
}


//block javascript errors:
// Source: CodeFoot.com


function blockError(){return true;}

window.onerror = blockError;


/*
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
*/

var clickmessage="Right click disabled on images!"

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"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
