if (window != top) { top.location.href=location.href; }

//////////////////////////////////////////////////////////////////
function popImage(url) {
//////////////////////////////////////////////////////////////////
	window.open( "templates/popup_image.html?"+url, "","resizable=1,height=200,width=200"); 
}

//////////////////////////////////////////////////////////////////
function popLink(url) {
//////////////////////////////////////////////////////////////////
	window.open( url, '', 'resizable=1,location=1,menubar=1,scrollbars=1,status=1,height=400,width=400');
}

//////////////////////////////////////////////////////////////////
function highlight(faq) {
//////////////////////////////////////////////////////////////////
	try {
		var len = document.getElementById('faqs').childNodes.length;
		for (i=1; i<=len; i++) {
			document.getElementById('faq' + i).className = 'faq';
		}
	} catch(e) {}
	try { document.getElementById(faq).className = 'faq_highlight'; }
	catch(e){}
}

//////////////////////////////////////////////////////////////////
function is_mail(val) {
//////////////////////////////////////////////////////////////////
	if (val=='') { return false; }
	var pattern = /^[a-zA-Z0-9\-\._]+@[a-zA-Z0-9\-_]+(\.?[a-zA-Z0-9\-_]*)\.[a-zA-Z]{2,8}$/;
	return pattern.test(val);
}

//////////////////////////////////////////////////////////////////
function check_login() {
//////////////////////////////////////////////////////////////////
	try { var form = document.getElementById('login'); }
	catch(e) { return true; }
	return (form.login.value == '' && form.password.value == '') ? false : true;

}

