﻿function popportal(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=580');");
	return false;
}
function pop(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=580');");
	return false;
}
function pophumor(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=580');");
	return false;
}
function popmsn(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=580');");
	return false;
}

function creditos(){
newwin = window.open('', 'creditos', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=330'); return false;}

function chistedia(){
newwin = window.open('', 'chistedia', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=170,height=150'); return false;}

function california(){
newwin = window.open('', 'california', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=670,height=600'); return false;}

function textCounter(field, countfield, maxlimit) {
	if(field.value.length > maxlimit){
		field.value = field.value.substring(0, maxlimit);
	}
	else{
		countfield.value = maxlimit - field.value.length;
	}
}
function popsmilies(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=250,left = 262,top = 184');");
}
var isNav, isIE
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape")
		isNav = true
	else
		isIE = true
}
function showKeyValue(evt) {
	var keyValue
	if (isNav)
		keyValue = evt.which
	else
		keyValue = window.event.keyCode
	if (keyValue == 13) {
		javascript:document.tagboard.submit();
	}
	return false
}
