function goBack() {
	history.go(-1);
}
function timeWatch() {
	var objTimer1=setTimeout('timeAlert1()',10500000);
	var objTimer2=setTimeout('timeAlert2()',10740000);
	var objTimer3=setTimeout('timeAlert3()',10800000);
}
function timeAlert1() {
	alert('Your time will be up in 5 minutes. To reset the timer at any time before that 5 minutes is up, please hit refresh or visit a new page.');
}
function timeAlert2() {
	alert('Your time will be up in 1 minute. To reset the timer at any time before that minute is up, please hit refresh or visit a new page.');
}
function timeAlert3() {
	alert('Your time is up. You will need to log in again to resume using the SmartEye NET Administration Center.');
	window.location="logout.asp";
}
function showTransaction(file) {
	var winShowTransaction=window.open("about:blank","ViewTransactionVideo","top=25,left=25,scrollbars=no,resizable=yes,toolbars=no,height=480,width=540");
	winShowTransaction.document.open("text/html","replace");
	winShowTransaction.document.writeln('<html>');
	winShowTransaction.document.writeln('<head>');
	winShowTransaction.document.writeln('<link rel="stylesheet" type="text/css" href="theme/styles.css">');
	winShowTransaction.document.writeln('<sc'+'ript language="javascript">');
	winShowTransaction.document.writeln('<'+'!-'+'-');
	winShowTransaction.document.writeln('function closeWindow() {this.window.close();}');
	winShowTransaction.document.writeln('-'+'->');
	winShowTransaction.document.writeln('</scr'+'ipt>');
	winShowTransaction.document.writeln('<title>View Transaction</title>');
	winShowTransaction.document.writeln('</head>');
	winShowTransaction.document.writeln('<body background="theme/bg2.gif" style="margin: 10px">');
	winShowTransaction.document.writeln('<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows Media Player..." TYPE="application/x-oleobject" width="100%" height="90%">');
	winShowTransaction.document.writeln('  <param name="filename" value="'+file+'">');
	winShowTransaction.document.writeln('  <PARAM NAME="animationAtStart" VALUE="true">');
	winShowTransaction.document.writeln('  <PARAM NAME="transparentAtStart" VALUE="true">');
	winShowTransaction.document.writeln('  <PARAM NAME="autoStart" VALUE="true">');
	winShowTransaction.document.writeln('  <PARAM NAME="autoSize" VALUE="false">');
	winShowTransaction.document.writeln('  <PARAM NAME="showControls" VALUE="true">');
	winShowTransaction.document.writeln('  <PARAM NAME="showStatusBar" VALUE="true">');
	winShowTransaction.document.writeln('  <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'+file+'" align="middle" width="100%" height="90%" showstatusbar="1"></embed>');
	winShowTransaction.document.writeln('</object>');
	winShowTransaction.document.writeln('<p align="center"><a href="javascript:closeWindow()">Close this window</a></p>');
	winShowTransaction.document.writeln('</body>');
	winShowTransaction.document.writeln('</html>');
	winShowTransaction.document.close();
}
function popupText(m) {
	var strText='';
	switch (m) {
		default:
		case 0:strText="SmartEye ensures that customers receive the proper product information for each of the F&I products, and ensures all products are properly disclosed to alleviate legal complexities.";break;
		case 1:strText="SmartEye ensures that all dealership finance managers are performing legitimate, complete product presentations to all customers.";break;
		case 2:strText="SmartEye tracks each customer's name, stock number, and purchase information in a searchable catalog. This gives the dealer the ability to search and view particular customer transactions to show personnel how to improve F&I sales and penetration and discover ways to enhance the business/F&I managers' overall presentation.";break;
	}
	var winShowTransaction=window.open("about:blank","PopupText","top=25,left=25,scrollbars=no,resizable=yes,toolbars=no,height=200,width=300");
	winShowTransaction.document.open("text/html","replace");
	winShowTransaction.document.writeln('<html>');
	winShowTransaction.document.writeln('<head>');
	winShowTransaction.document.writeln('<link rel="stylesheet" type="text/css" href="theme/styles.css">');
	winShowTransaction.document.writeln('<sc'+'ript language="javascript">');
	winShowTransaction.document.writeln('<'+'!-'+'-');
	winShowTransaction.document.writeln('function closeWindow() {this.window.close();}');
	winShowTransaction.document.writeln('-'+'->');
	winShowTransaction.document.writeln('</scr'+'ipt>');
	winShowTransaction.document.writeln('<title>View Transaction</title>');
	winShowTransaction.document.writeln('</head>');
	winShowTransaction.document.writeln('<body background="theme/bg2.gif" style="margin: 10px">');
	winShowTransaction.document.writeln('<table border=0 cellpadding=2 cellspacing=0 width="100%" height="100%" bgcolor="#2679A2">');
	winShowTransaction.document.writeln('  <tr>');
	winShowTransaction.document.writeln('    <td>');
	winShowTransaction.document.writeln('      <table border=0 cellpadding=10 cellspacing=0 width="100%" height="100%" bgcolor="#FFFFFF">');
	winShowTransaction.document.writeln('        <tr>');
	winShowTransaction.document.writeln('          <td valign="top">');
	winShowTransaction.document.writeln('            <p>'+strText+'</p>');
	winShowTransaction.document.writeln('            <p align="center"><a href="javascript:closeWindow()">Close this window</a></p>');
	winShowTransaction.document.writeln('          </td>');
	winShowTransaction.document.writeln('        </tr>');
	winShowTransaction.document.writeln('      </table>');
	winShowTransaction.document.writeln('    </td>');
	winShowTransaction.document.writeln('  </tr>');
	winShowTransaction.document.writeln('</table>');
	winShowTransaction.document.writeln('</body>');
	winShowTransaction.document.writeln('</html>');
	winShowTransaction.document.close();
}
function newWindow(URL,H,W) {
	var winShowTransaction=window.open(URL,"ViewVideoStuff","top=25,left=25,scrollbars=yes,resizable=yes,toolbars=no,height="+H+",width="+W);
}
function printit(){
	if (window.print) {window.print();}
	else {
		var WebBrowser='<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd',WebBrowser);
		WebBrowser1.ExecWB(6, 2);
	}
}
function ReadOnlyWarning(strExtras,strMod,id) {
   var blnGoOn=confirm('Read-Only users are not allowed to archive transactions. Do you want to continue? If yes, click OK. If no, click Cancel.');
   if (!blnGoOn) return;
   window.location='adminusers.asp?'+strExtras+'action=R'+strMod+'&id='+id;
}