function hit(hitlink) {
if(document.images) {(new Image()).src=''+hitlink+'';}return true;
}

function changePreview(param) {
	if (document.getElementById("previewpic")) {
		document.getElementById("previewpic").src = param;
	}
}

function openchat(windowurl) {
windowname = 'login';
height = 420;
width = 564;
if (navigator.userAgent.indexOf('MSIE') > -1) {
nleft = window.screenLeft + 50;
ntop = window.screenTop + 50;
}
else {
nleft = window.screenX + 50;
ntop = window.screenY + 50;
}
var options = 'top=' + ntop + ',left=' + nleft + ',height=' + height + ',width=' + width + ',scrollbars=no,status=no,location=no,menubar=no,resizable=no,toolbar=no';
window.open(windowurl, windowname, options);
}
