// JavaScript Document

function newWindow(nIndex) {
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 200;
  y = window.screenLeft + 200;
}
else if (document.layers) {
  x = window.screenX + 200;
  y = window.screenY + 200;
}

		catWindow = window.open(nIndex, 'catWin', 'width=700,height=350,top='+y+',screenY='+y+',left='+x+',screenX='+x+',scrollbars=1,status=1')
	}
	
	function newWindowContact(nIndex) {
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 200;
  y = window.screenLeft + 200;
}
else if (document.layers) {
  x = window.screenX + 200;
  y = window.screenY + 200;
}
		catWindow = window.open(nIndex, 'catWin', 'width=300,height=200,top='+y+',screenY='+y+',left='+x+',screenX='+x)
	}
	
	function newWindowContact2(nIndex) {
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 200;
  y = window.screenLeft + 200;
}
else if (document.layers) {
  x = window.screenX + 200;
  y = window.screenY + 200;
}
		catWindow = window.open(nIndex, 'catWin', 'width=300,height=400,top='+y+',screenY='+y+',left='+x+',screenX='+x)
	}
	
	
	function newWindowNPSG(nIndex) {
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 200;
  y = window.screenLeft + 450;
}
else if (document.layers) {
  x = window.screenX + 200;
  y = window.screenY + 450;
}

		catWindow = window.open(nIndex, 'catWin', 'width=300,height=400,top='+y+',screenY='+y+',left='+x+',screenX='+x)
	}
	
	
	function mailpop(nIndex, height)
	{	
		var x = 0, y = 0;
		/*if(document.all)
		{
			x = window.screentTop + 200;
			y = window.screenLeft + 450;
		}
		else if(document.layers)
		{
			x = window.screenX + 0;
			y = window.screenY + 0;
		}*/
		
		x = 300;
		y = 400;
		
		mailpopup = window.open(nIndex, 'mailpopup', "location=0,location=0,width=485,height="+height+",top="+y+",left="+x)
	}
	
	function subline()
	{
		var Index = "'communication/contactWeb.aspx'";
		var Height = "'260'";
		
		document.write('<div align="right"><br>' +	
					   'Temps Inc. &copy; 20010-11<br>An Equal Opportunity Employer<br>' +
					   '<span class="style1"><b><a href="privacy.htm">Privacy</a><br /><a href="javascript:mailpop(' + Index + ', ' + Height + ')">Contact the Webmaster</a></b><br /><br /></span></div>');
					   
	}
	
	function signup()
	{
	    tssrss();
		/*
		document.write('<div align="right" style="float:right"><span align="center"><table width="200" border="0" cellpadding="0" cellspacing="0"><tr><td nowrap><span style="margin-right:3px;margin-top:2px; background-color:#ff9900;"><a href="http://visitor.constantcontact.com/d.jsp?m=1102459574784&p=oi"  target="_blank"><img src="http://img.constantcontact.com/ui/images1/visitor/email5_trans.gif" border="0"></a></span></td><td nowrap width="100%"><a href="http://visitor.constantcontact.com/d.jsp?m=1102459574784&p=oi"  target="_blank" style="font-family:Arial; font-size:13px; color:#000000;">Sign up for our Email Newsletter</a></td></tr></table></span><!-- END: Constant Contact Text Link Email List Button --><!-- BEGIN: SafeSubscribe --> <span style="text-align:center; padding-top:5px;"><a href="http://www.constantcontact.com/safesubscribe.jsp" target="_blank"><img src="http://img.constantcontact.com/ui/images1/safe_subscribe_logo.gif" border="0" width="168" height="14" alt=""/></a></span></div>');
		*/
	}

	function tssrss() 
	{
	    max = 2;	
	    if (Math.floor(Math.random() * max + 1) == 2)
	    {
	        document.write('<div style="float: left"><a href="http://www.clearviewtss.com"><img width="125px" src="http://www.clearviewstaffingsoftware.com/images/stories/Superior_Staffing_logo_vectorized_small.png" border="0" /><br /></a></div>');
	    }
	    else
	    {
	        document.write('<div style="float: left"><a href="http://www.clearviewtss.com"><img src="http://www.clearviewstaffingsoftware.com/images/stories/RSS_seal__vectorized_small.png" border="0" /><br /></a> </div>');
	    }
	}
	
	function openpop(index, x, y, x2, y2) 
	{
    	catWindow = window.open(index, 'catWin', 'width=' + x2 + ',height=' + y2 + ',top=' + y + ',screenY=' + y + ',left=' + x + ',screenX=' + x + ',scrollbars=0,status=1')
	}
	function openpop2(index, x, y, x2, y2) 
	{
    	catWindow = window.open(index, 'catWin', 'width=' + x2 + ',height=' + y2 + ',top=' + y + ',screenY=' + y + ',left=' + x + ',screenX=' + x + ',scrollbars=1,status=1')
	}