/***********************************************************************************/
/***********************************************************************************/
/*
$(document).ready(function () {

	$.getJSON("/includes/weather/forecastfeed.php", function(j)	{					
		
		
		var weatherFeed = '';		
		
		if( j.length > 0 ) weatherFeed += '<table border="0" cellpadding="0" cellspacing="0">';
		for (var i = 0; i < j.length; i++) {
			weatherFeed += '<tr>';
			weatherFeed += '<td class="city"><a href="weather/SouthAfrica/' + j[i].provinceName.replace(' ', '') + '/' + j[i].stationName.replace(' ', '') + '/' + j[i].id_region + '/feed">' + j[i].stationName + '</a></td>';
			weatherFeed += '<td class="temp">' + j[i].minTemp + '/' + j[i].maxTemp + ' ' + j[i].tempUnit + '</td>';
			weatherFeed += '<td class="icon"><img src="images/weather/icons/' + j[i].icon + '.gif" alt="' + j[i].stationName + '" border="0" width="20" /></td>';
			weatherFeed += '</tr>';
		}
		if( j.length > 0 ) weatherFeed += '</table>';
		
		if( weatherFeed != '' ) $("#weatherfeed").html( weatherFeed );


	})
})

*/


function reloadCaptcha() {
	// loads new freeCap image
	if(document.getElementById) {
		document.getElementById("captchaimage").src = "components/phpcaptcha/CaptchaSecurityImages.php?t="+Math.round( (Math.random()*100000) * (Math.random()*2454656) );
	}
}
/***********************************************************************************/
/***********************************************************************************/
function getElement(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		return document.getElementById(id);
	}
	else {
		if (document.layers) { // Netscape 4
			return document.id;
		}
		else { // IE 4
			return document.all.id;
		}
	}
	return null
}

function getElementsByName(name) {
	//safe function to hide an element with a specified id
	if (document.getElementsByName) { // DOM3 = IE5, NS6
		return document.getElementsByName(name);
	}
	else {
		if (document.layers) { // Netscape 4
			return document.name;
		}
		else { // IE 4
			return document.all.name;
		}
	}
	return null
}

/***********************************************************************************/
/***********************************************************************************/
function setVar( id, varvalue ) {
	
	el = getElement( id );
	if( el ) el.value = varvalue;

}

/***********************************************************************************/
/***********************************************************************************/
function getVar( id ) {
	el = getElement( id )
	if( el ) return el.value;
}

/***********************************************************************************/
/***********************************************************************************/

function formSubmit( form, action ) {
	if( form ) {		
		form.action = action;
		form.submit();
	}
}

/***********************************************************************************/
/***********************************************************************************/
function formSubmitAction( form, action ) {
	if( form ) {		
		form.action = action;
		form.submit();
	}
}


/***********************************************************************************/
/***********************************************************************************/
function shellinfosight() {
}