﻿

(function()
{
	var _publish_sudoku_acct_ = "ABC123";
	var _publish_sudoku_frame_width = 515;
	var _publish_sudoku_frame_height = 520;
	var _publish_sudoku_puzzle_url = "http://www.publishsudoku.com/publish-sudoku.aspx?";

	function quoted(str) 
	{
		return (str != null) ? '"' + str + '"' : '""';
	}

	function writeSudokuFrame(d)
	{
		_publish_sudoku_puzzle_url = _publish_sudoku_puzzle_url + "acct=" + _publish_sudoku_acct_;
		
		d.write('<ifr' + 'ame name="trax_frame"' +
		' width=' + quoted(_publish_sudoku_frame_width) +
		' height=' + quoted(_publish_sudoku_frame_height) +
		' frameborder="0"' +
		' src=' + quoted(_publish_sudoku_puzzle_url) +
		' marginwidth="0″ marginheight="0″ vspace="0″ hspace="0″ allowtransparency="true" scrolling="no">');

		d.write('</ifr' + 'ame>');
	}

	writeSudokuFrame(document);
	
})( )


