function setPageWidth() {
	x = (document.body.offsetWidth < 1024) ? "999" : "100%";
	return x;
}

function uniqueId(input) {
	re = /[A-Za-z0-9]/g;
	myArray = input.match(re);
	output = "";
	for (i=0;i<myArray.length;i++) {
		output = output + myArray[i];
	}
	return output;
}

function tops(url,w,h,scroll) {
	isScroll = (scroll) ? 'yes' : 'no';
	s = 'resizable=no,status=no,scrollbars=' + isScroll + ',width=' + w + ',height=' + h;
	WindowName = uniqueId(url);
	secWnd = window.open(url, WindowName, s);
	secWnd.focus();
}
