// Function to 'activate' images.
function imgOn(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "on.src");
	}
}
// Function to 'deactivate' images.
function imgOff(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "off.src");
	}
}
// Function for 'down' images.
function imgDown(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "down.src");
	}
}

var emailAddr = "info";
var emailAddr = emailAddr + "@domain.com";
var emailMain = "<a href=\"mailto:" + emailAddr + "\">" + emailAddr + "</a>";

// Function to display current date

function todaydate() {

  var dayName = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  var monthName = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  var time = new Date();
  var aDay = 24*60*60*1000;
  var days = 0;
  var year = time.getYear();

  if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))		
	year="19" + year;
	if (navigator.appName == "Netscape")
		year=1900 + year;
		var todaysDate = new Date();

  document.write(dayName[todaysDate.getDay()] + ", " + monthName[todaysDate.getMonth()] + " " + todaysDate.getDate() + ", " + year);

}

function popup(URL)
{
	// URL is the passed in parameter where you specified your popup page
	// 0 means no, set toolbars = 0 means you don't want a toolbar to show up in your popup.
	// if you want a toolbar, set it to 1.  Other attributes work the same.
	window.open(URL,"popup01","'toolbars=0,width=500,height=400,menubar=0,scrollbars=1,resize=0'");
}

function linkoutside(url)
{
    alert ("You are now leaving CEDA International Corporation's Website.\n\nCEDA International Corporation cannot and does not warrant the accuracy, completeness, timeliness, non-infringement, merchantability or fitness for a particular purpose of any information available through these links and disclaims any opinions expressed on such sites.\n\nClick the OK button to proceed to " + url);
		window.open(url);
}

