frame_url = "http://www.ecrater.com/show_widget.php?sid=" + ecrater_widget_storeid + "&size=" + ecrater_widget_size + "&shape=" + ecrater_widget_shape;
shape_size = ecrater_widget_shape + ecrater_widget_size;

switch(shape_size)
{
	case 'hs':
		document.write("<iframe src='" + frame_url + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' width='330px' height='148px'></iframe>");
		break;
	case 'hl':
		document.write("<iframe src='" + frame_url + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' width='512px' height='148px'></iframe>");
		break;
	case 'vs':
		document.write("<iframe src='" + frame_url + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' width='148px' height='399px'></iframe>");
		break;
	case 'vl':
		document.write("<iframe src='" + frame_url + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' width='148px' height='513px'></iframe>");
		break;
	case 'sqs':
		document.write("<iframe src='" + frame_url + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' width='263px' height='265px'></iframe>");
		break;
	case 'sql':
		document.write("<iframe src='" + frame_url + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' width='354px' height='380px'></iframe>");
		break;
	default:
		document.write("<iframe src='" + frame_url + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' width='330px' height='148px'></iframe>");
		break;
}
