var win;

function getReviewImage(rid,io){
	var strURL="getReviewImage.aspx";
	strURL+="?RID=" + rid + "&IO=" + io;
	win=window.open(strURL,"ReviewImage","width=320px,height=240px");
	win.focus();
}

function getPreviewImage(pid,io){
	var strURL="getPreviewImage.aspx";
	strURL+="?PID=" + pid + "&IO=" + io;
	win=window.open(strURL,"PreviewImage","width=320px,height=240px");
	win.focus();
}

function getHardwareImage(hid,io){
	var strURL="getReviewImage.aspx";
	strURL+="?HID=" + hid + "&IO=" + io;
	win=window.open(strURL,"HardwareReviewImage","width=320px,height=240px");
	win.focus();
}

function resizeWindowSmart() {
	var object = document.getElementById("limits");
	var windowWidth = object.offsetWidth;
	var windowHeight =  object.offsetHeight+35; // was 35

	top.window.resizeTo(windowWidth, windowHeight);
}

function getCompetitionImage(cid,io){
	var strURL="getCompetitionImage.aspx";
	strURL+="?CID=" + cid + "&IO=" + io;
	win=window.open(strURL,"CompetitionImage","width=320px,height=240px");
	win.focus();
}