/*

	Should cut down on mistakes where params get changed for ie but not firefox and vice versa
	writeEmbed("historyManager.swf",550,400,"#000000","historyManager","location="+loc);
	
*/

function writeIFrame(i_src,i_id,i_width,i_height,i_scrolling,i_frameborder) {
				
	//Set defaults
	if (i_src == null) return;
	if (i_id == null) i_id = "Frame"+Date.getTime();
	if (i_width == null) i_width = "";
	if (i_height == null) i_height = "";	
	if (i_scrolling == null) i_scrolling = "auto";
	if (i_frameborder == null) i_frameborder = "0";

	
	var iframeText = '<iframe ';
	iframeText += 'src="' + i_src + '" ';		
	iframeText += 'name="'+i_id+'" ';
	iframeText += 'id="'+i_id+'" ';
	iframeText += 'width="'+i_width+'" ';
	iframeText += 'height="'+i_height+'" ';
	if (i_scrolling != null) 	iframeText += 'scrolling="'+i_scrolling+'" ';
	iframeText += 'frameborder="'+i_frameborder+'" ';	
	iframeText += '></iframe> '
	
	document.write ( iframeText );
	
}