function breakout_of_frame(){
	if (top.location != location) {
    	top.location.href = document.location.href ;
	}
}

function openCart(thePage) {
	if (navigator.appName.indexOf("Netscape")!=-1 &&parseInt(navigator.appVersion)>=5) {
		coordX = window.screenX;
		coordY = window.screenY;
	} else if (navigator.appName.indexOf("Microsoft")!= -1 &&parseInt(navigator.appVersion)>=4) {
		coordX = window.screenLeft;
		coordY = window.screenTop;
	};
	
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	};
	
	var left = coordX + ((myWidth/2)-340);
	var top = coordY + ((myHeight/2)-240);
		
	window.open(thePage,"_blank",'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=680, height=480, top='+top+', left='+left);
}
