<!--
	function validateForm(strRealName, strEmail)
		{
			windowProperties = "toolbar=no, menubar=no, scrollbars=no, statusbar=no, resizable=no, location=no, directories=no, dependent=yes, "
			windowProperties = windowProperties + "statusbar=no, width=200, height=80, left=412, top=344"
			
			if (strRealName=="")
			{
				newWindow = window.open ("","", windowProperties)
				dialogOption = 1
				dialogBoxHTMLValidate()
				return false
			}
			if (strRealName=="enter your name")
			{
				newWindow = window.open ("","", windowProperties)
				dialogOption = 1
				dialogBoxHTMLValidate()
				return false
			}
	
			if (strEmail=="")
			{
				newWindow = window.open ("","", windowProperties)
				dialogOption = 2
				dialogBoxHTMLValidate()
				return false
			}
			if (strEmail=="enter your email")
			{
				newWindow = window.open ("","", windowProperties)
				dialogOption = 2
				dialogBoxHTMLValidate()
				return false
			}			
		}

	function dialogBoxHTMLValidate()
		{
			newWindow.document.write("<html><head><title>Missing Info:</title><style type='text/css'>")
			newWindow.document.write("body { background: white; }</style></head><body>")
			newWindow.document.write("<p style='color=rgb(100,100,100); font-size=11px'><font face='Verdana, Geneva, Arial, Helvetica, sans-serif'>")
			switch (dialogOption)
			{
				case 1: newWindow.document.write("<img src='images/pointer.gif'>&nbsp;Please tell us your name...")
					break;
				case 2: newWindow.document.write("<img src='images/pointer.gif'>&nbsp;Please tell us your email address...")
					break;
			}
			newWindow.document.write("</p><p align=center><input type='image' src='images/OK.jpg' onClick='window.close()'></p>")
			newWindow.document.write("</body></html>")
		}

	function popUp(URL)
		{
			day = new Date();
			id = day.getTime();
			eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480,left=160,top=160');");
		}

	function WindowCloser()
		{
			opener.location.reload(true);
			this.close(); 
		}
		
	function WindowCloser1()
		{
			parent.window.close(); 
		}
		
	function DeleteRecord(strTable,intID)
		{
			if (confirm("Please confirm record deletion. Note: This action cannot be undone.")==true)
				{ 
					var URL = "record_delete.asp?table=" + strTable + "&ID=" + intID;
					window.location.href = URL; 
				}
			
			else
				{
					return false;
				}
		}
		
	function PrintRecord(strTable,intID,strDesc)
		{
			var URL = "record_print.asp?table=" + strTable + "&ID=" + intID + "&Desc=" + strDesc;
			window.open(URL);
		}
		
	function PrintInvoice(intID)
		{
			var URL = "invoice_print.asp?ID=" + intID
			window.open(URL);
		}
		
	function PrintQuote(intID)
		{
			var URL = "quote_print.asp?ID=" + intID
			window.open(URL);
		}

	function MainMenu()
		{
			document.write ("<div id='object1' style='text-align=right; position=absolute; visibility=show; left=660px; top=10px; z-index=2;'>");
			
			document.write ("<form name='search' action='search.asp?'>");
			document.write ("<font color=rgb(255,255,198)>Type in search item & press 'Enter'</font>&nbsp;")
			document.write ("<input type='text' name='search'");
			document.write ("style='width=120; background=rgb(255,255,198); font-family=Verdana; font-size=10px;'>");
			document.write ("</form>");
			
			document.write ("<form name='menu'>");
			document.write ("<select name='site' size='1' onChange='javascript: window.location.href = document.menu.site.options[document.menu.site.selectedIndex].value;'");
			document.write ("style='width=120; background=rgb(255,255,198); font-family=Verdana; font-size=10px;'>");
			document.write ("<option value=''>Main Menu:");
			document.write ("<option value='clients.asp?orderby=ID'>Clients</option>");
			document.write ("<option value='diary.asp?orderby=ID'>Diary</option>");
			document.write ("<option value='jobs.asp?orderby=ID'>Jobs (All)</option>");
			document.write ("<option value='reports.asp'>Reports</option>");
			document.write ("<option value='table.asp?table=users&orderby=ID'>Users</option>");
			document.write ("</select>");
			document.write ("</form>");
			document.write ("</div>");
		}
		
	function FullScreen()
		{
			window.moveTo(0,0);
			//window.resizeTo(screen.width,screen.height);
			window.resizeTo(1024,740);
		}

//-->
