// ###################################################################
// Global Variables, to be accessed by all the functions..
   var mydate = new Date();
   var newline = '\n';
//
//####################################################################

function goValue(formName, menu){
	var URL = document[formName][menu].options[document[formName][menu].selectedIndex].value;
	window.location.href = URL;
}
//####################################################################
//
// The below function is used to build a valid email address
// 
//####################################################################

function buildEmail(user, form, formName, fieldName) {
	var at = "@";
	var domain = "littlemissmakeup.com";
		
	Email = user + at + domain;
	
	if (form == "n") {
		document.write('<a href=mailto:' + Email + '>' + Email + '</a>');
	} 
	
	if (form == "y") {
		getvalue=eval('document.'+formName+'.'+fieldName+'');
		getvalue.value = Email;
	}
		
}
function popUp(theURL, name, w, h) {
	var windowName = name;
	var features = "status=yes,scrollbars=yes,resizable=yes,width="+w+",height="+h+"";
	var newWindow = window.open("", windowName, features);
	newWindow.focus();
	newWindow.location = theURL;
	return false;
}

//####################################################################
//
// The below function is used to set a write the date to screen
// 
//####################################################################

function date() {
		var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
		document.write('sent ')
		document.write(mydate.getDate() + " ")
		document.write(monthname[mydate.getMonth()] + " ")
		document.write(mydate.getFullYear())
		
	}