	
//Define variables

var isNav4, isIE;

// a little variable because IE3 isn't nice about testing
// for objects in vbscript

DA = (document.all) ? 1 : 0

window.onerror=handle_error

function handle_error() {
	msg="/nNothing was printeds."
	return true;
}
	
	var isNav, isIE4
	
	if (parseInt(navigator.appVersion) >=4 ) {
		if (navigator.appName == "Netscape") {
			isNav = true
		} else {
			isIE4 = true
			col1 = "all."
			styleObj = ".Style"
		}
}

function doNothing() {
}

function printmyplanner() { 
  wm=window.open('/easyconsole.cfm?page=wish_list&print=1','plannerPopup2','width=640,height=400,scrollbars=yes');
}

   function emailmyplanner() { 
  wm=window.open('/easyconsole.cfm?page=wish_list&email=1','plannerPopup2','width=480,height=400,scrollbars=yes');
}

function more(idtype,page_id)
{
	window.opener.focus();
	window.opener.document.location.href = '/easyconsole.cfm?id='+page_id+'&from_popup=YES'
	window.close();
}

function parent(name)
{
	window.opener.focus();
	window.opener.document.location.href = '/easyconsole.cfm?page='+name
	window.close();
}

   function MyDelete(page_id,form) <!--- Take action value from links in the frmvar form --->
   {  		
	if (!form) form='reclist' 	
	document.forms[form].page_id.value=page_id;
	document.forms[form].status.value='Delete';
	document.forms[form].submit();
}

function MyDeleteAll(form) <!--- Take action value from links in the frmvar form --->
   {  
	if (!form) form='reclist';
	document.forms[form].status.value='DeleteAll';
	document.forms[form].submit();
   }
	

function SubmitForm(){

	var index = document.forms['myform'].doit.selectedIndex;
	
	if (isNav == true) {	
		var t = document.forms['myform'].doit[index].value;	
	}
	else {
		var t = document.forms['myform'].doit.item(index).value;
	}
	
	var hcode = document.forms['myform'].hcode.value;
	
	document.forms['myform'].action = t+hcode;
	document.forms['myform'].submit();
}

function MM_openEmailWindow(theURL,winName,features) { 
  wn=window.open(theURL+'&url='+window.location,winName,'width=480,height=320');
  wn.focus();

}
	
function recover()
{
	location.reload()
}

