document.write('<div id=header>');
document.write('<table width=95% border=0 cellpadding=0 cellspacing=0 bgcolor=><tr><td align=left><img vspace=6 hspace=6 src=Resource.aspx?res=kaseweb.gif align=absmiddle></td>');
document.write('<td align=center valign=middle class=hugewhitetext>Demo</td>');
document.write('<td align=right>');
document.write('<table border=0 cellspacing=0 cellpadding=1><tr><td class=whitetext>For technical support contact</td></tr>');
document.write('<tr><td class=whitetext>AG/CAD Limited</td></tr>');
document.write('<tr><td class=whitetext><a class=whitetext href=mailto:support@kaseweb.com>support@kaseweb.com</a></td></tr>');
document.write('<tr><td class=whitetext>Tel: +44 (0)1606 863344</td></tr></table>');
document.write('</td><td width=10></td></tr></table></div>');
document.write('<div id=clock><table width=95% cellpadding=0 cellspacing=0><tr><td class=clockitem id=clk></td>');
document.write('<td id=login class=clockitem></td>');
document.write('<td align=right id=commands class=clockitem></td></tr></table></div>');

document.write('<div id="helpsection" style="BORDER-RIGHT: #316ac5 1px; PADDING-RIGHT: 4px; BORDER-TOP: #316ac5 1px; DISPLAY: none; PADDING-LEFT: 4px; FONT-WEIGHT: bold; FONT-SIZE: 10pt; PADDING-BOTTOM: 4px; BORDER-LEFT: #316ac5 1px; COLOR: #316ac5; PADDING-TOP: 4px; BORDER-BOTTOM: #316ac5 4px solid; BACKGROUND-COLOR: #fdfdfd">');
document.write('<table>');
document.write('<tr><td><img src="/images/helplarge.png"></td>');
document.write('<td id="helpsectiontext"></td>');
document.write('<td><INPUT type="button" value="Close" onclick="javascript:closeHelp()"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

function resetIt() {

// Calculate Time

var timerID = null;
var timerRunning = false;

if(timerRunning)
	clearTimeout(timerID);
	timerRunning = false;

// getTime
var timeNow = new Date();
var hours = timeNow.getHours();
var minutes = timeNow.getMinutes();
var seconds = timeNow.getSeconds();
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue = ((timeValue <10)? "0":"") + timeValue
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " pm" : " am"
timerID = setTimeout("resetIt()",100);
timerRunning = true;


// getDate
var dateNow = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((dateNow.getDate()<10) ? "0" : "")+ dateNow.getDate();
function y2k(number){return (number < 1000) ? number + 1900 : number;}

// compileIt
today =  days[dateNow.getDay()] + " " + months[dateNow.getMonth()] + " " +
         date + " " + (y2k(dateNow.getYear()))+" " + timeValue;

	clk.innerHTML=today.toString();
}

resetIt();

var message0='Search results can be viewed in various formats to suit the results. Highly graphical thumbnails or list details for large volume results can be employed as required.';
var message1='This search found these design proposals shown here in thumbnail format. The highly graphical nature of KASEWEB allows the user to identify the required job as quickly as possible. In addition to the graphic, hovering over the thumbnail displays a brief description of the design proposal to help identify the most appropriate job.';
var message2='The search criteria is defined by the user from lists of your own unique classification, or from standard lists provided by the system. Specifying several search criteria enables users to hone in on exactly the type of product they are looking for, or recall a previous job without knowledge of specification number or reference.';
var message3='Here all the files connected with the design proposal are displayed. Click any one of the files to see the content. There is no need to download at this stage. KASEWEB allows the user to view BEFORE downloading. Plug-ins for VRML and PDF, CODECs for AVI files etc. are available from the web as required.';
var message4='The preview window shows the currently selected document of the design proposal. Right click to list the various options available such as zooming, resolution changes and printing.';
var message5='Navigation through KASEWEB and the search results is done here. Files may be downloaded if the user is authorized to do so.';
var message6='Information in this area relates to design data issued by the designer. Details of the design attributes are displayed as icons. For more detailed information of how the criteria are met, click on the \'more information\' link and see what the designer has to say about each particular feature.';
var message7='As this is a job awaiting customer approval, it is up to the user to review the data in the design proposal and notify the designer. Click here to accept or reject the design proposal and make comments for the designer. It\'s that simple!';
var message8='The approval status has been set already as this is a search based on approved jobs. The user responsible for approval of the job can be contacted from the link. Status will change in real time.';

function closeHelp()
{
	document.all['helpsection'].runtimeStyle.display='none';
}

function setHelp(index)
{
	document.all['helpsection'].runtimeStyle.display='block';
	switch (index)
	{
		case 0:
			document.all['helpsectiontext'].innerHTML=message0;
			break;
		case 1:
			document.all['helpsectiontext'].innerHTML=message1;
			break;
		case 2:
			document.all['helpsectiontext'].innerHTML=message2;
			break;
		case 3:
			document.all['helpsectiontext'].innerHTML=message3;
			break;
		case 4:
			document.all['helpsectiontext'].innerHTML=message4;
			break;
		case 5:
			document.all['helpsectiontext'].innerHTML=message5;
			break;
		case 6:
			document.all['helpsectiontext'].innerHTML=message6;
			break;
		case 7:
			document.all['helpsectiontext'].innerHTML=message7;
			break;
		case 8:
			document.all['helpsectiontext'].innerHTML=message8;
			break;
		default:
			break;
	}
	return false;
}
