function switchimages(i,j) {
document.intermediate.intermediate.value=document.images['img'+i+'2'].src;
document.images['img'+i+'2'].src=document.images['img'+i+j].src;
document.images['img'+i+j].src=document.intermediate.intermediate.value;
}

function windowopen(url, name, width, height) {
window.open(url, name, "width=" + width + ",height=" + height + ",top=" + (window.screen.availHeight-height)/2 + ",left=" + (window.screen.availWidth-width)/2 + ",statusbar, scrollbars");
}

function iml(dmn_text,dmn_start,dmn_len,usr_text,usr_start,usr_len,cntr_text,cntr_start,cntr_len) {
document.location='mailto:' + usr_text.substr(usr_start,usr_len) + '@' + dmn_text.substr(dmn_start,dmn_len)  + '.' + cntr_text.substr(cntr_start,cntr_len);
}

function errorsuppressor() {
return true;
}
window.onerror=errorsuppressor;

function resize()
{
	if (document.getElementById)
	{
		var img = document.getElementById("img");
		var w = img.width+60;
		var h = img.height+150;
		if (window.screen.availWidth < w)
			w = window.screen.availWidth;
		if (w < 250)
			w = 250;
		if (window.screen.availHeight < h)
			h = window.screen.availHeight;
		var x = (window.screen.availWidth - w) / 2;
		var y = (window.screen.availHeight - h) / 2;
		if (x < 0)
			x = 0;
		if (y < 0)
			y = 0;

		window.moveTo(x, y);
		window.resizeTo(w, h);
	}
	return true;
}