function extDat(D, R, O, I){
	var pDat = new Array();
	pDat = progIndex[R][O-1].split(';');
	var giveback = pDat[(D*5)+I];
	return giveback;
}

function wV(inD,inR,inO) 
{
	document.write('<img src="http://xout.smhi.se/extsites/portaler/img_smhi/symb' + extDat(inD,inR,inO,0) + '.gif" alt="" /> ' + extDat(inD,inR,inO,1) + '&deg;<img src="http://xout.smhi.se/extsites/portaler/img_smhi/pil_' + extDat(inD,inR,inO,2) + '.gif" alt="" /> ' + extDat(inD,inR,inO,3) + ' m/s<br />' + progFras[extDat(inD,inR,inO,4)]); 
}

function PopupWindow(url_pop)
{
	var PopWidth=250;
	var PopHeight=500;
	var PopLeft = (window.screen.width-PopWidth)/2;
	var PopTop = (window.screen.height-PopHeight)/2;
    
	a=window.open(url_pop,'Weather','toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=yes,scrollbars=yes,width='+PopWidth+',height='+PopHeight+',top='+PopTop+',left='+PopLeft).focus();
}

