
function killFlip(which){
	var whichImg = which + 'Img'
	if( flip[whichImg] ){
		flip[whichImg].killFlip('/images/nav/t1_' + which + '_on.gif')
	}
}

function popupWin(url, name, w, h, scroll){
	if(!name) name = 'popupWin';
	if(!w) w = 600;
	if(!h) h = 420;
	if(!scroll) scroll = 'yes';
	var x = screen.availWidth /2 - ( w /2 );
	var y = screen.availHeight /2 - ( h /2 );
	window.open( url, name, 'width=' + w + ',height=' + h + ',screenY=' + y + ',screenX='+ x + ',top=' + y + ',left=' + x + ',scrollbars=' + scroll + ',resizable=yes' );
}

function printThis(){
	if( window.print ) { window.print(); }
	else { alert( 'Choose File then Print from your browser\'s menu.' ); }
}

function submitContactForm(frm){
	if( validate(frm) ){
		popupWin('/contact_processing.htm','contactFormWin',250,120,'no');
		return true;
	}
	else{ return false; }
}

function initContactForm(frm){
	if(!is.ns4){ frm.firstname.focus(); }
	else { document.layers.body.document.forms.contact.firstname.focus() }
}