function sl_close() {
	$('sl_container').style.display='none';
}

function sl_open(slID) {
	$('sl_container').style.height = findWinHeight() + 'px';
	$('slContent').innerHTML = $('slink'+slID).innerHTML;
	$('sl_container').style.display='block';
}

function findWinHeight() {
    var h; //height
	
	if (typeof( window.innerHeight ) == 'number') { //except ie
		h = window.innerHeight + window.scrollMaxY;
	}
    else if (document.documentElement && document.documentElement.clientHeight) { //
        h = document.documentElement.scrollHeight; 
    }
	else if (document.body) {
		h = document.body.clientHeight + document.body.scrollHeight;
	}
    
	return (h-150);
	
}

function reviewWin(url, w, h){
	window.open(url, "Covergirl",'resizable=no,scrollbars=yes,width='+w+',height='+h);
}

function reviewSubmission_open(slID) {
	if ($('memberUserName')){
		//$('review_container').style.height = findWinHeight() + 'px';
		//$('reviewContent').innerHTML = $('productReviewContainer').innerHTML;
		$('review_container').style.display='block';
	}else {
		window.location = loginPage;
	}
}

function review_close() {
	$('review_container').style.display='none';
}

function submitReview(){	
	if (!login)		
		window.location = loginPage;
}