// JavaScript Document
/*function AddRule()
{
if (document.all && document.styleSheets && document.styleSheets[0] &&
  document.styleSheets[0].addRule)
 {
  // Feel free to add rules for specific tags only, you just have to call it several times.
  document.styleSheets[0].addRule('*', 'behavior: url(css/iepngfix/iepngfix.htc)');
 }
}*/
var RecaptchaOptions = {theme: 'clean'};
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

// Function that return a number between 0 and "nums - 1"
function getRandom(nums)
{
    var ranNum= Math.round(Math.random()*nums);
    return ranNum;
}

function writeHeader()
{
var today=new Date();

var ThisMonth  =today.getMonth()+1;
// Write the img tag with specified header size and the correct color too 
 if(ThisMonth <=3)
  {
		if (screen.width >=1280)
		{
		    document.write("<img src=\"/images/1280/Blue_Banner.png\" alt=\"iTransfer Header Image\" width=\"883\" height=\"130\" align=\"middle\" id=\"HeadBanner\" border=\"0\" />");
		}
		else if (screen.width >=1024)
		{
		    document.write("<img src=\"/images/1280/Blue_Banner.png\" alt=\"iTransfer Header Image\" width=\"880\" height=\"120\" align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}		
		else
		{
		    document.write("<img src=\"/images/800/Blue_Banner.png\" alt=\"iTransfer Header Image\" width=\"660\" height=\"110\" align=\"middle\" id=\"HeadBanner\"  border=\"0\" />");
		}
   }		
 else if(ThisMonth <=6)
  {
		if (screen.width >=1280)
		{
		    document.write("<img src=\"/images/1280/Green_Banner.png\" alt=\"iTransfer Header Image\" width=\"883\" height=\"130\" align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
		else if (screen.width >=1024)
		{
		    document.write("<img src=\"/images/1280/Green_Banner.png\" alt=\"iTransfer Header Image\" width=\"880\" height=\"120\" align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
		else
		{
		    document.write("<img src=\"/images/800/Green_Banner.png\" alt=\"iTransfer Header Image\" width=\"660\" height=\"110\"  align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
   }		
else if(ThisMonth <=9)
  {
		if (screen.width >=1280)
		{
		    document.write("<img src=\"/images/1280/Red_Banner.png\" alt=\"iTransfer Header Image\" width=\"883\" height=\"130\" align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
		else if (screen.width >=1024)
		{
		    document.write("<img src=\"/images/1280/Red_Banner.png\" alt=\"iTransfer Header Image\" width=\"880\" height=\"120\" align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
		else
		{
		    document.write("<img src=\"/images/800/Red_Banner.png\" alt=\"iTransfer Header Image\" width=\"660\" height=\"110\"   align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
   }
   else if (ThisMonth <= 12) {
		if (screen.width >=1280)
		{
		    document.write("<img src=\"/images/1280/Dark_Banner.png\" alt=\"iTransfer Header Image\" width=\"883\" height=\"130\" align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
		else if (screen.width >=1024)
		{
		    document.write("<img src=\"/images/1280/Dark_Banner.png\" alt=\"iTransfer Header Image\" width=\"880\" height=\"120\" align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
		else
		{
		    document.write("<img src=\"/images/800/Dark_Banner.png\" alt=\"iTransfer Header Image\" width=\"660\" height=\"110\"   align=\"middle\" id=\"HeadBanner\"  border=\"0\"/>");
		}
   }		
}


function DisplayBottomLogo()
{
// Write the img tag with specified header size
var today=new Date();

var ThisMonth  =today.getMonth()+1;
// Write the img tag with specified header size and the correct color too 
 if(ThisMonth <=3)
  {
		if (screen.width >=1280)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Blue_bottom_logo.png\" height=\"143\" width=\"141\" style=\"padding-right:15px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\"/>");
		}
		else if (screen.width >=1024)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Blue_bottom_logo.png\" height=\"133\" width=\"131\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
		else
		{
          document.write("<img align=\"left\" src=\"/images/800/Blue_bottom_logo.png\" height=\"105\" width=\"105\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
   }		
 else if(ThisMonth <=6)
  {
		if (screen.width >=1280)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Green_bottom_logo.png\" height=\"143\" width=\"141\" style=\"padding-right:15px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
		else if (screen.width >=1024)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Green_bottom_logo.png\" height=\"133\" width=\"131\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
		else
		{
          document.write("<img align=\"left\" src=\"/images/800/Green_bottom_logo.png\" height=\"105\" width=\"105\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
   }		
else if(ThisMonth <=9)
  {
		if (screen.width >=1280)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Red_bottom_logo.png\" height=\"143\" width=\"141\" style=\"padding-right:15px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
		else if (screen.width >=1024)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Red_bottom_logo.png\" height=\"133\" width=\"131\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
		else
		{
          document.write("<img align=\"left\" src=\"/images/800/Red_bottom_logo.png\" height=\"105\" width=\"105\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
   }		
else if(ThisMonth <=12)
  {
		if (screen.width >=1280)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Dark_bottom_logo.png\" height=\"143\" width=\"141\" style=\"padding-right:15px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
		else if (screen.width >=1024)
		{
          document.write("<img align=\"left\" src=\"/images/1280/Dark_bottom_logo.png\" height=\"133\" width=\"131\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
		}
		else
		{
          document.write("<img align=\"left\" src=\"/images/800/Dark_bottom_logo.png\" height=\"105\" width=\"105\" style=\"padding-right:5px\" alt=\"Illinois Articulation Initiative\" class=\"floatLeft\" border=\"0\" />");
      		}
   }
}
function ChooseHeaderColor()
{
var today=new Date();

var ThisMonth  =today.getMonth()+1;
// Write the img tag with specified header size and the correct color too 
 if(ThisMonth <=3)
  {
   document.write("<link rel=\"stylesheet\" href=\"/css/Header/Blue.css\" type=\"text/css\" media=\"all\" />");
   }
   else if(ThisMonth <=6)
  {
 document.write("<link rel=\"stylesheet\" href=\"/css/Header/Green.css\" type=\"text/css\" media=\"all\" />");
   }
   else if(ThisMonth <=9)
  {
 document.write("<link rel=\"stylesheet\" href=\"/css/Header/Red.css\" type=\"text/css\" media=\"all\" />");
   }
   else {
    //   document.write("<link rel=\"stylesheet\" href=\"/css/Header/Khakhi.css\" type=\"text/css\" media=\"all\" />");
// document.write("<link rel=\"stylesheet\" href=\"/css/Header/Brown.css\" type=\"text/css\" media=\"all\" />");
 document.write("<link rel=\"stylesheet\" href=\"/css/Header/Dark.css\" type=\"text/css\" media=\"all\" />");
   }
}
function confirm_delete() {
    if (confirm("Are you sure you want to proceed ?") == true)
        return true;
    else
        return false;
}


