function hilite(name,over) {
//	var serverPath='http://douglas-groz/www2.casitascopes/';
	var serverPath='http://www2.casitascopes.com/';
	if(window.document.images)
		if (over)
			window.document.images[name].src =  serverPath + name + '_sel.gif';
		else
			window.document.images[name].src =  serverPath + name + '.gif';
}

function popup(vwName,vwTitle,vwX,vwY) {
	var WindowName='KaleidoViewer';
//	var serverPath='http://douglas-groz/www2.casitascopes/';
	var serverPath='http://www2.casitascopes.com/';
	var ViewerWindow=window.open('', WindowName, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=460,left = 150,top = 50');
	ViewerWindow.document.write('<html><head><title>' + vwTitle + ' Video</title>');
	ViewerWindow.document.write('<meta name="rnpagelayout" content="embedded">');
	ViewerWindow.document.write('<meta name="rnserverpath" content="' + serverPath + '">');
	ViewerWindow.document.write('<meta name="rnmediafile" content="scopes/videos/' + vwName + '_lr.rm">');
	ViewerWindow.document.write('<meta name="rnmetafile" content="scopes/videos/' + vwName + '_lr.rpm">');
	ViewerWindow.document.write('<link rel="stylesheet" type="text/css" href="' + serverPath + 'popup.css">');
	ViewerWindow.document.write('</head>');
	ViewerWindow.document.write('<body><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="340">');
	ViewerWindow.document.write('<tr><td height="340" valign="middle" align="center" background="' + serverPath + 'images/window.gif">');
	ViewerWindow.document.write('<object ID="' + vwName + '" CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" HEIGHT="' + vwY + '" WIDTH="' + vwX + '">');
	ViewerWindow.document.write('<param name="controls" value="ImageWindow">');
	ViewerWindow.document.write('<param name="console" value="Clip1">');
	ViewerWindow.document.write('<param name="autostart" value="true">');
	ViewerWindow.document.write('<param name="src" value="' + serverPath + 'scopes/videos/' + vwName + '_lr.rpm">');
	ViewerWindow.document.write('<embed SRC="' + serverPath + 'scopes/videos/' + vwName + '_lr.rpm" type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ImageWindow" HEIGHT="' + vwY + '" WIDTH="' + vwX + '" AUTOSTART="true">');
	ViewerWindow.document.write('</object></td></tr>');
	ViewerWindow.document.write('<tr><td height="60" valign="middle" align="center"><p align="center">');
	ViewerWindow.document.write('<object ID="video1" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT="40" WIDTH="275">');
	ViewerWindow.document.write('<param name="controls" value="ControlPanel">');
	ViewerWindow.document.write('<param name="console" value="Clip1">');
	ViewerWindow.document.write('<embed type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ControlPanel" HEIGHT="40" WIDTH="275" AUTOSTART="true">');
	ViewerWindow.document.write('</object></td></tr></table>');
	ViewerWindow.document.write('<p><a HREF="http://www.real.com/products/player" target="_blank"><img SRC="http://www.real.com/pics/rnlogos/realplayerg2.jpg" BORDER=0></a></center>');
	ViewerWindow.document.write('</center></div></body></html>');
	ViewerWindow.document.close();
	ViewerWindow.focus();
}

function handleGuestSubmit() {
	var guestname=document.addentry.realname.value;
	var guestcomments=document.addentry.comments.value;
	if (guestname=='') {
		alert("Please provide your name");
		document.addentry.realname.focus();
		return false;
	}
	if (guestcomments=='') {
		alert("Please provide your comments");
		document.addentry.comments.focus();
		return false;
	}
	return true;
}
