function mailRegister(params) {
	var url = '/cgi-bin/subsc.cgi';
	var ajax = new Ajax.Updater(
	{success: 'mailStatus'},
	url,
	{method: 'post', parameters: Form.serialize('emailForm')});
	
}

function mailDelete(params) {

	var url = '/cgi-bin/unsubsc.cgi';
	var ajax = new Ajax.Updater(
	{success: 'mailStatus'},
	url,
	{method: 'post', parameters: Form.serialize('emailForm')});
	
}

function enlarge_movie(name, width, height) {
	if (width == undefined) {
		width = 600;
	}
	if (height == undefined) {
		height = 496;
	}
	newwindow = window.open('/_wordpress/wp-content/themes/lw/popup_movie.php?file=/_wordpress/wp-content/uploads/'+name+'&width='+width+'&height='+height,'name','height='+height+',width='+width+',left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no');
}

function popup_swf(name, width, height) {
	if (width == undefined) {
		width = 600;
	}
	if (height == undefined) {
		height = 496;
	}
	newwindow = window.open('/_wordpress/wp-content/themes/lw/popup_swf.php?file=/_wordpress/wp-content/uploads/'+name+'&width='+width+'&height='+height,'name','height='+height+',width='+width+',left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=yes');
}

function soundPlayer(file, id) {
        var so = new SWFObject("/_wordpress/wp-content/themes/lw/scripts/mediaplayer.swf", "line", "430", "20", "7");
        so.addVariable("file", file);
        so.addVariable("autostart", "false");
        so.addVariable("repeat", "false");
        so.addVariable("showdigits", "true");
        so.addVariable("volume", "60");
        so.addVariable("showdownload", "false");
        so.addVariable("backcolor", "0xffffff");
        so.addVariable("frontcolor", "0x555555");
        so.addVariable("lightcolor", "0x000000");
        so.write(id);
}

