function OpenWindow(str,URL){ 
	if (confirm(str)) {
		var mywindow=window.open(URL);
	}
}

function mm_changeStyle(file){ 
	document.getElementById("cssStyle").setAttribute("href",file); 
}

function resize_iframe()
{
	var obj = document.getElementById("glu");

	try {
		if(obj.contentDocument.body)
			throw "thread 1"
		else
			throw "thread 3"
	}
	catch(er) {
		if(er == "thread 1")//firefox
		{
			if (document.getElementById)
			{
				if (obj && !window.opera)
				{
					if (obj.contentDocument && obj.contentDocument.body.offsetHeight)
					{
						obj.height = obj.contentDocument.body.offsetHeight+100;
					}
					else if(obj.Document && obj.Document.body.scrollHeight)
					{
						obj.height = obj.Document.body.scrollHeight+100;
					}
				}
			}
		}
		else
		{
			try {
				if (obj.contentWindow.document.body.scrollHeight)
					throw "thread 2"
				else
					throw "thread 3"
			}
			catch(er) {
				//alert(er);
				if(er == "thread 2")//ie
					obj.height = obj.contentWindow.document.body.scrollHeight+50;
				else
					obj.height = 855;
			}
		}
	}
}

