function writelink(emailname, classname) {
	document.write('<a href=\"mailto:' + emailname + '\@codejock.com\" ' + 'class=\"' + classname + '\">' + emailname + '@codejock.com</a>') ;
}
function writelink2(emailname, classname, title) {
	document.write('<a href=\"mailto:' + emailname + '\@codejock.com\" ' + 'class=\"' + classname + '\">' + title + '</a>') ;
}
function CheckSearchForm(searchForm) {
	if (searchForm.search.value=="") {
		alert("Please enter at least one keyword to search");
		searchForm.search.focus();
		return false;
	}
	return true
}
function showReleaseNotes() {
	myWindow = window.open('Release_Notes.htm','','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=250');
	myWindow.document.close() ;
}
function showReleaseNotes(releaseNotePath) {
	myWindow = window.open(releaseNotePath,'','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=250');
	myWindow.document.close() ;
}
function mOver(menuItem) {
   menuItem.style.cursor = 'hand';
   menuItem.style.color = '#ffd275';
}
function mOut(menuItem) {
   menuItem.style.cursor = 'default';
   menuItem.style.color = '#ffffff';
   
}
function mOverMenu(menuItem){
   menuItem.style.cursor = 'hand';
 
   
	
	
}
function mOutMenu(menuItem){
   menuItem.style.cursor = 'default';
  menuItem.style.borderColor = "#6699FF";
  menuItem.style.forecolor = '#ffffff';
	
}
function mDown(url) {
	window.location = url;
}

function DisplayImage(imgURL,iWidth,iHeight)
{
	myWindow = window.open('', 'ScreenShot', 'toolbar=no,scrollbars=0,resizable=0,width=' + iWidth + ',height=' + iHeight) ;
	myWindow.document.writeln('<html><title>Codejock Software: Screen Shot</title><body style="background-image:url(' + imgURL + ')"></body></html>') ;
	myWindow.document.close() ;
	myWindow.resizeBy(iWidth-newWindow.document.body.clientWidth,iHeight-newWindow.document.body.clientHeight) ;
	myWindow.focus() ;
}


function HideUnhide(objectID, size)
{
	if (document.getElementById) // DOM3 = IE5, NS6
	{
		if (objectID == "mfc")
		{
			document.getElementById('activex').style.display = 'none';	
			document.getElementById(objectID).style.display = 'block';
			document.getElementById('activexDisabled').style.display = 'block';	
			document.getElementById('activexColor').style.display = 'none';	
			document.getElementById('mfcColor').style.display = 'block';
			document.getElementById('mfcDisabled').style.display = 'none';							
						
			document.getElementById('tabMenu').style.width = size;								

			document.getElementById('vctb').className = "TAB";
			document.getElementById('vctd').className = "TABOPEN";

			document.getElementById('vbtb').className = "TAB_CLOSED";
			document.getElementById('vbtd').className = "TABCLOSED";
			
			document.getElementById('vb').className = "tabLINK";
			document.getElementById('vc').className = "tabLINKbold";						

		}
		else if (objectID == "activex")
		{
			document.getElementById('mfc').style.display = 'none';	
			document.getElementById(objectID).style.display = 'block';	
			document.getElementById('activexColor').style.display = 'block';
			document.getElementById('activexDisabled').style.display = 'none';								
			document.getElementById('mfcColor').style.display = 'none';
			document.getElementById('mfcDisabled').style.display = 'block';				
		
			document.getElementById('tabMenu').style.width = size;												

			document.getElementById('vbtb').className = "TAB";
			document.getElementById('vbtd').className = "TABOPEN";

			document.getElementById('vctb').className = "TAB_CLOSED";
			document.getElementById('vctd').className = "TABCLOSED";
			
			document.getElementById('vc').className = "tabLINK";
			document.getElementById('vb').className = "tabLINKbold";	

		}
	}

}

function tabOver(tab) {
	if (document.getElementById) // DOM3 = IE5, NS6
	{
   		document.getElementById(tab).className = 'tabLINKhover';
   	}
}
function tabOut(tab) {
	if (document.getElementById) // DOM3 = IE5, NS6
	{
   		document.getElementById(tab).className = 'tabLINK';
   	}
}