function jobredirector(){
	alert("This job is no longer available\n\nPlease go to\n\nwww.dstsystems.com/cr/crhm.html\n\nfor the latest job openings.\n\nThank you.");
	window.location.href = 'http://www.dstsystems.com/cr/crhm.html';
}
//******************************************************************************
function redirector(surl,timeout){
	var timeout=timeout*1;
//	alert(timeout);
	settimeout(window.location.href = surl,timeout);
}
//******************************************************************************
function newwin(loc,w,h) {
	var window1;
	w = w * 1 + 20;
	h = h * 1 + 30;

	swindow = "width="+w+",height="+h+",location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0";
	window1=window.open (loc,"new_window",swindow);
}

//cplogo = "<TABLE WIDTH='780' BORDER='0' CELLPADDING='2'><TR><TD VALIGN='bottom'><P CLASS='copr'>&copy; Copyright 2003, DST Systems, Inc.</P></TD><TD><A HREF='http://www.dstsystems.com/' TARGET='_top'><IMG SRC='tinylogo.gif' WIDTH='75' HEIGHT='67' ALT='DST Systems, Inc.' BORDER='0' ALIGN='right'></A></TD></TR></TABLE>"

//<input type="button" size=17 value="Go Back" onclick=javascript:history.go(-1);>

function sendform()
{
 alert("Nowhere to send this yet!");
 return false;
}

function newwin(loc) {
	var window1;

	swindow = "width=700,height=400,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1";

	window1=window.open (loc,"new_window",swindow);
}
/* old version of validate()
function validate() 
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	var bEmail;
	var bMail;
	var fname;
	var lname;
	var company;
	var address1;
	var address2;
	var city;
	var state;
	var zip;
	var phone;
	var email;

	bEmail = document.reqinfo.ContactBy[0];
	bMail = document.reqinfo.ContactBy[1];
	fname = document.reqinfo.FirstName;
	lname = document.reqinfo.LastName;
	company = document.reqinfo.Company;
	address1 = document.reqinfo.Address1;
	address2 = document.reqinfo.Address2;
	city = document.reqinfo.City;
	state = document.reqinfo.State;
	zip = document.reqinfo.Zip;
	phone = document.reqinfo.Phone;
	email = document.reqinfo.Email;
	
	if (bEmail.checked==true)
	 {
		if (fname.value.length <= 0)
		{
		 msg = "Please enter your first name";
		 alert (msg);
		 fname.focus(); 
		 return false;
		}
		if (lname.value.length <= 0)
		{
		 msg = "Please enter your last name";
		 alert (msg);
		 lname.focus(); 
		 return false;
		}
		if (company.value.length <= 0)
		{
		 msg = "Please enter your company name";
		 alert (msg);
		 company.focus(); 
		 return false;
		}
		if (zip.value.length > 0)
		{
			if (isNaN(zip.value) || zip.value.length < 5)
			{
			 msg = "Zip code in not valid";
			 alert (msg);
			 zip.focus(); 
			 return false;
			 }
		}
		if (document.layers||document.getElementById||document.all)
		 {
		  if (!filter.test(email.value))
		  {
			alert("Please supply a valid email address!")
			email.focus()
			return false
		   }
		   //document.reqinfo.Email.value = "mailto:"+email.value;
		 }
	   return true;
	 }
	if (bMail.checked==true)
	 {
		if (fname.value.length <= 0)
		{
		 msg = "Please enter your first name";
		 alert (msg);
		 fname.focus(); 
		 return false;
		}
		if (lname.value.length <= 0)
		{
		 msg = "Please enter your last name";
		 alert (msg);
		 lname.focus(); 
		 return false;
		}
		if (company.value.length <= 0)
		{
		 msg = "Please enter your company name";
		 alert (msg);
		 company.focus(); 
		 return false;
		}
		if (address1.value.length <= 0)
		{
		 msg = "Please enter your street address";
		 alert (msg);
		 address1.focus(); 
		 return false;
		}
		if (city.value.length <= 0)
		{
		 msg = "Please enter your city";
		 alert (msg);
		 city.focus(); 
		 return false;
		}
		if (state.value == 'NULL')
		{
		 msg = "Please select your state";
		 alert (msg);
		 state.focus(); 
		 return false;
		}
		if (isNaN(zip.value) || zip.value.length < 5)
		{
		 msg = "Please enter your zip code";
		 alert (msg);
		 zip.focus(); 
		 return false;
		}
	   return true;
	 }
}
*/
function validate() 
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	var fname;
	var lname;
	var company;
	var address;
	var address2;
	var city;
	var state;
	var zip;
	var phone;
	var email;

	fname = document.reqinfo.FirstName;
	lname = document.reqinfo.LastName;
	company = document.reqinfo.Company;
	address = document.reqinfo.Address;
	apt_suite = document.reqinfo.Apt_Suite;
	city = document.reqinfo.City;
	state = document.reqinfo.State;
	zip = document.reqinfo.Zip;
	phone = document.reqinfo.Phone;
	email = document.reqinfo.Email;
	
		if (document.layers||document.getElementById||document.all)
		 {
		  if (!filter.test(email.value))
		  {
			alert("Please supply a valid email address!")
			email.focus()
			return false
		   }
		if (fname.value.length <= 0)
		{
		 msg = "Please enter your first name";
		 alert (msg);
		 fname.focus(); 
		 return false;
		}
		if (lname.value.length <= 0)
		{
		 msg = "Please enter your last name";
		 alert (msg);
		 lname.focus(); 
		 return false;
		}
		if (company.value.length <= 0)
		{
		 msg = "Please enter your company name";
		 alert (msg);
		 company.focus(); 
		 return false;
		}
		if (address.value.length <= 0)
		{
		 msg = "Please enter your street address";
		 alert (msg);
		 address.focus(); 
		 return false;
		}
		if (city.value.length <= 0)
		{
		 msg = "Please enter your city";
		 alert (msg);
		 city.focus(); 
		 return false;
		}
		if (state.value == 'NULL')
		{
		 msg = "Please select your state";
		 alert (msg);
		 state.focus(); 
		 return false;
		}
		if (isNaN(zip.value) || zip.value.length < 5)
		{
		 msg = "Please enter your zip code";
		 alert (msg);
		 zip.focus(); 
		 return false;
		}
	   return true;
	 }
}
function newwintrack(loc,trackid)
  {
	var window1;

	swindow="width=700,height=400,location=1,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0";

    mywindow=open ("","new_window",swindow);
    mywindow.document.open();
    mywindow.document.write("<html>\n<head>\n<title>"+trackid+"</title>\n</head>\n<body>\n");
    mywindow.document.write("<img src=http://www.epriority.com/B/1/22139/"+trackid+" border=0 width=1 height=1>\n");
    mywindow.document.write("</body>\n</HTML>");
    mywindow.document.close();

	window1=window.open (loc,"new_window",swindow);
}
function launch(pic,w,h,name)
  {
	  quot = String.fromCharCode(34);
	  w = w * 1 + 20;
	  w = "width=" + w + ",";

	  h = h * 1 + 100;
	  h = "height=" + h;
	  pic = "" + "images/" + pic +".jpg";
	  swindow = w + h + ",location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0";

	  myclose = "<script language=Javascript>";
	  myclose = myclose + "function ChangeImg(imgNum,imgSrc)";
	  myclose = myclose+"{document.images[imgNum].src = imgSrc;}</script>"

	  mywindow=open ("","new_window",swindow);
	  mywindow.document.open();
	  mywindow.document.write(myclose);
	  mywindow.document.write("<html><head><title>"+name+"</title></HEAD>");
	  mywindow.document.write("<body  marginheight=0 marginwidth=0 topmargin=0 leftmargin=0");
	  mywindow.document.write(" rightmargin=0 bottommargin=0 BGCOLOR=white");
	  mywindow.document.write(" text=black>");
	  mywindow.document.write("<center><br><img src=" +pic+ " border=0 alt=" + name+">");
	  mywindow.document.write("<br><br>" + name);

	  mywindow.document.write("<br><br><a href="+quot+"javascript:self.close();"+quot);
	  mywindow.document.write(" onMouseOver="+quot+"ChangeImg(1,'images/flagjoff.gif');"+quot);
  	  mywindow.document.write(" onMouseOut="+quot+"ChangeImg(1,'images/flagjon.gif');"+quot);
  	  mywindow.document.write("><img src="+quot+"images/flagjon.gif"+quot+" border=0>Close</a>");

  	  mywindow.document.write("</center>");
	  mywindow.document.write("</body></HTML>");
	  mywindow.document.close();
}

function chktop(ylu, mlu, dlu)    {
//alert('in');
     statstring = "Welcome to DST Systems, Inc. Online.  ";
 
     if (dlu != null && mlu != null && dlu != null) {
        statstring += " This page last updated on " + ylu + "/" + mlu + "/" + dlu +".";
    }   
     
   window.defaultStatus = statstring;
 }


function winOpn(imgname) {
   imgWindow=window.open("","displayWindow","menubar=0,status=0,resizable=1,scrollbars=1,width=680,height=540");
   imgWindow.document.write
      ("<HEAD><TITLE>Illustration Window</TITLE></HEAD>");
   imgWindow.document.write
      ("<BODY><IMG SRC="+imgname+"><FORM><CENTER><INPUT TYPE='submit' VALUE='Close' onClick='window.close();'><CENTER></BODY>");

   imgWindow.document.close();

        }


		function formEIROpn()  {

formWindow=window.open('https://careers.dstsystems.com/hr/onlineap.nsf/res/?Open',"displayWindow","menubar=1,status=1,resizable=1,scrollbars=1,width=680,height=540,toolbar=0,location=1");

		}		
		

function formFULLOpn()	{

formWindow=window.open('https://careers.dstsystems.com/hr/aoldst.nsf/app?OpenForm',"displayWindow","menubar=1,status=1,resizable=1,scrollbars=1,width=680,height=540,toolbar=0,location=1")
		
	}	


function howdy()   {

form2Window=window.open('https://careers.dstsystems.com/hr/aoldst.nsf/app?OpenForm&apptype=profile',"displayWindow","menubar=1,status=1,resizable=1,scrollbars=1,width=680,height=540,toolbar=0,location=1");

}
/*		
function apply(jbcd)   {

form2Window=window.open("https://careers.dstsystems.com/hr/aoldst.nsf/app?OpenForm&apptype=profile&jobcode="+jbcd,"displayWindow", "menubar=1,status=1,resizable=1,scrollbars=1,width=680,height=540,toolbar=0,location=1");

}
*/
function apply(jbcd)   {
//alert("The DST Systems Online Application is undergoing regularly scheduled maintenance.\n\nThe application will be available again on June 20 at 9:00 a.m. (CST)");

//-----------this links to the full job application-----------
form2Window=window.open("https://careers.dstsystems.com/hr/aoldst.nsf/app?OpenForm&Seq=1&jobcode="+jbcd,"displayWindow", "menubar=1,status=1,resizable=1,scrollbars=1,width=680,height=540,toolbar=0,location=1");
//-----------end full job application-----------

//-----------this links to the short job application-----------
//form2Window=window.open("https://careers.dstsystems.com/hr/aoldst.nsf/app?OpenForm&apptype=profile&jobcode="+jbcd,"displayWindow", "menubar=1,status=1,resizable=1,scrollbars=1,width=680,height=540,toolbar=0,location=1");
//-----------end short job application-----------
}

function dateUpdate()  {

var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";

var dateObj = new Date(document.lastModified)
var lmonth = months[dateObj.getMonth() + 1]
var fyear = dateObj.getYear()
var date = dateObj.getDate()

alert (lmonth + " " + date + ", " + fyear);
return (lmonth + " " + date + ", " + fyear);

}		
				