<!--hide this script from non-javascript-enabled browsers

function TestMail( str )
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
		return true;

	alert("Please input a valid email address!")
	return false;
}

function CheckMail( f )
{
	return TestMail( f.email.value ); 
}

/*
function check_email(e) 
{
	var ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

	for(i=0; i < e.length ;i++)
	{
		if(ok.indexOf(e.charAt(i))<0)
		{ 
			return 0;
		}	
	} 

	if (document.images) 
	{
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) 
		{
			return 1;		
		} 
	}
	
	return 0;
}
*/

function checkFrames()
{
var strPage, strURL
strPage = location.pathname + location.search
alert( strPage );

strURL = location.protocol + "//" + location.hostname +
"/WSIndex.asp?page=" + escape(strPage)

alert( strURL );

if ((window.name != "body") || (window.parent.name != "frameset") ||
(window.parent.parent.parent != window.parent.parent))
{
window.top.location.replace(strURL)
}
}

function expand(pObject)	
{
	if(document.getElementById)	
	{
		var pObj = pObject.parentNode.nextSibling.style
			? pObject.parentNode.nextSibling
			: pObject.parentNode.nextSibling.nextSibling;

		pObj.style.display = (pObj.style.display == 'block')
			?'none'
			:'block';
	}
}

// stop hiding -->
