var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function send_to_flash_DoFSCommand(command, args) {
	var Movie = document.getElementById('get_var_object'); 
	if(navigator.appName != "Microsoft Internet Explorer")
	{
		Movie = document.getElementById('get_var_embed'); 
	}
  	var send_to_flashObj = InternetExplorer ? send_to_flash : document.send_to_flash;
  	var theVarFromFlash = args;
  	Movie.SetVariable("displayVar", theVarFromFlash);
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub send_to_flash_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call send_to_flash_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}



function pleaseWait(o) {
	o.value = "please wait...";
	o.style.color = "#001127";
}



function intFilter(objV,ordermin) {

	var val = "";
	var len = objV.value.length;

	//Remove all non-numeric

    	for(i=0;i<len;i++) {
		charatA = objV.value.charAt(i);
		charat0 = objV.value.charCodeAt(i);
        	if(charat0 >= 48 && charat0 <= 57) { val=val+charatA; }
	}
	
	if(val.length>0) { objV.value=val; } else { objV.value=[ordermin]; }
}
