

<!--

function ReadCookie (key, skips) 
	{
		if (skips == null) {skips = 0}
		var cookie_string = '' + document . cookie;
		var cookie_array = cookie_string . split ('; ');
		for (var i = 0; i < cookie_array . length; ++ i) 
			{
				var single_cookie = cookie_array [i] . split ('=');
				if (single_cookie . length != 2) {continue}
				var name  = unescape (single_cookie [0]);
				var value = unescape (single_cookie [1]);
				if (key == name && skips -- == 0) {return value}
			}
		return 'None';
	}

function SetCookie (name, value) 
	{
		var argv = SetCookie.arguments;
		var argc = SetCookie.arguments.length;
		var expires = (argc > 2) ? argv[2] : null;
		var path = (argc > 3) ? argv[3] : null;
		var domain = (argc > 4) ? argv[4] : null;
		var secure = (argc > 5) ? argv[5] : false;
		document.cookie = name + '=' + escape (value) +
		((expires == null) ? '' : ('; expires=' + expires.toGMTString())) +
		((path == null) ? '' : ('; path=' + path)) +
		((domain == null) ? '' : ('; domain=.oneclickhr.com')) +
		((secure == true) ? '; secure' : '');
	}
	
if (typeof(section) == 'undefined') section=""
var localHost = ''
var localCookie = '.oneclickhr.com'
var styleSheet = ReadCookie('stylesheet')
var partnerID = ReadCookie('partnerID')
var partnerType = ReadCookie('partnertype')
if (partnerType == "None") {partnerType = ReadCookie('PartnerType')}
var sessionStatus = ReadCookie('sessionStatus')

function updateStatus(title) 
{	if (window.name == 'mainFrame') 
		{	
		parent.defaultStatus = title  
		parent.document.title = title
		}
}

if ( document.location.protocol == 'file:' )  
		{	var localCookie = null;
			if (document.location.pathname.indexOf('Clai')!= -1) 	localHost = 'C:\\OneClickHR\\Virtual\\www.oneclickhr.com'
				else if (document.location.pathname.indexOf('Ashbee')!= -1)	localHost = 'file:///Ashbee/virtual/www.oneclickhr.com'
				else localHost = 'K:\\OneClickHR\\Virtual\\www.oneclickhr.com'	
		}

if ( document.location.protocol == 'https:') 	var localHost = 'https://www.oneclickhr.com';
if ( document.location.protocol == 'http:') 
	{ if (document.location.hostname.indexOf('lucy')!=-1)	
		{	var localHost = 'http://lucy'; var localCookie = null	} 
		else if (document.location.hostname.indexOf('10.0.0.226')!=-1)	
		{	var localHost = 'http://10.0.0.226'; var localCookie = null	} 
		else
		{	var localHost = 'http://www.oneclickhr.com';	} 
	}

document.writeln('<link rel="shortcut icon" href=http://www.oneclickhr.com/favicon.ico>')
if (styleSheet == 'None')	document.writeln ('<link rel=stylesheet href=' + localHost + '/stylesheets/oneclick.css type="text/css">')	
if (styleSheet == 'None')	document.writeln ('<link rel=stylesheet href=' + localHost + '/stylesheets/oneclick.css type="text/css">')	
	else	document.writeln('<link rel=stylesheet href='+localHost+'/'+styleSheet+'/'+styleSheet+'.css type="text/css">')
//	alert('<link rel=stylesheet href=' + localHost + '/stylesheets/' + styleSheet + '.css type="text/css">')	

function MM_order(filename)
   {	msgWindow = window.open(filename,'orderWindow','location=yes,toolbar=yes,width=590,height=500,directories=yes,status=yes,scrollbars=yes,resizable=yes,menubar=yes');}

function callSupport()	{ MM_callSupport()	}
function callSales()	{ MM_callSupport()	}

function MM_callSupport()
   {	msgWindow = window.open( localHost + '/callback/index.asp','callWindow','width=350,height=250,scrollbars=yes'); }

function MM_callSales()	{	MM_callSupport()  }

function MM_openGeneral(theURL,winName,features) 
   {	window.open(theURL,winName,features+'buttonbar=yes,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');	}

function MM_openBasic(theURL,winName,features) 
   {	window.open(theURL,winName,features);	}

//cookies


	
	


//sets footer variables

var adoptions = ''

sp = '&nbsp;&nbsp;&nbsp;&nbsp;';

footerhead = '<hr size=1 width=100% noshade>';

recommend = '<a onClick=MM_openBasic("","Mailer","width=560,height=350") href=' + localHost + '/interact/recommendit.htm target=Mailer title="Recommend this page to a friend" class="footer">Recommend</a>';

feedback = '<a onClick=MM_openBasic("","Feedback","width=560,height=350") href='+ localHost + '/interact/feedback.htm target=Feedback title="Click here to let us know what you think of this site" class="footer">Feedback</a>';

//if ( document.location.protocol == 'file:' )  adoptions = '<a href="' + localHost + '/stylesheets/index.htm" title="Click here for more options" class="footer" target="_top">Options</a>';

security = '<a onClick=MM_openGeneral("","Security","width=590,height=500") href=' + localHost + '/information/security.htm target=Security title="Opens our Security policy in a new window" class="footer">Security</a>';

terms =  '<a onClick=MM_openGeneral("","Terms","width=590,height=500") href=' + localHost + '/information/legal.htm target=Terms title="Opens our Terms & Conditions in a new window" class="footer">Terms&nbsp;of&nbsp;Use</a>';

bookmark = '<a href="javascript:;" onClick=window.external.AddFavorite(location.href,document.title) title="Click here to bookmark this page" class="footer">Bookmark</a>';

copyright = '<span class=footerg>provided for uk residents only' + sp + '&copy; 2000-2003 OneClickHR plc';

prnt = '<a href="javascript:;" onClick="window.print()" title="Click here to print this frame" class="footer">Print</a>';
   
basket = '<a href="javascript:; checkBasket()" title="Click here to view your shopping basket" class="footer">Shopping Basket</a>';
 
advertisers = '<a href=http://www.oneclickhr.com/partner/advertising.htm title=Click here to find out about advertising on OneClickHR.com class=footer>Advertisers</a>';

logo = '&copy;2000-2003&nbsp;OneClickHR&nbsp;plc.';

wblogo = '' //'<br><img src=' + localHost + '/r/spacers/spacer.gif width=1 height=8><br><a onClick=MM_openGeneral("","Terms","width=590,height=500") href=' + localHost + '/affiliates/whitebrand/terms.htm target=Terms><img src=' + localHost+'/affiliates/whitebrand/'+partnerID+'footer.gif name=footerimg border=0 align=center></a>'

footerend = '<hr size=1 width=100% noshade>';

function writeFooter()
	{	if (partnerType != 'nobrand')  
		{
		if (sessionStatus != 'None') keepAlive()
		document.writeln('</td></tr>')
		document.writeln ('<tr><td valign=top align=center class=footerg><img src='+localHost+'/r/spacers/spacer.gif width=400 height=1 align=center><br>')
		normalFooter()
		document.writeln('</td></tr></table>')		
		}	
	}

function normalFooter()
	{	
	if (partnerType != 'nobrand')  
		{	if (partnerType != 'whitebrand') 
			{document.write('<center class=footerg>'+ footerhead + logo + sp + advertisers + sp + bookmark + sp + prnt + sp + recommend + sp + feedback + sp + adoptions + footerend+'</center>')	}	
				else 
				{		
					if (ReadCookie("stylesheet") == "robertmuckle" ) { robertmuckle = '<table width="570" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td style="margin-left:0px"><img src="/robertmuckle/footer.gif" hspace="0" vspace="0"></td></tr>'
					robertmuckle += '<tr><td width="594" id="footer"><p align="center"><span class="bodysmall"> <a href="http://www.robertmuckle.co.uk/viewpage.php?id=11&s=16" target="_top">Disclaimer</a>'
					robertmuckle += 'I <a href="http://www.robertmuckle.co.uk/viewpage.php?id=6&s=15"target="_top">Privacy Policy</a> </span></p>'
					robertmuckle += '<div align="center"><span class="bodysmall">Robert Muckle Solicitors, Norham House, 12 New Bridge Street West, Newcastle upon Tyne, NE1 8AS.<br>'
					robertmuckle += 'Tel: +44 (0)191 232 4402, Fax: +44 (0)191 261 6954/221 0269.<br>'
					robertmuckle += 'email: <a href="mailto:%20enquiries@robertmuckle.co.uk">enquiries@robertmuckle.co.uk</a></span></div></td></tr></table>'
					document.write(robertmuckle)
					document.write( basket )
					}
				document.write(  '')	}	
	//		if ((partnerType == 'whitebrand') && (ReadCookie("stylesheet")!="robertmuckle") && (ReadCookie("stylesheet")!="centrefile"))  {writeOrderForm(false)	}
			if (partnerType == 'whitebrand')  { writeOrderForm(false)	}
				else  {  writeOrderForm(true)	}
		}
	}

function writeHrinfoFooter()	{	writeFooter() 	}

function HrinfoFooter()
	{
	}

function keepAlive()	{ } // document.writeln('<IMG SRC="http://www.oneclickhr.com/admin/pages/users/maintainsession.asp" WIDTH="1" HEIGHT="1">')	}

function menuCall()
	{	if (partnerType != 'whitebrand')
		{
			document.writeln('<table width=140 border=0 cellspacing=0 cellpadding=0 align=right><tr><td align=right>');
			document.writeln('<a href="javascript:;" onClick="callSales()"><img src=' + localHost + '/r/btons/newcallback.gif border=0></a><br>');
			document.writeln('<img src=' + localHost + '/r/spacers/spacer.gif width=140 height=12><br>');
			writeAdverts()
			document.writeln('</td></tr></table>')
		}
	}

function salesButton()
	{	document.write('<a href="javascript:MM_callSales()"><img src=' + localHost + '/r/btons/callme1.gif border=0 align=right width=60 height=66 title="Click here if you would like one of our staff to call you and discuss this service - free of charge"></a>') }

function supportButton()
	{	document.write('<a href="javascript:MM_callSupport()"><img src=' + localHost + '/r/btons/callme1.gif border=0 align=right  width=60 height=66 title="Click here if you would like one of our support staff to call you and discuss this service - free of charge"></a>')	}

function write1colhead()
	{	if (ReadCookie("stylesheet") != "robertmuckle" )
		{ document.writeln ('<table width=100% border=0 cellspacing=0 cellpadding=0 class=tableMain><tr><td>')
		if (partnerType == 'cobrand') partnerCookie()
		document.writeln ('</td>')
		if (partnerType == 'None') writeAdverts()
		document.writeln ('<tr><td valign=top width=100%>')
		}
	}

function partnerCookie()
	{ if (partnerType == 'cobrand')	
		{	document.writeln('<table border=0 cellspacing=0 cellpadding=0 align=center><tr><td align=center>');
			document.writeln('<img src=' + localHost + '/affiliates/cobrand/' + partnerID + '.gif border=0>');
			document.writeln('</td></tr></table>');
		}	
	}

function writeformhead()
	{	document.writeln ('<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td>')
		if ((partnerType == 'cobrand') && (partnerID != '1009'))
			{	partnerCookie()
				document.writeln ('</td></tr><tr><td valign=top width=100%>')
			}
	}

function writeOrderForm(isTrue)
	{	document.writeln('<table width="1" border="0" cellspacing="0" cellpadding="0" align="right"><form name="orderForm" action="" method="post">')
		document.writeln('<input type="hidden" name="referer" value="'+ self.location + '">')
		document.writeln('<input type="hidden" name="SystemName" value="OneClickHR">')
		document.writeln('<input type="hidden" name="Initial" value="http://www.oneclickhr.com/admin/pages/orders/processorder/addtobasket.asp?quantity=1">')
		document.writeln('<input type="hidden" name="currencysymbol" value="£">')
		document.writeln('<input type="hidden" name="loginrequired" value="'+ isTrue + '">')
		document.writeln('<tr><td><img src="/r/spacers/spacer.gif" width="10" height="1" border=0></td></tr></form></table>')
	}

function checkBasket()
	{	document.forms.orderForm.action = 'http://www.oneclickhr.com/admin/pages/orders/processorder/addtobasket.asp'
		document.forms.orderForm.submit();
	}	
function addtoBasket(product)
	{	document.forms.orderForm.action = document.forms.orderForm.Initial.value + '&ID=OCH'+ product;
		SetCookie ('sessionStatus','on',null,'/',localCookie)
		document.forms.orderForm.submit();
	}
function addMultitoBasket(product,quantity)
	{	document.forms.orderForm.action = 'http://www.oneclickhr.com/admin/pages/orders/processorder/addtobasket.asp?quantity=' + quantity + '&ID=OCH'+ product;
		SetCookie ('sessionStatus','on',null,'/',localCookie)
		document.forms.orderForm.submit();
	}

function Download(filename)
	{
	DownloadWindow=window.open('','DownloadWindow','width=320,height=100');
	DownloadWindow.document.writeln('<html><link rel=stylesheet href=http://www.oneclickhr.com/stylesheets/oneclick.css type="text/css"><title>Downloading your file</title><body bgcolor=white leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>');
	DownloadWindow.document.writeln('<center><table border=0 cellspacing=0 cellpadding=0 align=center height=100%><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>');
	DownloadWindow.document.writeln('<a href=http://www.oneclickhr.com/admin/pages/orders/downloadfile.asp?' + filename + '>Click here</a> if your download does not start automatically</td></tr>');
	DownloadWindow.document.writeln('</table></center></body></html>');
	DownloadWindow.document.close();
	DownloadWindow.focus();
	}

if ((document.location.pathname.indexOf('hrguideold/')!= -1) && (partnerType != 'whitebrand')  )document.location.replace ("/newsite/error.asp?"+document.location)


// -->
