// Main JavaScript Functions
// End2End Integration
// http://www.e2ei.com


var selectedtablink=""
var tcischecked=false

function handlelink(aobject){
selectedtablink=aobject.href
tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false
if (document.getElementById && !tcischecked){
var tabobj=document.getElementById("tablist")
var tabobjlinks=tabobj.getElementsByTagName("A")
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
document.getElementById("testframe").src=selectedtablink
return false
}
else
return true
}

function handleview(){
tcischecked=document.tabcontrol.tabcheck.checked
if (document.getElementById && tcischecked){
if (selectedtablink!="")
window.location=selectedtablink
}
}
<!--
function popUp(url, width, height) {
	var intWidth=1024;
	var intHeight=768;
	if(width > 0) intWidth = width;
	if(height > 0) intHeight = height;
	var winPopUp = window.open(url,'popup','width=' + intWidth + ',height=' + intHeight + ',scrollbars=no,resizable=no,left=20,top=0');
    if(typeof window.focus != 'undefined') javascript: winPopUp.focus();
}
//-->