function showWeather(v){

strDivcontent=document.all("weather").innerHTML;
strDivcontentLen=strDivcontent.length;

if (v==1) {
	weatherSplit="今日天气：</B></SPAN>";
}
else{
	weatherSplit="温度:";
}
weatherSplit_len=weatherSplit.length;

weatherSplitPosition=strDivcontent.indexOf(weatherSplit)+weatherSplit_len;

strSplited=strDivcontent.substr(weatherSplitPosition);
if (v==1) {
	splitPoint=strSplited.indexOf("温度");
}
else{
	splitPoint=strSplited.indexOf("风向");
}

getLastStr=strDivcontent.substr(weatherSplitPosition,splitPoint-weatherSplitPosition);
getLastStr=strDivcontent.substr(weatherSplitPosition,splitPoint-4);

if (getLastStr=='<BR>晴' && v==1) {
	document.all("weatherImage").src="../../images/weather/sunshine.gif"
}
if (getLastStr=='<BR>多云' && v==1) {
	document.all("weatherImage").src="../../images/weather/cloud.gif"
}
if (getLastStr=='<BR>晴转多云' && v==1) {
	document.all("weatherImage").src="../../images/weather/cloud_sun.gif"
}
if (getLastStr=='<BR>多云转晴' && v==1) {
	document.all("weatherImage").src="../../images/weather/cloud_sun.gif"
}
if (getLastStr=='<BR>阴转小雨' && v==1) {
	document.all("weatherImage").src="../../images/weather/shade_cloud.gif"
}
document.write(getLastStr);
}
