var ap = new Array('menubar','resizable','toolbar','scrollbars','location','copyhistory','status','directories');
var pt = '';

function popit(l,n,w,h,p){
	for(var i = ap.length - 1; i >= 0; i--){
		pt += ',' + ap[i] + '=' + p.substr(i,1);
	}
	window.open(l, n, 'width=' + w + ',height=' + h + pt).focus();
	return false;
}
function popup(l,n,w,h,p){
	return popit(l,n,w,h,p);
}
function doGo(val){
	if (parent.ads && parent.ads.doRefresh){
		parent.ads.doRefresh();
	}
	if ('' != goNext[val]){
		(2 == val ? top : self).location.href = goNext[val];
	}
	return false;
}
function slideGo(val){
	if ('' != goNext[val]){
		(2 == val ? top : self).location.href = goNext[val];
	}
	return false;
}
function genInputText(n, ml, siz, sub, v) {
	if (document.all) {
		s = 'style="width:' + siz + 'px"';
		d = document;
	} else {
		d = document.layers.myForm.document;
		s = 'size="' + Math.floor(siz/14-sub) + '"';
		if (0 != sub){
			d.write(' ');
		}
	}
	d.write('<input class="frm" type="text" name="' + n + '" ' + s + ' maxlength="' + ml + '">');
	d.forms.f.elements[n].value=v;
}
function doSubmit(){
	if (document.layers){
		document.layers.myForm.document.forms[0].submit();
	}else{
		document.forms[0].submit();
	}
	return false;
}