set_i = function( field, check, val ){
	if( field.value == check ){ field.value = val; }
}

_e = function( t ){ document.write( "<br />" + t ) }

blank_it = function(){
	if( !document.getElementsByTagName ){ return; }
	c = ( arguments.length == 1 )? arguments[0] : '_blank';
	t = document.getElementsByTagName('A');
	for( i = 0; i < t.length; i++ ){ if( t[i].className.indexOf(c) != -1 ){ t[i].target = "_blank"; } }
}

win = '';
pop_it = function( url, name, w, h ){
	if( arguments.length == 5 ){ c = arguments[4]; }
	else{ c = false; }
	
	if(c){
		t = (window.screen.height-h)/2;
		l = (window.screen.width-w)/2;
	}else{
		t = 1;
		l = 1;
	}
	
	if( arguments.length == 6 ){ s = ( arguments[5] )? 'yes' : 'no'; }
	else{ s = 'no'; }
	
	config = "locationbar=0, personalbar=0, statusbar=0, status=0, menubar=0, toolbar=0, resizable=no, scrolling=" + s + ", scrollbars=" + s + ", location=0, width=" + w + ", height=" + h + ", top=" + t + ", left=" + l;
	win = window.open(url, name, config);
	win.focus();
	return false;
}