﻿<!--//
function Redirect(url)
{
	top.location.href = url;  
}
function Alert(msg)
{
	alert(msg);
}
function OpenWindow(url, width, height)
{
		var name;
		var features;
		if (width == null || width == "undefined")
		{
			width = Math.floor(screen.width / 2);
		}
		if (height == null || height == "undefined")
		{
			height = Math.floor(screen.height / 2);
		}
		var left = Math.floor((screen.width - width) / 2);
		if (left < 0)
		{
			left = 0;
		}
		var top = Math.floor((screen.height - height) / 2);
		if (top < 0)
		{
			top = 0;
		}
		name = "tb";
		features = 'height=' + height + ',width=' + width + ',resizable,scrollbars,top=' + top + ',left=' + left;
		window.open(url,name,features);
		name = "";
		features = "";
}
function Contact()
{
	var url = "http://timbott.net/tinc?key=OKSsF9d0&formname=contact";
	var width = 650;
	var height = 325;
	OpenWindow(url, width, height);
	url = "";
	width = 0;
	height = 0;
}

function Send()
{
	var from = frmContact.mailFrom.value;
	alert(from);
}

function xclear()
{
	var ret = false;
	var from = frmContact.mailFrom.value;
	alert(from);
}

function Syndicate()
{
	var url = "http://timbott.net/rss.xml";
	var width = Math.floor(screen.height);
	var height = Math.floor(screen.width);
	OpenWindow(url, width, height);
	url = "";
	width = 0;
	height = 0;
}
function Post()
{
	var url = "http://del.icio.us/post?v=4%26partner=%26jump=close%26url=www.timbott.net/%26title=timbott.net";
	var width = Math.floor(screen.height);
	var height = Math.floor(screen.width);
	OpenWindow(url, width, height);
	url = "";
	width = 0;
	height = 0;
}
function Email()
{
	//todo
}
function Print()
{
	window.print();
}
