/*function pgload (obj)
	{
		top.location="/~olympiad/"+obj+"/"+obj+"winners.php"
	}
*/
function pgload (obj)
	{
		top.location="/"+obj+"/"+obj+"winners.php"
	}
function photoSizeDetect()
	{
		var imageObj = getElementById("nowShowImage");
		var imgWidth = document.imageObj.style.width;
		var imgHeigth = document.imageObj.style.Height;
		var divObj = getElementById("viewframe");
		document.divObj.style.width = imgWidth+6;
		document.divObj.style.Height = imgHeight +6;		
	}
function submenu_changestate (el_id, state)
	{
		var blockElement = document.getElementById(el_id);
		blockElement.style.visibility = state;
	}

function addSmile(objID, value) 
	{
    obj=document.getElementById(objID);
    obj.value = obj.value + value;
    obj.focus();
  }
	
/*	
	<html>
    <script>
	function setVal(objID, value) {
	    obj=document.getElementById(objID);
	    obj.value = value;
	}
    </script>
    <input type='button' onclick="setVal('text', 'test')">
    <textarea id='text'></textarea>
</html>
*/
