function pop(url,width,height) {
   var w = 600;
   var h = 600;
   var x = Math.random();
   var x = Math.random();
   x *=23;
   x = Math.round(x);
   if (width) w = width;
   if (height) h = height;
   newwindow=window.open(url,'name'+x,'height='+h+',width='+w+',directories=no,top=230,left=230,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes');
   if (window.focus) {newwindow.focus()}
   return false;
}



function popup(_this, size, scroll, pos)
{
	if (typeof size == "undefined") size = {w: 415, h: 600}
	if (typeof scroll == "undefined") scroll = 'yes';
	if (typeof pos == "undefined") pos = {top: 100, left: 200}		

	url = _this.href;
	var winName = 'name'+Math.round(Math.random()*100);
	params = 'location=no,menubar=no,status=no,toolbar=no,scrollbars='+scroll+',resizable=no';
	win = window.open(url, winName, 'width='+size.w+',height='+size.h+',directories=no,top='+pos.top+',left='+pos.left+','+params);

	if (window.focus) win.focus();
	return false;
}

function ie6DOMRefresh()
{
	var ua = navigator.userAgent.toLowerCase();
	isIE6 = (ua.indexOf("msie 6")  != -1 && ua.indexOf("opera")  == -1 && ua.indexOf("webtv")  == -1);
	if (isIE6)
	{
		document.getElementById('content').style.border="1px solid #ee0000";
		document.getElementById('content').style.border="0px solid #ee0000";
		document.getElementById('footer').style.border="1px solid #ee0000";
		document.getElementById('footer').style.border="0px solid #ee0000";
	}
}

	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}
	
	function eraseCookie(name) {
		createCookie(name,"",-1);
	}


	function reclamationPopup(el) {
		eraseCookie('ASP.NET_SessionId');
		win = window.open(el.href,'','width=550,height=400,scrollbars=0,resizable=0');
		win.focus();
		return false;
	}

