//Resize winlike
function setSize(PageName, Height,Width)
{
	if (document.body.offsetHeight==0) // this is necessary for Mozilla because the onLoad event comes to early for offsetHeight...
	{
		setTimeout("setHeight("+Height+")",100); // call this procedure later again
		return; // exit for now
	}

	var NNoffset=16 // really don't know why (default skin use 16; for white skin 8 ...)
	var myoffset=
		parent.WinLIKE.ie?
			document.body.scrollHeight+18+13+2+2:          // IE: scrollHeight + SkinTop + SkinBottom + SkinBorderTop + SkinBorderBottom         (see wm-window.html of the skin for correct values)
			document.body.offsetHeight+18+13+2+2+NNoffset; // NN: scrollHeight + SkinTop + SkinBottom + SkinBorderTop + SkinBorderBottom + ????? (see wm-window.html of the skin for correct values)
	
		// set Height to the minimum without scrollbars
	if (Height==-1) Height=myoffset;
		
	number=parent.WinLIKE.searchwindow(PageName) // find Menu window
	parent.WinLIKE.windows[number].Height=Height; // set Height
	parent.WinLIKE.windows[number].Width=Width; // set Height
	parent.WinLIKE.windows[number].draw(); // lets happen
	
}

function special_topic(frmname,elename,num)
{
		if (num==4)
		{
			document.forms[frmname].elements[elename].className    = "StormyWeatherInput" ;
			document.forms[frmname].elements[elename].disabled = false ;
		}
		else
		{
			document.forms[frmname].elements[elename].value     = '' ;
			document.forms[frmname].elements[elename].className = "StormyWeatherInputDisable" ;
			document.forms[frmname].elements[elename].disabled  = true ;
			//alert(document.newrecord.topic_pic.className) ;
		}
}
