function set_cookie(name, hours, domain, value) {
	if (hours) exp = new Date((new Date().getTime() + hours * 3600000));
	else exp = null;

	document.cookie = name + '=' + value + '; expires=' + exp.toGMTString() + ';';
}
function set_registry_cookie() {
	set_cookie('lis_registry', 720, 'liveinstrasburg.com', 'registry pop up window');
	}
function get_cookie(name) {
	index = document.cookie.indexOf(name);
	if (index != -1) { 
		countbegin = (document.cookie.indexOf("=", index) + 1);
		countend = document.cookie.indexOf(";", index);
		if (countend == -1) {
			countend = document.cookie.length;
		}
		if (document.cookie.substring(countbegin, countend) == 'registry pop up window') { return false;}
		else {win_open('lis_registry', 'http://www.liveinstrasburg.com/registry.htm', 0);}
	}
	else {
		win_open('lis_registry', 'http://www.liveinstrasburg.com/registry.htm', 0);
	}
}
/* 
function register_win_open(win_name, where, type_val) {
	var win_type = new Array();

	win_type[0]="width=488,height=290,left=70,top=120,RESIZABLE,STATUS,SCROLLBARS";
	
	win_name = window.open(where, win_name, win_type[type_val]);
	win_name.focus();
}
*/
