<!-- // BLOCK ERROR
function blockError(){return true;}
window.onerror = blockError;
// -->

// --------------------- Begin IMAGE ROLLOVER script-----------------------

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

// ----------- start NO SPAM CONTACT scripting --------------

function em(_u,_n)
{	var _l   = _u + "@" + "rdnassociates.com";
	document.write("<a href='mailto:"+_l+"?subject=Inquiry from website'>"+_n+"</a>");  }	
	
function em1(_u,_n)
{	var _l   = _u + "@" + "rdnassociates.com";
	document.write("<a href='mailto:"+_l+"?subject=Inquiry from website GALLERY'>"+_n+"</a>");  }	
	
	
function pokeName(_f,_n,_d) {
  _f.elements["recipient"].value= _n + "@" + _d;
}

// ----------- start SELF-SIZING BROWSER-FRIENDLY CHILD WINDOW scripting --------------

/* Created by: Crazy Merlin :
http://nl.internet.com/ct.html?rtr=on&s=1,282v,1,83o,6n0z,lizu,hryg
Lee Underwood :
http://nl.internet.com/ct.html?rtr=on&s=1,282v,1,jlzb,dlcr,lizu,hryg
*/
function newWin(link,w,h,s,r,l,t) {
   // the next two lines should all be on one line with no space
     
   var winFeatures = 'width=' + w + ',height=' + h + ',scrollbars=' + s + ',resizable=' + r + ',left=' + l + ',top=' + t ;
   var bookWindow = window.open(link, "", winFeatures); }

// -------------------- Begin Form Value Delete -----------------------------

/*
Clear default form value script- By Ada Shimar (ada@chalktv.com)
Featured on Website Abstraction (http://wsabstract.com)
Visit wsabstract.com for 400+ free scripts!
*/

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

// -------------------- start FAVORITES POPUP scripting -----------------------------

function addbookmark()
{
bookmarkurl="http://www.RDNAssociates.com/"
bookmarktitle="Websites by RDN Associates"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// -------------------- end FAVORITES POPUP scripting -----------------------------

// -------------------- Begin Ad Pop Up scripting -----------------------------
<!-- Original:  Ronnie T. Moore, Editor -->
closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=325,top=200,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup1() {
url = "new.html";
width = 450;  // width of window in pixels
height = 150; // height of window in pixels
delay = 5;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}

// -------------------- End Ad Pop Up scripting -----------------------------
