function add(url){		
	document.frm.action=url;			
	document.frm.submit();		
}

function edit(url, frm){	
	document.forms[frm].action=url;			
	document.forms[frm].submit();		
}

function go(url){		
	document.frm.action=url;			
	document.frm.submit();		
}

function pop(url) {
	var newwindow; 
	
	newwindow = window.open('/company/'+url,'info','height=450,width=390,directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=no');
		if (window.focus) {newwindow.focus()}
}

function company(url) {
	var newwindow; 
	
	newwindow = window.open('/company/'+url,'info','height=450,width=390,directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=no');
		if (window.focus) {newwindow.focus()}
}

function info(url, name) {
	var newwindow;
	var lngHeight 

	if(document.all){
		lngHeight = document.body.clientHeight;
	} else {
		lngHeight = window.innerHeight;
	}	
	
	lngHeight = 450	
	
	newwindow = window.open(url,name,'height='+lngHeight+',width=390,directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=no');
		if (window.focus) {newwindow.focus()}
		return false;
	
}

function sitemap(url) {	
	var newwindow;	
	newwindow = window.open(url,'sitemap','height=510,width=685,directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=no');
		if (window.focus) {newwindow.focus()}
}

function mediaarchive(url,name,lngWidth,lngHeight) {	
	var newwindow; 
	
	if(document.all){
		lngHeight = document.body.clientHeight;
	} else {
		lngHeight = window.innerHeight;
	}		
	
	newwindow = window.open(url,name,'height='+lngHeight+',width='+lngWidth+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=no');
		if (window.focus) {newwindow.focus()}
}

function order(url, name) {
	var newwindow;
	var lngHeight 

	if(document.all){
		lngHeight = document.body.clientHeight;
	} else {
		lngHeight = window.innerHeight;
	}	
	
	lngHeight = 450	
	
	newwindow = window.open(url,name,'height='+lngHeight+',width=650,directories=no,location=no,menubar=yes,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
		if (window.focus) {newwindow.focus()}
		return false;
	
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 
function MaxLen(TA, Size)
{
	if(TA.value.length > Size-1){TA.value = TA.value.substring(0, Size -1)}
}

