

//function ease_versiono()
//{
//  document.write("Ease 5.2 Rev 4");
//}



function emailto(user)
{
  var domein = 'hdlworks.com';

  document.write('<a class="navigation" href="mailto:' + user + '@' + domein + '">');
  document.write(user + '@' + domein );
  document.write('</a>');
}


function emailforeign(user, domein)
{
  document.write('<a class="navigation" href="mailto:' + user + '@' + domein + '">');
  document.write(user + '@' + domein );
  document.write('</a>');
}


function webto(webDomein)
{

  document.write('<a class="navigation" target="_parent" href="http://www.' + webDomein + '">');
  document.write('www.' + webDomein );
  document.write('</a>');
}


function pfew(phone, fax, email, web, domein)
{

	document.write('<table class="tekst" cellspacing="0">')
 	if (phone != "")
	{
		document.write('<tr><td> Phone:&nbsp;&nbsp;&nbsp; </td><td>');
		document.write(phone + '</td><tr>');
	}
 	if (fax != "")
	{
		document.write('<tr><td> Fax:&nbsp;&nbsp;&nbsp; </td><td>');
		document.write(fax + '</td><tr>');
	}
 	if (email != "")
	{
		document.write('<tr><td> Email:&nbsp;&nbsp;&nbsp; </td><td>');
		emailforeign(email, domein);
		document.write('</td><tr>');
	}
 	if (web != "")
	{
		document.write('<tr><td> Website:&nbsp;&nbsp;&nbsp; </td><td>');
		webto(domein);
		document.write('</td><tr>');
	}
    document.write('</table')

}	//	pfew

function pfewFr(phone, fax, email, web, domein)
{

	document.write('<table class="tekst" cellspacing="0">')
 	if (phone != "")
	{
		document.write('<tr><td> Phone:&nbsp;&nbsp;&nbsp; </td><td>');
		document.write(phone + '</td><tr>');
	}
 	if (fax != "")
	{
		document.write('<tr><td> Fax:&nbsp;&nbsp;&nbsp; </td><td>');
		document.write(fax + '</td><tr>');
	}
 	if (email != "")
	{
		document.write('<tr><td> Email:&nbsp;&nbsp;&nbsp; </td><td>');
		emailforeign(email, "wanadoo.fr");
		document.write('</td><tr>');
	}
 	if (web != "")
	{
		document.write('<tr><td> Website:&nbsp;&nbsp;&nbsp; </td><td>');
		webto(domein);
		document.write('</td><tr>');
	}
    document.write('</table')

}	//	pfewFr


function framePage(url)
{
	if (parent.frames.length == 0)
	{
		location.href='/cgi-bin/frame.cgi?p='+url;
	} 
//	else 
//	{
//		if (parent.treeframe.loadSynchPage)
//		{
//			parent.treeframe.loadSynchPage(3);
//			window.alert(url)
//		}
//	}

}	//	framePage


function popup_window( url, id, width, height )
{
    //extract the url parameters if any, and pass them to the called html
    var tempvar=document.location.toString(); // fetch the URL string
    var passedparams = tempvar.lastIndexOf("?");

	if (passedparams > -1)
       url += tempvar.substring(passedparams);
    popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + '' );
    popup.focus();
}

function imageWindow(title, url, imageWidth, imageHeight)
{
	var id = "hdlw_image";
	var	width = imageWidth + 20;
	var	height = imageHeight + 40;

    popup = window.open("", id, 'toolbar=no,scrollbars=1,location=no,statusbar=no,menubar=no,resizable=yes,width=' + width + ',height=' + height + '' );
	popup.resizeTo(width, height);
    popup.document.write('<html><head><title>' + title + '</title></head>');
    popup.document.write('<body style="margin-top:5px margin-left:5px margin-right:5px margin-bottom:5px" bgcolor="#333333">');
    popup.document.write('<img  border="0px" src="' + url + '">');
    popup.document.write('</body></html>');
	popup.document.close();
    popup.focus();
}	//	imageWindow


function hdlc_nav(prevUrl, prevTip, nextUrl, nextTip)
{
  var 	baseUrl = "/products/companion/"
  var	topUrl	= "index"
  var	urlExt = ".html"
  
  document.write('<a class="navigation" href="' + baseUrl + prevUrl + urlExt +
				 '"><img class="download_image" src="/images/handleft.gif" alt="' + prevTip + '"></a>');
  document.write('<a class="navigation" href="' + baseUrl + topUrl + urlExt +
				 '"><img class="download_image" src="/images/hdlc_up.gif" alt="Overview" ></a>');
  document.write('<a class="navigation" href="' + baseUrl + nextUrl + urlExt +
				 '"><img class="download_image" src="/images/handright.gif" alt="' + nextTip + '"></a>');
}

function viewlet_popup( url, id, width, height )
{
    //extract the url parameters if any, and pass them to the called html
   var tempvar=document.location.toString(); // fetch the URL string
   var passedparams = tempvar.lastIndexOf("?");
   if(passedparams > -1)
         url += tempvar.substring(passedparams);
   popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + '' );
   popup.focus();
}

