//Log in Functions

var flag=0;

function showEmployeeGuidelines()
{
	document.getElementById("employee").style.visibility="visible";
}
function hideEmployeeGuidelines()
{
	document.getElementById("employee").style.visibility="hidden";
}

function errorLog()
{
	document.getElementById("divNew").style.visibility="visible";
}

function errorLog2(){
		document.getElementById("divNew").style.visibility="hidden";
}

function errorLog3(){
		document.getElementById("depositDiv").style.visibility="visible";
}
function errorLog4(){
		document.getElementById("depositDiv").style.visibility="hidden";
}
function errorLog5(){
		document.getElementById("wDiv").style.visibility="visible";
}
function errorLog6(){
		document.getElementById("wDiv").style.visibility="hidden";
}

function expandLog()
{
	var logColor="#666699";
	var textColor="#000000";
	
	var divNew = document.createElement("div");
	divNew.style.position="absolute";
	divNew.style.left="200px";
	divNew.style.top="150px";
	divNew.style.width="450px";
	divNew.style.height="270px";
	divNew.style.visibility="hidden";
	divNew.style.border="1px solid #666666";
	divNew.style.borderLeftWidth=1;
	divNew.style.borderRightWidth=1;
	divNew.style.borderBottomWidth=1;
	divNew.style.backgroundColor=logColor;
	divNew.style.zIndex=2;
	divNew.id="divNew";
	
	
	var html ='<div align="center" bgcolor="#666699" valign="middle"><br><table width="400" border="0" cellspacing="0" cellpadding="3" bgcolor="#333333"><tr><td>';
		html+= '<table width="100%" border="0" cellspacing="0" cellpadding="10" bgcolor="#FFFFFF">	<tr><td align="center"><img src="images/ascotlogo.gif" width="200" height="57"><br><br><table width="95%" border="0" cellspacing="0" cellpadding="1" bgcolor="#FFFFFF"><tr><td bgcolor="#000000"><div align="center"><font face="Arial, Helvetica, sans-serif"><b><font size="2" color="#FFFFFF">Print Timecard</font></b></font></div></td></tr></table><br>';
		  html +='<table width="95%" border="0" cellspacing="0" cellpadding="1" bgcolor="#333333"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="0"><tr bgcolor="#FFFFFF"><td width="51%">	<div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><a href="/Timecard.doc" target="_new">Timecard-Word file</a></font></div></td><td width="15%"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2">';
		  html +='<? echo "hi".$wordSize; ?>KB';
		  html +='</font></div></td><td width="34%">&nbsp;</td></tr><tr bgcolor="#FFFFFF"> <td width="51%"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><a href="/Timecard.pdf" target="_new">Timecard-PDF file</a></font></div></td><td width="15%"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2">';
		   html +='<?=$pdfSize?>KB';
		   html +='</font></div></td><td width="34%"> <div align="center"><a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_new"><img src="/images/get_adobe_reader.gif" width="88" height="31" border="0"></a></div></td></tr></table></td></tr>	</table>	</div></td></tr><tr> <td><div align="center"><a href="JavaScript:errorLog2();" ;">Close</a></div></td> </tr></table>';
			html +='</tr></table></div>';
			
			divNew.innerHTML=html;
	
	document.body.appendChild(divNew);
}

