var nextYoutube = 1;

function submitSearch() { 
	if( checkSearch() ) {
		document.searchForm.submit();
	}
	else {
		document.searchForm.lq.focus();
	}
}

function s( s ) { 
	return s.replace( /<[^>]*>/g, '' );
}

function ytn( p, w, h ) {
	document.getElementById( 'yv' ).innerHTML = yto( p, youtubes[ nextYoutube++ ], w, h );
	document.getElementById( 'yn' ).innerHTML = nextYoutube;
	if( nextYoutube >= youtubes.length ) { 
		nextYoutube = 0; 
	}
}

function yto ( p, c, w, h ) { 
	return'<iframe frameborder="0" width="' + w + '" height="' + h + '" src="' + p + 'youtube.php?id=' + c + '"></iframe>';
}

