

function GetCopy(){
	return '<span class=cr>&copy;Fallon Currie Consulting ' + GetYear() + '</span>'
}


function GetADate(){
	var d = new Date()
	var months = new Array()
	months[0] = "January"
	months[1] = "February"
	months[2] = "March"
	months[3] = "April"
	months[4] = "May"
	months[5] = "June"
	months[6] = "July"
	months[7] = "August"
	months[8] = "September"
	months[9] = "October"
	months[10] = "November"
	months[11] = "December"
	return d.getDate() + ' ' + months[d.getMonth()] + ' ' + d.getFullYear()
}



function GetYear(){
	var d = new Date()
	return d.getFullYear()
}

function productpop(p)
{
	window.open('product.asp?p=' + p + '', 'pwin', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=no,width=500,height=350,directories=no,location=no,left='+((screen.width-500)/2)+',top='+((screen.height-350)/2)+'');
}



function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}

function swapImage(img1, img2){
	img1.src = img2.src
}

function rollin(obj, c){
	//eval("obj.style.cssText='background-color:" + c + "'")
	eval("obj.style.cssText = 'border:solid 1px #000000'")
	obj.style.cursor = 'pointer'
}
function rollout(obj, c){
	//eval("obj.style.cssText='background-color:" + c + "'")
	eval("obj.style.cssText = 'border:solid 1px #b0b0b0'")
}



function val(frm){

    if (frm.author.value == ""){
      
        alert("Please enter an author name!");
        frm.author.focus();
        return (false);
    
    }

    if (frm.message.value == ""){
      
        alert("Please enter a message!");
        frm.message.focus();
        return (false);
    
    }

	var strM = frm.message.value.toLowerCase()
    if (strM.indexOf("http") != -1){
      
        alert("Please remove any links from your message!");
        frm.message.focus();
        return (false);
    
    }
    
    /*
    // if there is an entry in the email field test for . and @
    if (frm.email.value != ""){
    
        if (frm.email.value.indexOf("." ) == -1 || 
            frm.email.value.indexOf("@") == -1){
          
            alert("Please enter a valid email address!");
            frm.email.focus();
            return (false);
    
        }
  
    }
    */
    
    return true
    
}

