<!-- //

function td_email(name) {    
	var host = "trader-direct.com";
	var delim = "\@";
	var href = 'mailto:';
	var text = '\<a href="' + href + name + delim + host + '">';
	document.write(text); 
}

function highlight_cell(e,state) {
	if( state == "light" ) {
		e.className = "formelement_light";
	} else if( state == "normal" ) {
		e.className = "formelement";
	}
}

function check_phone(length,max_length,next) {
	if( length == max_length ) {
		next.focus();
	}
}

function open_contact_window(width,height) {

	xposition = 0;
	yposition = 0;

	args = "width=" + width + "," 
	+ "height=" + height + "," 
	+ "location=0," 
	+ "menubar=0,"
	+ "resizable=1,"
	+ "scrollbars=0,"
	+ "status=0," 
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=" + xposition + "20,"
	+ "screeny=" + yposition + "20,"
	+ "left=" + xposition + "20,"
	+ "top=" + yposition + "20,"

	window.open('request_small.phtml','small_request',args );

}

// -->