<!--

if(top.location != location){
	top.location.href = document.location.href;
}

// D.C.
function popWindow(url, width, height) {
	var Win = window.open(url,"popWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no,status=no' );
}

function toggle_visibility(id) {
	// <p><a href="#" onclick="toggle_visibility('cToggle01'); return false;">toggle #cToggle01</a></p>
	// <div id="cToggle01" style="display:none">This is cToggle01</div>
    var e = document.getElementById(id);
    if(e.style.display == 'block'){
        e.style.display = 'none';
    }else{
        e.style.display = 'block';
    }
}

function popupSlideShow(url) {
	// slide show popup: /public_html/ss.php
  window.open(url,'popupSlideShow','width=640,height=600,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes')
}

function openWin(theURL,winName,features) {
  w=window.open(theURL,winName,features);
  w.focus();
}

function openWinHelp(URL){
	// User registration Help via popup.php
   open(URL,"_blank","left=150,top=150,width=640,height=480,scrollbars=yes,resizable=yes");
}

// FAQ page id 41; expands answers; see also /style/faq.js.css (#item0, #item1, ...)
var current_item = "item0";
function show_item(item_name)
{
	document.getElementById(current_item).style.display = "none";
	document.getElementById(item_name).style.display = "block";
	current_item = item_name;
}

// 2008/08/05 13:54
// Begin Contact Us form attachments
// Read all notes found at http://www.petefreitag.com/item/587.cfm
var upload_number = 1;
function addFileInput() {
	if(upload_number > 3){
		alert('Sorry, you can only upload 3 files'); // See also $opts['feedback_upld_max']
		exit(0);
	}
	var d = document.createElement("div");
	var l = document.createElement("a"); //***
	var file = document.createElement("input");
	file.setAttribute("type", "file");
	file.setAttribute("size", "50");
	file.setAttribute("style", "margin:5px 10px 5px 0px");
	file.setAttribute("name", "attachment"+upload_number);
	l.setAttribute("href", "javascript:removeFileInput('f"+upload_number+"');");  //***
	l.appendChild(document.createTextNode("Remove"));  //***
	d.setAttribute("id", "f"+upload_number); //***
	d.appendChild(file);
	d.appendChild(l); //***
	document.getElementById("moreUploads").appendChild(d);
	upload_number++;
}
function removeFileInput(i){
	var elm = document.getElementById(i);
	document.getElementById("moreUploads").removeChild(elm);
	upload_number = upload_number - 1;
	// decrement the max file upload counter if the file is removed
}

// End Contact Us form attachments

//-->


