function MiniWin(hurl)
{
	//win_id = window.open(hurl, "remote", "toolbar=no, status=no, directories=no, location=no, scrollbars=yes, width=400, height=350");
	//win_id = window.open(hurl, "remote", "toolbar=no,status=no,directories=no,location=no,scrollbars=yes,resizable=1,width=460,height=450");
	//if (win_id.opener == null) win_id.opener = window;
	//	win_id.opener.name = "opener";
	window.open(hurl, "_blank", "toolbar=no,status=no,directories=no,location=no,scrollbars=yes,resizable=1,width=460,height=450");
}

function MiniWin_wh(hurl, w, h)
{
	win_id = window.open(hurl, "_blank", "toolbar=no,status=no,directories=no,location=no,scrollbars=yes,resizable=1,width="+w+",height="+h);
	//if (win_id.opener == null) win_id.opener = window;
	//	win_id.opener.name = "opener";
}

function SetCookie (name, value)
{
	var argv = SetCookie.arguments;
    var argc = SetCookie.arguments.length;
    var expires = (argc > 2) ? argv[2] : null;
    var path = (argc > 3) ? argv[3] : null;
    var domain = (argc > 4) ? argv[4] : null;
    var secure = (argc > 5) ? argv[5] : false;
    document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : "");
}
	
function set_collage (img, file)
{
	for (i=0; i<4; i++)
		opener.document.forms[0].col_def_ch[i].checked=false;
	opener.document.forms[0].col_def_ch[0].checked=true;
	opener.document.mini_col0.src=img;
	opener.document.forms[0].col_def_ch[0].value=file;
}

function index_view (id)
{
	SetCookie ("id_1001", id);
	SetCookie ("color_1001", '');
	window.location="gen_preview.php3";
}

messages = new Array ();
messages["license"]="You can continue the order process if you have read and accepted the License Agreement only!";