function sc(id){
	exp = new Date();
	ny = exp.getTime() + (365*24*60*60*1000);
	exp.setTime(ny);
	document.cookie = "currency_id="+id+"; expires=" + exp.toGMTString()+"; path=/";
	document.location.reload();

	return false;
}


function sw(){
        w = 1024;
	if (window.innerWidth) {
		w = window.innerWidth;
	}
	else if (document.body.offsetWidth){
		w = document.body.offsetWidth;
	}
	document.getElementById('main_content').style.width = (w-470)+'px';
}

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150');

}
