function popupWindow(url,name,width,height) {
	newwindow = window.open(url,name, "width="+width+",height="+height+",toolbar=0,directories=0,menubar=0,status=0,resizable=1,location=0,scrollbars=1,copyhistory=0,left=162,top=200");
	newwindow.window.focus();
}

function SetProps(w,h) {

l = ((screen.width - w) /2);
t = ((screen.height - h) /2);

winprops = 'toolbar=0,location=0,status=0,scrollbars=1,width=' + w + ',height=' + h + ',left=' + l + ',top=' + t;
return winprops;
}

function OpenNew(url,w,h) {

SetProps(w,h);

Details = window.open(url,'popup2',winprops);
Details.window.focus();
}
	
function GetWebSite(siteurl,listid) {

var name = "show_ro";
var cookieFound = false;
var start = 0;
var end = 0;
var cookieString = document.cookie;
var i = 0;
var url = 'http://www.reviews-online.co.uk/images/add_review_popup.asp?ListID=' + listid + '&site=UK%20Credit%20Cards%20Directory';
var attributes = 'toolbar=0,location=0,status=1,scrollbars=1,width=565,height=420,top=5,left=5';

	while (i <= cookieString.length) {
		start = i
		end = start + name.length;

		if (cookieString.substring(start,end) == name) {
			cookieFound = true;
			break;
		}
		i++
	}
	
	if (cookieFound) {
		SiteLaunch = window.open(siteurl);
		SiteLaunch.window.focus();
	} else {
		if (typeof(RO) != "object"){
			SiteLaunch = window.open(siteurl);
			RO = window.open(url,'RO',attributes);
			RO.blur();
		} else {
			if (!RO.closed){ 
				RO.location.href = url;
				RO.focus();
				SiteLaunch = window.open(siteurl);				
			} else {
				SiteLaunch = window.open(siteurl);
				RO = window.open(url,'RO',attributes);
				RO.blur();
			}
		}
	}
}	