﻿function GetDateStamp()
{        
    var now = new Date();          
  var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
  //var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
  var date = now.getDate();
    function fourdigits(number)	{
      return (number < 1000) ? number + 1900 : number;}
  today =  months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear()));
  
  document.write("<span class='arial_12_14 bold'>As of " + today + " " + now.format("hh:mm tt") + "</span>");  
}

function newItem(expiryDate)
    {     
	exp = new Date(expiryDate);
	cur = new Date();	
	if (cur.getTime() < exp.getTime())		    	    
	    document.write("<img src='/images/new_icon.gif' border='0' alt='new'>" );
    }

/*
window.onload= function()
{
    var q = document.getElementById('ctl00_Search1_SearchBox_TextBox');
    var r = document.getElementById('ctl00_lowerSearchBox_TextBox');
    var n = navigator; 
    var l = location; 
    if (n.platform == 'Win32')
    {
        q.style.cssText = 'border: 1px solid #7e9db9; padding: 2px;'; 
        r.style.cssText = 'border: 1px solid #7e9db9; padding: 2px;'; 
    }
    
    q.style.width='620px';    
    r.style.width='425px';
         
    var b = function() 
    {    
        if (q.value == '') 
        {
            q.style.background = '#FFFFFF url(http://www.google.com/coop/intl/en/images/google_site_search_watermark.gif) left no-repeat';            
        }
        
        if (r.value == '') 
        {
            r.style.background = '#FFFFFF url(http://www.google.com/coop/intl/en/images/google_site_search_watermark.gif) left no-repeat';
        }
    };
    

    var f = function() 
    { 
        q.style.background = r.style.background = '#ffffff';         
    }; 
    
    q.onfocus = f; 
    q.onblur = b; 
    
    r.onfocus = f; 
    r.onblur = b; 
    
    if (!/[&?]q=[^&]/.test(l.search)) 
    { 
        b(); 
    } 
    
    if (!/[&?]r=[^&]/.test(l.search)) 
    { 
        b(); 
    } 
}
*/

