// JavaScript Document
function RefreshImage(valImageId) {
	var objImage = document.images[valImageId];
	if (objImage == undefined) {
		return;
	}
	var now = new Date();
	objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}


// for html pages to display message
function showdiv()
{
	var URL = unescape(window.document.location);

	if (URL.indexOf("?") > -1) 
	{
		//whether the location contains a "?" or not
		
		var list1 = URL.split("?");
		//split at "?";
		var list2 = list1[1].split ("=");
		//split at "=";
		//var list2[0] = list2[1];
		
		if(list2[1]==1)
		{
			//alert(list2[1]);
			var er=list2[1];
		//	document.getElementById('error_id').style.display="block";
			var a= document.getElementById('errorid');
			a.style.display = 'block';
	
		}
		//assignment
	}	
}