function searchWindow(theURL) { //v2.0
  window.open(theURL,'SearchWindow','toolbar=yes, location=yes, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=500, height=500, screenX=150, screenY=150, top=150, left=150');
}
function visitLink (url) {
newWin=window.open(url, 'basewindow');
newWin.focus();
}
function EmailWindow(theURL) { //v2.0
  window.open(theURL,'EmailWindow','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=500, height=380, screenX=150, screenY=150, top=150, left=150');
}
// Style changing functions for html elements
function getRef(obj){
    return (typeof obj == "string") ?
    document.getElementById(obj) : obj;
}
function setStyle(obj,style,value){
    getRef(obj).style[style]= value;
}
function setClassName(obj, className){
    getRef(obj).className= className;
}
function toggleStyle(obj, style, value1, value2){
    obj= getRef(obj);
    // obj.isValue1 will be false the first time.
    if(!obj.isValue1){
        obj.style[style]= value1;
        obj.isValue1= true;
    }
    else{
        obj.style[style]= value2;
        obj.isValue1= false;
    }
}
function toggleClassName(obj, class1, class2){
    obj= getRef(obj);
    // obj.isClass1 will be false the first time.
    if(!obj.isClass1){
        obj.className= class1;
        obj.isClass1= true;
    }
    else{
        obj.className= class2;
        obj.isClass1= false;
    }
}

			function CheckMultiple61(frm, name) {
				for (var i=0; i < frm.length; i++)
				{
					fldObj = frm.elements[i];
					fldId = fldObj.id;
					if (fldId) {
						var fieldnamecheck=fldObj.id.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
				}
				return false;
			}
		function CheckForm61(f) {
			if (f.email.value == "") {
				alert("Please enter your email address.");
				f.email.focus();
				return false;
			}
		
						if (f.format.selectedIndex == -1) {
							alert("Please choose a format to receive your email campaigns in");
							f.format.focus();
							return false;
						}
					
				return true;
			};