function prodcompare(v_strUrl){

	Shadowbox.open({
        	content:    v_strUrl,
        	player:     "iframenoscroll",
        	title:      "",
        	width:      900
   	});
   	
   	return false;
}

function resizeSelectList() {
			
	var strHeadHeight = $('head').getHeight();
	var strFooterHeight = $('footer').getHeight();
	var strDocumentHeight = document.viewport.getHeight();
	var strDocumentWidth = document.viewport.getWidth();
		
	
					
	var newHeight = strDocumentHeight - strHeadHeight - strFooterHeight - 20;
	$('bodycontent').setStyle({
		height: newHeight + 'px',
		width: strDocumentWidth + 'px'
	});
}

var l_contentHeight = 0;
function resizeList() {

	if(l_contentHeight == ''){
		l_contentHeight = $('comparatorValues').getHeight();
	}


	var strDocumentWidth = document.viewport.getWidth();
	var strDocumentHeight = document.viewport.getHeight();

	
	var newGHeight = strDocumentHeight;
	var newGWidth = strDocumentWidth;
	
	$('techData').setStyle({
		height: newGHeight + 'px',
		width: newGWidth + 'px'
	});
	
	
	
	var contentHeight = $('techDataTable').getHeight();
	var strLabelsWidth = $('comparatorLabels').getWidth();
	
	var intScrollWidth = 0;
	
	if(contentHeight > strDocumentHeight){
		intScrollWidth = 35;
	}


	var newHeight = l_contentHeight + 20; //strDocumentHeight;
	var newWidth = strDocumentWidth - strLabelsWidth - 20 - intScrollWidth;
	$('comparatorValues').setStyle({
		width: newWidth + 'px',
		height: newHeight + 'px'
	});		
}
	
function compare(){
	var checkboxes = $('productCompareForm').getInputs('checkbox', 'products');
	var compareProductList = '';
	//alert(checkboxes.size());
	if(checkboxes.size() > 0){
		compareProductList = "''";
		
		checkboxes.each(function(objItem){
			if(objItem.getValue()){
			
				
				compareProductList += ",'" + objItem.getValue() + "'";
				
			}
		});
	}
	
	$('productsList').setValue(compareProductList);
	
	//alert($F('productsList'));
	$('productCompareForm').submit();
	
	return false;
}