
function generic()
{
}

//setup onload function
if(typeof window.addEventListener != 'undefined')
{
		//.. gecko, safari, konqueror and standard
		window.addEventListener('load', generic, false);
}
else if(typeof document.addEventListener != 'undefined')
{
		//.. opera 7
		document.addEventListener('load', generic, false);
}
else if(typeof window.attachEvent != 'undefined')
{
		//.. win/ie
		window.attachEvent('onload', generic);
}
else
{
		//.. mac/ie5 and anything else that gets this far
		
		//if there's an existing onload function
		if(typeof window.onload == 'function')
		{
			//store it
			var existing = onload;
			
			//add new onload handler
			window.onload = function()
			{
					//call existing onload function
					existing();
					
					//call generic onload function
					generic();
			};
		}
		else
		{
				//setup onload function
				window.onload = generic;
		}
}


var xmlHttp;
var strResponse;
var strResultFunc;

function updateWidgetView(url)
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
	alert ("Browser does not support HTTP Request");
	return;
}
	xmlHttp.onreadystatechange = stateChangedResources;
	xmlHttp.open("POST",url,true);
	xmlHttp.send(null);
}


function stateChangedResources()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
	document.getElementById('highresPhotos').innerHTML=xmlHttp.responseText;
}
}


function GetXmlHttpObject()
{
var objXMLHttp=null;
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return objXMLHttp;
}



function handleErrFullPage(strIn) {

        var errorWin;

        // Create new window and display error
        try {
                errorWin = window.open('', 'errorWin');
                errorWin.document.body.innerHTML = strIn;
        }
        // If pop-up gets blocked, inform user
        catch(e) {
                alert('An error occurred, but the error message cannot be' +
                        ' displayed because of your browser\'s pop-up blocker.\n' +
                        'Please allow pop-ups from this Web site.');
        }
}