function popmywindow(){
	Index = window.open('','pmw','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=270,height=235,top=0,left=0');
}
function ddsSI(ele) {
	if (ele) {
		var e  = $(ele);
		thesrc = e.src;
		thesrc = thesrc.substring(0, thesrc.lastIndexOf("&"));
		e.src = thesrc+"&"+Math.round(Math.random()*100000);
	} else if ($("security_image")) {
		thesrc = $("security_image").src;
		thesrc = thesrc.substring(0, thesrc.lastIndexOf("&"));
		$("security_image").src = thesrc+"&"+Math.round(Math.random()*100000);
	} else {
		alert("Sorry, cannot reload security image\nTry and email us directly.\nEmail address is either in the footer or on the contact page.");
	}
}
function ddsLinkExternal() {
	if ($('content')) {
		$$('#content a.external', '#content a[href^="http://"]').each(function(e) {
			e.title  += ' (opens in new window)';
			e.onclick = function() {
				newWin = window.open(this.href,'ddsLinkExternalWindow');
				if (window.focus) {
					newWin.focus();
				}
				return false;
			}
			e.removeClassName('external');
			e.addClassName('outside');
		});
	}
}
function setDropDown(field, data, method, index) {
	field.options.length = index == null ? 1 : index;
	data.each(function(e) {
		field.options.add(method(e));
	});
}
document.observe("dom:loaded", function() {
	ddsLinkExternal();
});