function jumpto(tothis)
 	{
   window.location = tothis;
  }
	
	function showhidecal(calendarname)
{
 if (document.getElementById(calendarname).style.display == "block")
	{
		document.getElementById(calendarname).style.display = "none";
	}
	else
	{
		document.getElementById(calendarname).style.display = "block";
	}
}

function resize_iframe()
{
	document.getElementById("contentframe").height=100
	document.getElementById('contentframe').height=window.frames["contentframe"].document.body.scrollHeight +100
}

function resize_iframewindow()
{

	var height=window.innerWidth;//Firefox
	if (document.body.clientHeight)
	{
		height=document.body.clientHeight;//IE
	}
	//resize the iframe according to the size of the
	//window (all these should be on the same line)
	document.getElementById("contentframe").style.height=parseInt(height-
	document.getElementById("contentframe").offsetTop-180)+"px";
}



function ClipBoard(thistext) 
{

Copied = thistext;
Copied.execCommand("Copy");
}

function showhelp(showthis,thisnote)
{
	
	if (showthis == "showthisnote")
	{
		thisdata = thisnote
	}
	else
	{
		if (showthis == "othernote")
		{
			thisdata = "test"
		} 
	}
	document.getElementById("help_data").innerHTML = thisdata
	
	tempX = event.clientX + document.body.scrollLeft;
 	tempY = event.clientY + document.body.scrollTop
 document.getElementById("helpbox").style.top = tempY
 document.getElementById("helpbox").style.left = tempX+20
 
 showdiv('helpinfo')
}

function setfromdate(thisday,thismonth,thisyear,setthisday,setthismonth,setthisyear)
{
document.getElementById(setthisday).value = thisday;
document.getElementById(setthismonth).value = thismonth;
document.getElementById(setthisyear).value = thisyear;
}


function emptyfield (doingthis, fieldname,defaultvalue)
{
if (doingthis == "blur")
{
	if (document.getElementById(fieldname).value == "")
	{
		document.getElementById(fieldname).value = defaultvalue
	}
}
else
{
	if (document.getElementById(fieldname).value == defaultvalue)
	{
		document.getElementById(fieldname).value = ""
	}
}

}

function fnpopup(popuppage)
{

showdiv('popup','show')

}

function gotopage(thispage)
{
	window.location=thispage
}