// JavaScript Document
function CheckData() {
		if (document.tecquote.PayRate.value.length < 1 && document.tecquote.BillRate.value.length < 1){
			alert("Please fill in either a Bill Rate or Pay Rate.");
			document.tecquote.PayRate.focus();
			return false;
		    }
		else {


		if (document.tecquote.PayRate.value.length > 0 && document.tecquote.BillRate.value.length > 0){
			alert("Please fill out only Pay Rate or only Bill Rate.  Click CLEAR to start over.");
			document.tecquote.PayRate.focus();
			return false;
		    }
		else {
		
			return true;
		}
		}		
	}

    function clearboxes() {
        document.tecquote.PayRate.value="";
        document.tecquote.BillRate.value="";
}

function biggeropenPage(pagename)
{
  codePage = window.open('' +
pagename,'JOBS','toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,width='+700+',height='+485);
  codePage.moveTo(20,20);
  if (codePage.opener == null) codePage.opener = window;
  codePage.opener.name = "AddPage";
}

function openPage(pagename)
{
  codePage = window.open('' +
pagename,'JOBS','toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,width='+700+',height='+485);
  codePage.moveTo(20,20);
  if (codePage.opener == null) codePage.opener = window;
  codePage.opener.name = "AddPage";
}

//Set subWin to null
subWin = null;
function OpenSubWindow(pagename)
{
  //Close any open sub window
  CloseSubWindow();
  //Open a new sub window
  subWin = window.open('' + pagename,'subWindow','toolbar=no,location=no,directories=no,scrollbars=yes,resizeable=yes,width='+700+',height='+485);
    subWin.moveTo(20,20);
}
function CloseSubWindow()
{
  if(subWin != null){
    //Close the current sub window
    if(!subWin.closed){
      subWin.close();
    }
  }
}