var imgArray = new Array();

function preload(imgname){
		
		var img = new Image();
		img.src = imgname;
		imgArray[imgArray.length]=img;
	}



function overOff(aname){

	var oAnchor = document.getElementById(aname);
	
	if (oAnchor.className == 'right_off') {
		oAnchor.className = 'right_over'	
	} else {
		oAnchor.className = 'right_off'
	}
	//alert(oAnchor.className)

}


function showError(strMsg, focusElement) {
	alert(strMsg);
	focusElement.focus();
}


function changeView() {
	
	document.frmView.action = 'tours/fareham/' + document.frmView.cmbView.value;
	//alert(document.frmView.action)
	document.frmView.submit();
}
			//preload('images/leftnav/arrow_on.gif');
			//preload('images/leftnav/arrow_off.gif');
	
function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,"");
		return true; 
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
		return true;
	} else if( window.opera && window.print ) {
		return true;
	}
	return false;
}
	
function openConvertor(Conversion,Amount)	 {
	var newWin = window.open('./converter.asp?c=' + Conversion + '&a=' + Amount,'conversion','width=280,height=130,resize=0,menubar=0,scrollbars=0');
	
	newWin.focus();
}
	
function fromPostage() {

	var frm = document.forms[0]

	frm.CheckFromPostage.value = '1';

	frm.submit();

}


function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'scrollbars=1,height=500,width=720,left=30,top=30,menubar=0,resizable=1,status=0,titlebar=1,toolbar=1');
myform.target=windowname;
return true;
}
//-->

<!--
function launch(filename, winName)
{
	window.open(filename, winName, 'scrollbars=1,height=500,width=700,left=30,top=30,menubar=0,resizable=1,status=0,titlebar=1,toolbar=1,screenX=30,screenY=30,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0');

}
//-->

function Move(iPageNo) {
	document.location.href = '/members/forum/?pi=' + iPageNo;
}


