function pop(url){
	var w = 750;
	var h = 475;
	if(arguments[1] != null)
		w = arguments[1];
	if(arguments[2] != null)
		h = arguments[2];
	var win = window.open(url,'pop','width='+w+',height='+h+',scrollbars,resizable');
	win.focus();
	return false;
}
function maxWidthImages(){
	var images = document.images;
	for(var i = 0; i < images.length;i++){
		if(images[i].className == 'client-image' && images[i].width > 300)
			images[i].width=300;
	}
}
function addEvent(elm, evType, fn, useCapture)
	//addEvent and removeEvent
	//cross-browser event handling for IE5+,  NS6 and Mozilla
	//By Scott Andrew
	{
	if (elm.addEventListener)
	{
	 elm.addEventListener(evType, fn, useCapture);
	 return true;
	} 
	else if (elm.attachEvent)
	{
	 var r = elm.attachEvent("on"+evType, fn);
	 return r;
	} 
	else 
	{
	 //alert("Handler could not be removed");
		return null;
	}
}
if(document.getElementById)
{
	addEvent(window, "load", maxWidthImages);
}
